]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/sudo/files/common/sudoers
Allow geodnssync to reload bind9
[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 visudo 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 Host_Alias      QAHOSTS         = master, merkel
24 # User alias specification
25 User_Alias      QACORE          = aba, djpig, hertzog, jeroen, joerg, lucas, luk, myon, tbm, weasel, zack
26
27 # Cmnd alias specification
28
29 # User privilege specification
30 root    ALL=(ALL) ALL
31
32
33 # DSA and local admins
34 %adm            ALL=(ALL)       ALL
35 %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
36
37 admin           agnesi=(ALL)    ALL
38 %zivit-admins   zelenka=(ALL)   NOPASSWD: ALL
39
40 # nagios
41 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
42 # with smartarray controllers
43 nagios          ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
44 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
45 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[02] pd all show
46 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]\:[0-9] show
47 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]I\:[0-9]\:[0-9] show
48 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[02] show status
49 # other raid controllers
50 nagios          master=(ALL)    NOPASSWD: /usr/sbin/mpt-status -s
51 nagios          powell=(ALL)    NOPASSWD: /usr/local/sbin/areca-cli vsf info
52 nagios          puccini=(ALL)   NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
53
54 # groups and their role accounts
55 %buildd         ALL=(buildd)    ALL
56 %d-i            ALL=(d-i)       ALL
57 %dde            ALL=(dde)       ALL
58 %debadmin       ALL=(dak)       ALL
59 %debbugs        ALL=(debbugs)   ALL
60 %debian-release ALL=(release)   ALL
61 %debwww         ALL=(debwww)    ALL
62 %forums         ALL=(forums)    ALL
63 %keyring        ALL=(keyring)   ALL
64 %lintian        ALL=(lintian)   ALL
65 %listweb        ALL=(listweb)   ALL
66 %list           liszt=(list)    ALL
67 %mirroradm      ALL=(archvsync) ALL
68 %nm             ALL=(nm)        ALL
69 %piuparts       ALL=(piupartsm) ALL
70 %piuparts       ALL=(piupartss) ALL
71 %pkg_maint      ALL=(pkg_user)  ALL
72 %planet         ALL=(planet)    ALL
73 %popcon         ALL=(popcon)    ALL
74 %secretary      ALL=(secretary) ALL
75 %snapshot       ALL=(snapshot)  ALL
76 %uddadm         ALL=(udd)       ALL
77 %wbadm          ALL=(wbadm)     ALL
78 %wikiadm        ALL=(wiki)      ALL
79 QACORE          QAHOSTS=(qa)    ALL
80
81 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
82 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
83
84 # buildd
85 # FIXME: change that ALL for hosts to a hostlist of buildds?
86 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
87 buildd          ALL=(ALL)               NOPASSWD: ALL
88
89 # The piuparts slave needs to handle chroots
90 piupartss       piatti=(ALL)            NOPASSWD: ALL
91 # trigger of mirror run for packages
92 pkg_user        powell=(archvsync)      NOPASSWD: /home/archvsync/bin/pushpdo
93 # on draghi, the domains git thing will run bind9 reload afterwards
94 %adm            draghi=(root)           NOPASSWD: /etc/init.d/bind9 reload
95 # remote power to babylon5 in the same rack:
96 joerg           unger=(ALL)             /usr/bin/sispmctl -t 1, /usr/bin/sispmctl -g 1
97 # wbadm can update all buildd* users' keys on buildd.d.o
98 %wbadm          raff=(root)             /usr/local/bin/update-buildd-sshkeys
99 # mirror push
100 dak             ries=(archvsync)        NOPASSWD:/home/archvsync/runmirrors
101 # dak stuff
102 %debian-release ries=(dak)              /usr/local/bin/dak transitions --import *
103 %ftpteam        ries=(dak)              /usr/local/bin/dak transitions --import *
104 # security
105 %security       klecker=(dak)           NOPASSWD: /usr/local/bin/dak new-security-install -[AR] -- *
106 %sec_public     klecker=(dak)           NOPASSWD: /usr/local/bin/dak new-security-install -[AR] -- *
107 %sec_data       klecker=(archvsync)     NOPASSWD: /home/archvsync/security/signal ""
108 dak             klecker=(archvsync)     NOPASSWD: /home/archvsync/signal_security
109 # web stuff
110 debwww          klecker=(archvsync)     NOPASSWD: /home/archvsync/webmirrors/runmirrors
111 # more list stuff
112 %list           liszt=(root)            /usr/sbin/postfix reload
113 %list           liszt=(root)            /usr/sbin/qshape, /usr/sbin/postsuper
114 %list           liszt=(root)            /etc/init.d/spamassassin, /etc/init.d/amavis
115 %list           liszt=(amavis)          NOPASSWD: /usr/bin/sa-learn
116 %list           liszt=(amavis)          ALL
117 # geodns may reload bind
118 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /etc/init.d/bind9 reload