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