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