diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-06-30 16:45:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-06-30 16:45:14 -0300 |
commit | baee1e0c8e3500ab73845d522a57ba4ebfa10cfe (patch) | |
tree | ffaf6032aadb4ee23d57007efcb3d2f2c7e21fd4 /manifests/egd | |
parent | 1f1962afc2839da75c6d77c228c6b74a178c06a5 (diff) | |
download | puppet-ekeyd-baee1e0c8e3500ab73845d522a57ba4ebfa10cfe.tar.gz puppet-ekeyd-baee1e0c8e3500ab73845d522a57ba4ebfa10cfe.tar.bz2 |
Incorporating Riseup code
Diffstat (limited to 'manifests/egd')
-rw-r--r-- | manifests/egd/debian.pp | 27 | ||||
-rw-r--r-- | manifests/egd/nagios.pp | 5 |
2 files changed, 32 insertions, 0 deletions
diff --git a/manifests/egd/debian.pp b/manifests/egd/debian.pp new file mode 100644 index 0000000..1c2c37d --- /dev/null +++ b/manifests/egd/debian.pp @@ -0,0 +1,27 @@ +class egd::debian inherits ekeyd::egd { + if ( $virtual == "vserver" ) { + fail("This class shouldn't be included on vservers") + } + + Package["ekeyd-egd-linux"] { + ensure => $lsbdistcodename ? { + "lenny" => "1.1.3-3~bpo50+1", + default => 'installed' + } + } + + Service["egd-linux"] { + ensure => running, + hasrestart => true, + pattern => '/usr/sbin/ekeyd-egd-linux', + subscribe => File["/etc/default/ekeyd-egd-linux"]; + } + + file { "/etc/default/ekeyd-egd-linux": + content => template("ekeyd/ekeyd-egd-linux.default"), + mode => 644, + owner => root, + group => root, + require => Package["ekeyd-egd-linux"]; + } +} diff --git a/manifests/egd/nagios.pp b/manifests/egd/nagios.pp new file mode 100644 index 0000000..7798508 --- /dev/null +++ b/manifests/egd/nagios.pp @@ -0,0 +1,5 @@ +class ekeyd::egd::nagios { + nagios::service { "ekeyd-egd-linux": + check_command => "nagios-stat-proc!/usr/sbin/ekeyd-egd-linux!1!1!proc", + } +} |