79c632786ff12d988625b118aca753b352d80b59
[mirror/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 # Find binaries to be executed as archvsync user also in its home, so the
25 # caller does not need to know.
26 Defaults>archvsync secure_path="/home/archvsync/bin:/usr/local/bin:/usr/bin:/bin"
27
28 # Host alias specification
29 Host_Alias      VOIPHOSTS       = vogler
30 Host_Alias      WEBHOSTS        = wolkenstein
31 Host_Alias      SECHOSTS        = seger
32 Host_Alias      FTPHOSTS        = fasolo
33 Host_Alias      ZIVITHOSTS      = zelenka, zandonai
34 Host_Alias      AACRAIDHOSTS    = pettersson
35 Host_Alias      MEGARAIDHOSTS   = sibelius
36 Host_Alias      DELLHOSTS       = schumann, wieck
37 Host_Alias      LISTHOSTS       = bendel
38 Host_Alias      BUILDD_MASTER   = wuiet
39 Host_Alias      PORTERBOXES     = abel, amdahl, barriere, eller, harris, minkus, plummer, zelenka
40 Host_Alias      PIUPARTS_SLAVE_HOSTS    = piu-slave-bm-a, piu-slave-ubc-01
41 Host_Alias      MQ_HOSTS        = rainier, rapoport
42 Host_Alias      JENKINSHOSTS    = jerea
43
44 # Cmnd alias specification
45
46 # User privilege specification
47 root    ALL=(ALL) ALL
48
49
50 # DSA and local admins
51 %adm            ALL=(ALL)       ALL
52
53 %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
54
55 %zivit-admins   ZIVITHOSTS=(ALL)        NOPASSWD: ALL
56
57 # nagios
58 nagios          MQ_HOSTS=(rabbitmq)     NOPASSWD: /usr/sbin/rabbitmqctl list_queues -p dsa name messages consumers
59 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/service ekeyd-egd-linux restart
60 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/service samhain restart
61 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
62 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-filesystems ""
63 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-libs --ignore-younger=1h
64 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-stunnel-sanity ""
65 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-systemd-services ""
66 nagios          handel=(puppet) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-cert-expire /var/lib/puppet/ssl/certs/ca.pem
67 # with smartarray controllers
68 nagios          ALL=(ALL)       NOPASSWD: /sbin/hpasmcli ""
69 nagios          ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
70 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller all show
71 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] ld all show
72 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] ld [0-9] show
73 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd all show
74 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9]\:[0-9] show
75 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
76 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
77 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] show status
78 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
79 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld all show
80 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld [0-9] show
81 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
82 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
83 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
84 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
85 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
86
87 # other raid controllers
88 nagios          AACRAIDHOSTS=(ALL)      NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
89 nagios          MEGARAIDHOSTS=(ALL)     NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
90 nagios          DELLHOSTS=(ALL)         NOPASSWD: /usr/lib/nagios/plugins/dsa-check-openmanage ""
91 # other nagios things
92 nagios          backuphost=(debbackup)  NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
93 nagios          storace=(debbackup)     NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
94
95 # groups and their role accounts
96 %alioth-archive ALL=(alioth-archive)    ALL
97 %appstream      ALL=(appstream) ALL
98 %auditor        ALL=(accounting)        ALL
99 %backports      ALL=(backports) ALL
100 %blends         ALL=(blends)    ALL
101 %bootstrap      ALL=(bootstrap) ALL
102 %btslink        ALL=(btslink)   ALL
103 %buildd         ALL=(buildd)    ALL
104 %codesearch     ALL=(codesearch)        ALL
105 %d-i            ALL=(d-i)       ALL
106 %dde            ALL=(dde)       ALL
107 %ddtp           ALL=(ddtp)      ALL
108 %debadmin       ALL=(dak)       ALL
109 %debadmin       ALL=(dak-code)  ALL
110 %debbugs        ALL=(debbugs)   ALL
111 %debbugs        ALL=(debbugs-mirror)    ALL
112 %debconfstatic  ALL=(debconfstatic)     ALL
113 %debdelta       ALL=(debdelta)  ALL
114 %debian-cd      ALL=(debian-cd) ALL
115 %cloud-build    ALL=(cloud-build)       ALL
116 %cloud-ci       ALL=(cloud-ci)  ALL
117 %cloud-test     ALL=(cloud-test)        ALL
118 %cloud-deploy-aws       ALL=(cloud-deploy-aws)  ALL
119 %cloud-deploy-azure     ALL=(cloud-deploy-azure)        ALL
120 %cloud-deploy-gce       ALL=(cloud-deploy-gce)  ALL
121 %cloud-deploy-openstack ALL=(cloud-deploy-openstack)    ALL
122 %cloud-deploy-digitalocean      ALL=(cloud-deploy-digitalocean) ALL
123 %debian-i18n    ALL=(debian-i18n)       ALL
124 %debian-r       ALL=(debian-r)  ALL
125 %debian-r       ALL=(debian-r-wb-buildd)        ALL
126 %debian-release ALL=(release)   ALL
127 %debsources     ALL=(debsources)        ALL
128 %debtags        ALL=(debtags)   ALL
129 %debwww         ALL=(debwww)    ALL
130 %dedup          ALL=(dedup)     ALL
131 %dgit           ALL=(dgit)      ALL
132 %dgit           ALL=(dgit-unpriv)       ALL
133 %emdebian       ALL=(emdebian)  ALL
134 %forums         ALL=(forums)    ALL
135 %gitdoadm       ALL=(gitdoadm)  ALL
136 # the git user also exists on adayevskaya where it's a different service..
137 %gitdoadm       godard=(git)            ALL
138 %gitdoadm,git   godard=(salsa-registry) ALL
139 %gitdoadm,git   godard=(salsa-signup)   ALL
140 %gitdoadm,git   godard=(salsa-webhook)  ALL
141 %gitdoadm,git   godard=(salsa-pages)    ALL
142 %keyring        ALL=(keyring)   ALL
143 %jenkins-adm    ALL=(jenkins-adm)       ALL
144 %lintian        ALL=(lintian)   ALL
145 %listweb        ALL=(listweb)   ALL
146 %list           LISTHOSTS=(list)        ALL
147 # archives and stuff
148 %list           master=(debian) ALL
149 %manpages       ALL=(manpages)  ALL
150 %mirroradm      ALL=(archvsync) ALL
151 %mirroradm      melartin=(mirroradm)    ALL
152 %nm             ALL=(nm)        ALL
153 %patch-tracker  ALL=(patch-tracker)     ALL
154 %pet-devel      ALL=(pet-devel) ALL
155 %piuparts       ALL=(piupartsm) ALL
156 %piuparts       ALL=(piupartss) ALL
157 %pkg_maint      ALL=(pkg_user)  ALL
158 %planet         ALL=(planet)    ALL
159 %popcon         ALL=(popcon)    ALL
160 %ports          ALL=(ports)     ALL
161 %search         ALL=(search)    ALL
162 %secretary      ALL=(secretary) ALL
163 %sectracker     ALL=(sectracker)        ALL
164 %security       SECHOSTS=(mail_security)        ALL
165 %security       ALL=(security)  ALL
166 %snapshot       ALL=(snapshot)  ALL
167 %uddadm         ALL=(udd)       ALL
168 %videoteam      vittoria=(veyepar)      ALL
169 %videoteam      vittoria=(sreview)      ALL
170 %volatile       ALL=(volatile)  ALL
171 %wbadm          ALL=(wbadm)     ALL
172 %mujeres        ALL=(women)     ALL
173 %wikiadm        ALL=(wiki,wikiweb)      ALL
174 %qa-core        ALL=(qa)        ALL
175 %gobby          gombert=(gobby) ALL
176 %dacshelper     diabelli=(www-data)     ALL
177 %debsso         diabelli=(debsso)       ALL
178 %debsso-web     diabelli=(debsso-web)   ALL
179 %debconf-web    debussy=(debconf-web)   ALL
180 %kanboard       kantuser=(kanboard)     ALL
181
182 # the dak user gets to run stuff as dak-unpriv (for things like lintian checks)
183 %ftptrainee     FTPHOSTS=(dak-unpriv)   NOPASSWD: /usr/bin/lintian
184 dak             ALL=(dak-unpriv)        NOPASSWD: ALL
185 # and ftpmaster can access the role user for their web services
186 %debadmin       FTPHOSTS=(dak-web)      ALL
187
188 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
189 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
190
191 # buildd
192 # FIXME: change that ALL for hosts to a hostlist of buildds?
193 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
194 buildd          ALL=(ALL)               NOPASSWD: ALL
195
196 %appstream      mekeel=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component appstream.debian.org
197 %backports      FTPHOSTS,coccia=(staticsync)    NOPASSWD: /usr/local/bin/static-update-component backports.debian.org
198 %bootstrap      boott=(staticsync)              NOPASSWD: /usr/local/bin/static-update-component bootstrap.debian.net
199 d-i             dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component d-i.debian.org
200 debian-cd       casulana=(staticsync)           NOPASSWD: /usr/local/bin/static-update-component cdbuilder-logs.debian.org
201 lucas           dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debaday.debian.net
202 dsa             dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component dsa.debian.org
203 dak             FTPHOSTS=(staticsync)           NOPASSWD: /usr/local/bin/static-update-component incoming.debian.org
204 dak             FTPHOSTS=(staticsync)           NOPASSWD: /usr/local/bin/static-update-component metadata.ftp-master.debian.org
205 %publicity      dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component bits.debian.org
206 %publicity      dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component micronews.debian.org
207 %mirroradm      melartin=(staticsync)           NOPASSWD: /usr/local/bin/static-update-component mirror-master.debian.org
208 %debdelta       donizetti=(staticsync)          NOPASSWD: /usr/local/bin/static-update-component debdeltas.debian.net
209 %webwml         master=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component network-test.debian.org
210 planet          philp=(staticsync)              NOPASSWD: /usr/local/bin/static-update-component planet.debian.org
211 debwww          wolkenstein=(staticsync)        NOPASSWD: /usr/local/bin/static-update-component www.debian.org
212 %blends         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component blends.debian.org
213 %Debian         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component wnpp-by-tags.debian.net
214 %Debian         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component mozilla.debian.net
215 %ports          dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component www.ports.debian.org
216 %debian-release respighi=(staticsync)           NOPASSWD: /usr/local/bin/static-update-component release.debian.org
217 %debian-release coccia=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component release.debian.org-pu
218 %debvoip        dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component rtc.debian.org
219 %security       dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component security-team.debian.org
220 %publicity      dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net
221 pabs            dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net
222 %lintian        lindsay=(staticsync)            NOPASSWD: /usr/local/bin/static-update-component lintian.debian.org
223 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component 10years.debconf.org
224 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf0.debconf.org
225 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf1.debconf.org
226 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf2.debconf.org
227 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf3.debconf.org
228 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf4.debconf.org
229 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf5.debconf.org
230 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf6.debconf.org
231 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf7.debconf.org
232 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf16.debconf.org
233 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf17.debconf.org
234 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf18.debconf.org
235 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component es.debconf.org
236 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component fr.debconf.org
237 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component miniconf10.debconf.org
238 mini-dak        porta=(staticsync)              NOPASSWD: /usr/local/bin/static-update-component incoming.ports.debian.org
239 %wbadm          wuiet=(staticsync)              NOPASSWD: /usr/local/bin/static-update-component apt.buildd.debian.org
240 %manpages       manziarly=(staticsync)          NOPASSWD: /usr/local/bin/static-update-component manpages.debian.org
241 %dpl            dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component dpl.debian.org
242
243 # The piuparts slave needs to handle chroots
244 piupartss       PIUPARTS_SLAVE_HOSTS=(ALL)              NOPASSWD: ALL
245 # trigger of mirror run for packages
246 dnsadm          denis=(root)                    NOPASSWD: /usr/sbin/service bind9 reload
247 letsencrypt     denis=(dnsadm)                  NOPASSWD: /srv/dns.debian.org/bin/update
248 # wbadm can update all buildd* users' keys on buildd.d.o
249 %wbadm          BUILDD_MASTER=(wb-buildd)       ALL
250 %wbadm          BUILDD_MASTER=(root)            /usr/local/bin/update-buildd-sshkeys
251 # mirror push
252 dak             FTPHOSTS,SECHOSTS=(archvsync)   NOPASSWD:/home/archvsync/runmirrors, /home/archvsync/bin/runmirrors
253 # archvsync triggers snapshot
254 archvsync       sibelius,sallinen=(snapshot)    NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
255 archvsync       sibelius=(snapshot)             NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
256 # dak stuff
257 %debian-release FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
258 %ftpteam        FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
259 # security
260 %security       SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
261 %sec_public     SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
262 %sec_public     SECHOSTS=(dak)          NOPASSWD: /home/dak/trigger_mirror
263 dak             SECHOSTS=(archvsync)    NOPASSWD: /home/archvsync/signal_security
264 dak             SECHOSTS=(archvsync)    NOPASSWD: /home/archvsync/signal_security-buildd-pool
265 # web stuff
266 debwww          WEBHOSTS=(archvsync)    NOPASSWD: /home/archvsync/webmirrors/runmirrors
267 %publicity      WEBHOSTS=(debwww)       /srv/www.debian.org/update-part News
268 %debvote        WEBHOSTS=(debwww)       /srv/www.debian.org/update-part vote
269 %d-i            WEBHOSTS=(debwww)       /srv/www.debian.org/update-part devel/debian-installer
270 %d-i            WEBHOSTS=(debwww)       /srv/www.debian.org/cron/lessoften-parts/1installation-guide
271 # more list stuff
272 %list           LISTHOSTS=(postfix)             /usr/sbin/postcat
273 %list           LISTHOSTS=(root)                /usr/sbin/postfix reload
274 %list           LISTHOSTS=(root)                /usr/sbin/qshape, /usr/sbin/postsuper
275 %list           LISTHOSTS=(root)                /usr/sbin/service spamassassin restart, /usr/sbin/service spamassassin reload, /usr/sbin/service spamassassin stop, /usr/sbin/service spamassassin start
276 %list           LISTHOSTS=(root)                /usr/sbin/service amavis restart, /usr/sbin/service amavis reload, /usr/sbin/service amavis stop, /usr/sbin/service amavis start
277 %list           LISTHOSTS=(amavis)              NOPASSWD: /usr/bin/sa-learn
278 %list           LISTHOSTS=(amavis)              ALL
279 # geodns may reload bind
280 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/service bind9 reload
281 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/rndc reconfig
282 # pushed nagiosadm reload icinga on tchaikovsky
283 nagiosadm       tchaikovsky=(root)              NOPASSWD: /usr/sbin/service icinga reload
284 # voip stuff
285 %debvoip        VOIPHOSTS=(root)        /usr/sbin/service resiprocate-turn-server restart, /usr/sbin/service repro restart
286 %debvoip        VOIPHOSTS=(root)        /usr/sbin/service prosody restart, /usr/sbin/service prosody reload, /usr/sbin/service prosody stop, /usr/sbin/service prosody start
287 # jenkins
288 %jenkins-adm    JENKINSHOSTS=(jenkins)  ALL
289 %jenkins-adm    JENKINSHOSTS=(root)     /usr/sbin/service jenkins restart, /usr/sbin/service jenkins reload, /usr/sbin/service jenkins stop, /usr/sbin/service jenkins start
290
291 %Debian,%guest,%d-i     PORTERBOXES=(root)      NOPASSWD: /usr/local/bin/dd-schroot-cmd
292
293
294 # ports stuff
295 mini-dak        porta=(archvsync)       NOPASSWD: /home/archvsync/signal_ports
296
297 # temporary, for debugging
298 thijs           klecker=(root)          /usr/sbin/tcpdump