raff and groups wbadm, keyring, and debadmin. And wbadm's update-buildd-sshkeys job
[mirror/dsa-puppet.git] / modules / sudo / files / common / sudoers
1 # /etc/sudoers
2 ##
3 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
4 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
5 ##
6
7 ###################################################################
8 ###################################################################
9 ###################################################################
10 ##
11 ## PLEASE EDIT THIS FILE WITH THE visud COMMAND TO ENSURE IT
12 ## IS SYNTACTICALLY VALID.
13 ##
14 ##  /usr/sbin/visudo -f sudoers
15 ##
16 ###################################################################
17 ###################################################################
18 ###################################################################
19
20 Defaults        env_reset
21
22 # Host alias specification
23
24 # User alias specification
25
26 # Cmnd alias specification
27
28 # User privilege specification
29 root    ALL=(ALL) ALL
30
31
32 # DSA and local admins
33 %adm            ALL=(ALL)       ALL
34 %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, /usr/sbin/upgrade-porter-chroots
35
36 admin           agnesi=(ALL)    ALL
37 %zivit-admins   zelenka=(ALL)   NOPASSWD: ALL
38
39 # nagios
40 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
41 # with smartarray controllers
42 nagios          ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
43 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
44 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd all show
45 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]\:[0-9] show
46 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]I\:[0-9]\:[0-9] show
47 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 show status
48
49 # groups and their role accounts
50 %buildd         ALL=(buildd)    ALL
51 %debadmin       ALL=(dak)       ALL
52 %debbugs        ALL=(debbugs)   ALL
53 %debwww         ALL=(debwww)    ALL
54 %forums         ALL=(forums)    ALL
55 %keyring        ALL=(keyring)   ALL
56 %lintian        ALL=(lintian)   ALL
57 %mirroradm      ALL=(archvsync) ALL
58 %piuparts       ALL=(piupartsm) ALL
59 %piuparts       ALL=(piupartss) ALL
60 %pkg_maint      ALL=(pkg_user)  ALL
61 %planet         ALL=(planet)    ALL
62 %popcon         ALL=(popcon)    ALL
63 %snapshot       ALL=(snapshot)  ALL
64 %uddadm         ALL=(udd)       ALL
65 %wbadm          ALL=(wbadm)     ALL
66 %wikiadm        ALL=(wiki)      ALL
67
68 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
69 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
70
71 # buildd
72 # FIXME: change that ALL for hosts to a hostlist of buildds?
73 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
74 buildd          ALL=(ALL)               NOPASSWD: ALL
75
76 # The piuparts slave needs to handle chroots
77 piupartss       piatti=(ALL)            NOPASSWD: ALL
78 # trigger of mirror run for packages
79 pkg_user        powell=(archvsync)      NOPASSWD: /home/archvsync/bin/pushpdo
80 # on samosa, the domains git thing will run bind9 reload afterwards
81 %adm            ALL=(root)              NOPASSWD: /etc/init.d/bind9 reload
82 # remote power to babylon5 in the same rack:
83 joerg           unger=(ALL)             /usr/bin/sispmctl -t 1, /usr/bin/sispmctl -g 1
84 %wbadm          raff=(root)             /usr/local/bin/update-buildd-sshkeys