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