From baee1e0c8e3500ab73845d522a57ba4ebfa10cfe Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 30 Jun 2011 16:45:14 -0300 Subject: Incorporating Riseup code --- manifests/egd/debian.pp | 27 +++++++++++++++++++++++++++ manifests/egd/nagios.pp | 5 +++++ 2 files changed, 32 insertions(+) create mode 100644 manifests/egd/debian.pp create mode 100644 manifests/egd/nagios.pp (limited to 'manifests/egd') 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", + } +} -- cgit v1.2.3