]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/sudo/files/sudoers
switch from init scripts to /usr/sbin/service
[dsa-puppet.git] / modules / sudo / files / 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 Defaults        passprompt="[sudo] password for %u on %h: "
22 Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
23
24 # Host alias specification
25 Host_Alias      VOIPHOSTS       = vogler
26 Host_Alias      WEBHOSTS        = wolkenstein
27 Host_Alias      SECHOSTS        = chopin
28 Host_Alias      FTPHOSTS        = franck
29 Host_Alias      ZIVITHOSTS      = zelenka, zandonai
30 Host_Alias      AACRAIDHOSTS    = paganini, respighi, beethoven, pettersson
31 Host_Alias      MEGARAIDHOSTS   = grieg, rautavaara, sibelius
32 Host_Alias      MPTRAIDHOSTS    = barber, biber, cilea, vitry, orff
33 Host_Alias      MEGACTLHOSTS    = nielsen
34 Host_Alias      LISTHOSTS       = bendel
35 Host_Alias      BUILDD_MASTER   = grieg, wuiet
36 Host_Alias      PORTERBOXES     = abel, agricola, barriere, eder, falla, fischer, gabrielli, harris, merulo, partch, smetana, zelenka
37 Host_Alias      PIUPARTS_SLAVE_HOSTS    = piu-slave-bm-a
38
39 # Cmnd alias specification
40
41 # User privilege specification
42 root    ALL=(ALL) ALL
43
44
45 # DSA and local admins
46 %adm            ALL=(ALL)       ALL
47 %adm            ALL=(ALL)       NOPASSWD: /usr/bin/apt-get update, /usr/bin/apt-get upgrade, /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
48
49 %zivit-admins   ZIVITHOSTS=(ALL)        NOPASSWD: ALL
50
51 # nagios
52 nagios          ALL=(ALL)       NOPASSWD: /etc/init.d/ekeyd-egd-linux restart
53 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
54 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-filesystems ""
55 # with smartarray controllers
56 nagios          ALL=(ALL)       NOPASSWD: /sbin/hpasmcli ""
57 nagios          ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
58 nagios          franck=(ALL)    NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0
59 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
60 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
61 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
62 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
63 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
64 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
65 nagios          franck=(ALL)    NOPASSWD: /usr/sbin/hpacucli controller slot=1 enclosure 1E\:1 show detail
66
67 # other raid controllers
68 nagios          powell=(ALL)    NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
69 nagios          MPTRAIDHOSTS=(ALL)      NOPASSWD: /usr/sbin/mpt-status -s
70 nagios          AACRAIDHOSTS=(ALL)      NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
71 nagios          MEGARAIDHOSTS=(ALL)     NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
72 nagios          MEGACTLHOSTS=(ALL)      NOPASSWD: /usr/sbin/megactl -Hv
73 # other nagios things
74 nagios          beethoven,backuphost=(debbackup)        NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
75
76 # groups and their role accounts
77 %auditor        ALL=(accounting)        ALL
78 %backports      ALL=(backports) ALL
79 %blends         ALL=(blends)    ALL
80 %buildd         ALL=(buildd)    ALL
81 %codesearch     ALL=(codesearch)        ALL
82 %d-i            ALL=(d-i)       ALL
83 %dde            ALL=(dde)       ALL
84 %ddtp           ALL=(ddtp)      ALL
85 %debadmin       ALL=(dak)       ALL
86 %debbugs        ALL=(debbugs)   ALL
87 %debbugs        ALL=(debbugs-mirror)    ALL
88 %debdelta       ALL=(debdelta)  ALL
89 %debian-cd      ALL=(debian-cd) ALL
90 %debian-i18n    ALL=(debian-i18n)       ALL
91 %debian-release ALL=(release)   ALL
92 %debtags        ALL=(debtags)   ALL
93 %debvoip        cilea=(freeswitch)      ALL
94 %debwww         ALL=(debwww)    ALL
95 %dedup          ALL=(dedup)     ALL
96 %btslink        ALL=(btslink)   ALL
97 %emdebian       ALL=(emdebian)  ALL
98 %forums         ALL=(forums)    ALL
99 %keyring        ALL=(keyring)   ALL
100 %lintian        ALL=(lintian)   ALL
101 %listweb        ALL=(listweb)   ALL
102 %list           LISTHOSTS=(list)        ALL
103 # archives and stuff
104 %list           master=(debian) ALL
105 %mirroradm      ALL=(archvsync) ALL
106 %nm             ALL=(nm)        ALL
107 %patch-tracker  ALL=(patch-tracker)     ALL
108 %pet-devel      ALL=(pet-devel) ALL
109 %piuparts       ALL=(piupartsm) ALL
110 %piuparts       ALL=(piupartss) ALL
111 %pkg_maint      ALL=(pkg_user)  ALL
112 %planet         ALL=(planet)    ALL
113 %popcon         ALL=(popcon)    ALL
114 %ports          ALL=(ports)     ALL
115 %search         ALL=(search)    ALL
116 %secretary      ALL=(secretary) ALL
117 %sectracker     ALL=(sectracker)        ALL
118 %security       SECHOSTS=(mail_security)        ALL
119 %snapshot       ALL=(snapshot)  ALL
120 %uddadm         ALL=(udd)       ALL
121 %volatile       ALL=(volatile)  ALL
122 %wbadm          ALL=(wbadm)     ALL
123 %mujeres        ALL=(women)     ALL
124 %wikiadm        ALL=(wiki,wikiweb)      ALL
125 %qa-core        ALL=(qa)        ALL
126 %gobby          gombert=(gobby) ALL
127 %dacshelper     diabelli=(www-data)     ALL
128
129 # the dak user gets to run stuff as dak-unpriv (for things like lintian checks)
130 %ftptrainee     FTPHOSTS=(dak-unpriv)   NOPASSWD: /usr/bin/lintian
131 dak             ALL=(dak-unpriv)        NOPASSWD: ALL
132 # and ftpmaster can access the role user for their web services
133 %debadmin       FTPHOSTS=(dak-web)      ALL
134
135 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
136 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
137
138 # buildd
139 # FIXME: change that ALL for hosts to a hostlist of buildds?
140 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
141 buildd          ALL=(ALL)               NOPASSWD: ALL
142
143 %backports      franck,coccia=(staticsync)      NOPASSWD: /usr/local/bin/static-update-component backports.debian.org
144 d-i             dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component d-i.debian.org
145 dsa             dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component dsa.debian.org
146 dak             franck=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component metadata.ftp-master.debian.org
147 %debbits        master=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component bits.debian.org
148 %webwml         master=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component network-test.debian.org
149 planet          philp,senfl=(staticsync)        NOPASSWD: /usr/local/bin/static-update-component planet.debian.org
150 debwww          wolkenstein=(staticsync)        NOPASSWD: /usr/local/bin/static-update-component www.debian.org
151 %blends         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component blends.debian.org
152 %Debian         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component wnpp-by-tags.debian.net
153 %Debian         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component mozilla.debian.net
154 %ports          dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component ports.debian.org
155
156 # The piuparts slave needs to handle chroots
157 piupartss       PIUPARTS_SLAVE_HOSTS=(ALL)              NOPASSWD: ALL
158 # trigger of mirror run for packages
159 #pkg_user       powell=(archvsync)      NOPASSWD: /home/archvsync/bin/pushpdo
160 dnsadm          denis=(root)                    NOPASSWD: /usr/sbin/service bind9 reload
161 %dnsadm         orff=(root)             NOPASSWD: /etc/init.d/bind9 reload
162 %dnsadm         orff=(geodnssync)       NOPASSWD: /usr/bin/make -C /srv/dns.debian.org/geo
163 %adm            draghi=(puppet)                 NOPASSWD: /usr/bin/make -s -C /srv/db.debian.org/var/gitnagios/dsa-nagios/config install
164 # wbadm can update all buildd* users' keys on buildd.d.o
165 %wbadm          BUILDD_MASTER=(wb-buildd)       ALL
166 %wbadm          BUILDD_MASTER=(root)            /usr/local/bin/update-buildd-sshkeys
167 #wbadm          BUILDD_MASTER=(postgres)        NOPASSWD: /usr/bin/pg_dumpall --cluster 8.4/wanna-build
168 # mirror push
169 dak             FTPHOSTS,SECHOSTS=(archvsync)   NOPASSWD:/home/archvsync/runmirrors
170 dak             franck=(backports)      NOPASSWD: /home/backports/bin/update-archive
171 planet          senfl=(archvsync)       NOPASSWD: /home/archvsync/bin/runplanet ""
172 # archvsync triggers snapshot
173 archvsync       sibelius,stabile=(snapshot)     NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
174 archvsync       sibelius,stabile=(snapshot)     NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
175 # dak stuff
176 %debian-release FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
177 %ftpteam        FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
178 # security
179 %security       SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
180 %sec_public     SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
181 %sec_public     SECHOSTS=(dak)          NOPASSWD: /home/dak/trigger_mirror
182 dak             SECHOSTS=(archvsync)    NOPASSWD: /home/archvsync/signal_security
183 # web stuff
184 debwww          WEBHOSTS=(archvsync)    NOPASSWD: /home/archvsync/webmirrors/runmirrors
185 %press          WEBHOSTS=(debwww)       /srv/www.debian.org/update-part News
186 # more list stuff
187 %list           LISTHOSTS=(root)                /usr/sbin/postfix reload
188 %list           stockhausen=(root)              /usr/sbin/service jetty restart
189 %list           LISTHOSTS=(root)                /usr/sbin/qshape, /usr/sbin/postsuper
190 %list           LISTHOSTS=(root)                /etc/init.d/spamassassin, /etc/init.d/amavis
191 %list           LISTHOSTS=(amavis)              NOPASSWD: /usr/bin/sa-learn
192 %list           LISTHOSTS=(amavis)              ALL
193 # geodns may reload bind
194 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /etc/init.d/bind9 reload
195 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/rndc reconfig
196 # pushed nagiosadm reload icinga on tchaikovsky
197 nagiosadm       tchaikovsky=(root)              NOPASSWD: /usr/sbin/service icinga reload
198
199 %Debian,%guest  PORTERBOXES=(root)      NOPASSWD: /usr/local/bin/dd-schroot-cmd
200
201 # voip stuff
202 %debvoip        VOIPHOSTS=(root)        /usr/sbin/service resiprocate-turn-server restart, /usr/sbin/service repro restart
203