From: Stephen Gran Date: Sat, 30 Jul 2011 08:58:58 +0000 (+0100) Subject: add megactl package, and sudo for nagios X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=04554922d25b6e027fbe7043db7bc23706ef9a52;p=mirror%2Fdsa-puppet.git add megactl package, and sudo for nagios Signed-off-by: Stephen Gran --- diff --git a/manifests/site.pp b/manifests/site.pp index 3a7ec4e9e..be89e0723 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -49,6 +49,9 @@ node default { case $mptraid { "true": { include "raidmpt" } } + case $productname { + "PowerEdge 2850": { include megactl } + } case $mta { "exim4": { diff --git a/modules/megactl/manifests/init.pp b/modules/megactl/manifests/init.pp new file mode 100644 index 000000000..7402ef9a3 --- /dev/null +++ b/modules/megactl/manifests/init.pp @@ -0,0 +1,8 @@ +class megactl { + package { + megactl: ensure => installed; + } +} +# vim:set et: +# vim:set sts=4 ts=4: +# vim:set shiftwidth=4: diff --git a/modules/sudo/files/common/sudoers b/modules/sudo/files/common/sudoers index ffe3f2c10..9001ec0de 100644 --- a/modules/sudo/files/common/sudoers +++ b/modules/sudo/files/common/sudoers @@ -29,6 +29,7 @@ Host_Alias ZIVITHOSTS = zelenka, zandonai Host_Alias AACRAIDHOSTS = bellini, morricone, paganini, respighi, vivaldi, beethoven, pettersson Host_Alias MEGARAIDHOSTS = grieg, rautavaara, sibelius Host_Alias MPTRAIDHOSTS = master, fasch, holter, barber, biber, cilea, vitry, krenek, scelsi, orff, field +Host_Alias MEGACTLHOSTS = lindberg, englund, heininen # Cmnd alias specification @@ -64,6 +65,7 @@ nagios puccini=(ALL) NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status nagios MPTRAIDHOSTS=(ALL) NOPASSWD: /usr/sbin/mpt-status -s nagios AACRAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD nagios MEGARAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog +nagios MEGACTLHOSTS=(ALL) NOPASSWD: /usr/sbin/megactl -H # other nagios things nagios beethoven=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""