From: Peter Palfrader Date: Tue, 7 Apr 2009 22:13:17 +0000 (+0200) Subject: Move handel's sudoers to common - it will be the template to start from X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=09a94c474a39b5e8e38c671f005f2d1cefacb3c0;p=mirror%2Fdsa-puppet.git Move handel's sudoers to common - it will be the template to start from --- diff --git a/modules/sudo/files/common/sudoers b/modules/sudo/files/common/sudoers new file mode 100644 index 000000000..a68cfdea0 --- /dev/null +++ b/modules/sudo/files/common/sudoers @@ -0,0 +1,32 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + +# /etc/sudoers +# +# This file MUST be edited with the 'visudo' command as root. +# +# See the man page for details on how to write a sudoers file. +# + +Defaults env_reset + +# Host alias specification + +# User alias specification + +# Cmnd alias specification + +# User privilege specification +root ALL=(ALL) ALL + +# Uncomment to allow members of group sudo to not need a password +# (Note that later entries override this, so you might need to move +# it further down) +# %sudo ALL=NOPASSWD: ALL +%adm ALL=(ALL) ALL +%adm ALL=(ALL) NOPASSWD: /usr/bin/apt-get update, /usr/bin/apt-get dist-upgrade, /usr/bin/apt-get clean, /usr/sbin/samhain -t check -i -p err -s none -l none -m none + +nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup "" +nagios ALL=(ALL) NOPASSWD: /usr/sbin/samhain -t check --foreground -p err -s none -l none -m none diff --git a/modules/sudo/files/per-host/handel.debian.org/sudoers b/modules/sudo/files/per-host/handel.debian.org/sudoers deleted file mode 100644 index a68cfdea0..000000000 --- a/modules/sudo/files/per-host/handel.debian.org/sudoers +++ /dev/null @@ -1,32 +0,0 @@ -## -## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. -## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git -## - -# /etc/sudoers -# -# This file MUST be edited with the 'visudo' command as root. -# -# See the man page for details on how to write a sudoers file. -# - -Defaults env_reset - -# Host alias specification - -# User alias specification - -# Cmnd alias specification - -# User privilege specification -root ALL=(ALL) ALL - -# Uncomment to allow members of group sudo to not need a password -# (Note that later entries override this, so you might need to move -# it further down) -# %sudo ALL=NOPASSWD: ALL -%adm ALL=(ALL) ALL -%adm ALL=(ALL) NOPASSWD: /usr/bin/apt-get update, /usr/bin/apt-get dist-upgrade, /usr/bin/apt-get clean, /usr/sbin/samhain -t check -i -p err -s none -l none -m none - -nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup "" -nagios ALL=(ALL) NOPASSWD: /usr/sbin/samhain -t check --foreground -p err -s none -l none -m none