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 = chopin, seger
28 Host_Alias FTPHOSTS = franck
29 Host_Alias ZIVITHOSTS = zelenka, zandonai
30 Host_Alias AACRAIDHOSTS = beethoven, pettersson
31 Host_Alias MEGARAIDHOSTS = rautavaara, sibelius
32 Host_Alias MEGACTLHOSTS = nielsen
33 Host_Alias LISTHOSTS = bendel
34 Host_Alias BUILDD_MASTER = wuiet
35 Host_Alias BUILDD_PORTS_MASTER = portman
36 Host_Alias PORTERBOXES = abel, asachi, barriere, eder, etler, falla, fischer, harris, merulo, minkus, partch, plummer, pizzetti, smetana, zelenka
37 Host_Alias PIUPARTS_SLAVE_HOSTS = piu-slave-bm-a
38 Host_Alias MQ_HOSTS = rainier, rapoport
39 Host_Alias NOVAHOSTS = oyens, bm-bl9, bm-bl10, bm-bl11, bm-bl12
41 # Cmnd alias specification
43 # User privilege specification
47 # 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 ALL=(ALL) NOPASSWD: /usr/local/sbin/dsa-check-libs ""
63 nagios handel=(puppet) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-cert-expire /var/lib/puppet/ssl/certs/ca.pem
64 # with smartarray controllers
65 nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli ""
66 nagios ALL=(ALL) NOPASSWD: /usr/bin/arrayprobe ""
67 nagios franck=(ALL) NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0
68 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show
69 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld all show
70 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld [0-9] show
71 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
72 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
73 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
74 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
75 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
76 nagios franck=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=1 enclosure 1E\:1 show detail
78 # other raid controllers
79 nagios powell=(ALL) NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
80 nagios AACRAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
81 nagios MEGARAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
82 nagios MEGACTLHOSTS=(ALL) NOPASSWD: /usr/sbin/megactl -Hv
84 nagios backuphost=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
85 nagios storace=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
87 # groups and their role accounts
88 %appstream ALL=(appstream) ALL
89 %auditor ALL=(accounting) ALL
90 %backports ALL=(backports) ALL
91 %blends ALL=(blends) ALL
92 %btslink ALL=(btslink) ALL
93 %buildd ALL=(buildd) ALL
94 %codesearch ALL=(codesearch) ALL
98 %debadmin ALL=(dak) ALL
99 %debbugs ALL=(debbugs) ALL
100 %debbugs ALL=(debbugs-mirror) ALL
101 %debdelta ALL=(debdelta) ALL
102 %debian-cd ALL=(debian-cd) ALL
103 %debian-i18n ALL=(debian-i18n) ALL
104 %debian-release ALL=(release) ALL
105 %debtags ALL=(debtags) ALL
106 %debwww ALL=(debwww) ALL
107 %dedup ALL=(dedup) ALL
109 %dgit ALL=(dgit-unpriv) ALL
110 %emdebian ALL=(emdebian) ALL
111 %forums ALL=(forums) ALL
112 %gitdoadm ALL=(gitdoadm) ALL
113 %httpredir ALL=(httpredir) ALL
114 %httpredir ALL=(httpredir-app) ALL
115 %keyring ALL=(keyring) ALL
116 %jenkins-adm ALL=(jenkins-adm) ALL
117 %lintian ALL=(lintian) ALL
118 %listweb ALL=(listweb) ALL
119 %list LISTHOSTS=(list) ALL
121 %list master=(debian) ALL
122 %mirroradm ALL=(archvsync) ALL
124 %patch-tracker ALL=(patch-tracker) ALL
125 %pet-devel ALL=(pet-devel) ALL
126 %piuparts ALL=(piupartsm) ALL
127 %piuparts ALL=(piupartss) ALL
128 %pkg_maint ALL=(pkg_user) ALL
129 %planet ALL=(planet) ALL
130 %popcon ALL=(popcon) ALL
131 %ports ALL=(ports) ALL
132 %search ALL=(search) ALL
133 %secretary ALL=(secretary) ALL
134 %sectracker ALL=(sectracker) ALL
135 %security SECHOSTS=(mail_security) ALL
136 %security ALL=(security) ALL
137 %snapshot ALL=(snapshot) ALL
138 %uddadm ALL=(udd) ALL
139 %videoteam vittoria=(veyepar) ALL
140 %volatile ALL=(volatile) ALL
141 %wbadm ALL=(wbadm) ALL
142 %wbadm-ports ALL=(wbadm-ports) ALL
143 %mujeres ALL=(women) ALL
144 %wikiadm ALL=(wiki,wikiweb) ALL
145 %qa-core ALL=(qa) ALL
146 %gobby gombert=(gobby) ALL
147 %dacshelper diabelli=(www-data) ALL
148 %debsso diabelli=(debsso) ALL
149 %debsso-web diabelli=(debsso-web) ALL
151 # the dak user gets to run stuff as dak-unpriv (for things like lintian checks)
152 %ftptrainee FTPHOSTS=(dak-unpriv) NOPASSWD: /usr/bin/lintian
153 dak ALL=(dak-unpriv) NOPASSWD: ALL
154 # and ftpmaster can access the role user for their web services
155 %debadmin FTPHOSTS=(dak-web) ALL
157 # the httpredir role use can run things as httpredir-app
158 httpredir ALL=(httpredir-app) NOPASSWD: ALL
160 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
161 %apachectrl ALL=(root) /usr/sbin/apache2-vhost-update
164 # FIXME: change that ALL for hosts to a hostlist of buildds?
165 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
166 buildd ALL=(ALL) NOPASSWD: ALL
168 %appstream mekeel=(staticsync) NOPASSWD: /usr/local/bin/static-update-component appstream.debian.org
169 %backports franck,coccia=(staticsync) NOPASSWD: /usr/local/bin/static-update-component backports.debian.org
170 d-i dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component d-i.debian.org
171 lucas dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debaday.debian.net
172 dsa dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component dsa.debian.org
173 dak franck=(staticsync) NOPASSWD: /usr/local/bin/static-update-component incoming.debian.org
174 dak franck=(staticsync) NOPASSWD: /usr/local/bin/static-update-component metadata.ftp-master.debian.org
175 %publicity master=(staticsync) NOPASSWD: /usr/local/bin/static-update-component bits.debian.org
176 %debdelta donizetti=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debdeltas.debian.net
177 %webwml master=(staticsync) NOPASSWD: /usr/local/bin/static-update-component network-test.debian.org
178 planet philp=(staticsync) NOPASSWD: /usr/local/bin/static-update-component planet.debian.org
179 debwww wolkenstein=(staticsync) NOPASSWD: /usr/local/bin/static-update-component www.debian.org
180 %blends dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component blends.debian.org
181 %Debian dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component wnpp-by-tags.debian.net
182 %Debian dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component mozilla.debian.net
183 %ports dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component www.ports.debian.org
184 %debvoip dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component rtc.debian.org
185 %security dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component security-team.debian.org
186 %publicity dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net
187 pabs dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net
188 %lintian lindsay=(staticsync) NOPASSWD: /usr/local/bin/static-update-component lintian.debian.org
190 # The piuparts slave needs to handle chroots
191 piupartss PIUPARTS_SLAVE_HOSTS=(ALL) NOPASSWD: ALL
192 # trigger of mirror run for packages
193 #pkg_user powell=(archvsync) NOPASSWD: /home/archvsync/bin/pushpdo
194 dnsadm denis=(root) NOPASSWD: /usr/sbin/service bind9 reload
195 %adm draghi=(puppet) NOPASSWD: /usr/bin/make -s -C /srv/db.debian.org/var/gitnagios/dsa-nagios/config install
196 # wbadm can update all buildd* users' keys on buildd.d.o
197 %wbadm BUILDD_MASTER=(wb-buildd) ALL
198 %wbadm BUILDD_MASTER=(root) /usr/local/bin/update-buildd-sshkeys
199 # wbadm can update all buildd* users' keys on buildd.d.o
200 %wbadm-ports BUILDD_PORTS_MASTER=(wb-buildd) ALL
201 %wbadm-ports BUILDD_PORTS_MASTER=(root) /usr/local/bin/update-buildd-sshkeys
203 dak FTPHOSTS,SECHOSTS=(archvsync) NOPASSWD:/home/archvsync/runmirrors
204 dak franck=(backports) NOPASSWD: /home/backports/bin/update-archive
205 # archvsync triggers snapshot
206 archvsync sibelius=(snapshot) NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
207 archvsync sibelius=(snapshot) NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
209 %debian-release FTPHOSTS=(dak) /usr/local/bin/dak transitions --import *
210 %ftpteam FTPHOSTS=(dak) /usr/local/bin/dak transitions --import *
212 %security SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
213 %sec_public SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
214 %sec_public SECHOSTS=(dak) NOPASSWD: /home/dak/trigger_mirror
215 dak SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/signal_security
217 debwww WEBHOSTS=(archvsync) NOPASSWD: /home/archvsync/webmirrors/runmirrors
218 %publicity WEBHOSTS=(debwww) /srv/www.debian.org/update-part News
219 %debvote WEBHOSTS=(debwww) /srv/www.debian.org/update-part vote
221 %list LISTHOSTS=(root) /usr/sbin/postfix reload
222 %list stockhausen=(root) /usr/sbin/service jetty restart
223 %list LISTHOSTS=(root) /usr/sbin/qshape, /usr/sbin/postsuper
224 %list LISTHOSTS=(root) /etc/init.d/spamassassin, /etc/init.d/amavis
225 %list LISTHOSTS=(amavis) NOPASSWD: /usr/bin/sa-learn
226 %list LISTHOSTS=(amavis) ALL
227 # geodns may reload bind
228 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/service bind9 reload
229 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/rndc reconfig
230 # pushed nagiosadm reload icinga on tchaikovsky
231 nagiosadm tchaikovsky=(root) NOPASSWD: /usr/sbin/service icinga reload
233 %Debian,%guest,%d-i PORTERBOXES=(root) NOPASSWD: /usr/local/bin/dd-schroot-cmd
236 %debvoip VOIPHOSTS=(root) /usr/sbin/service resiprocate-turn-server restart, /usr/sbin/service repro restart
237 %debvoip VOIPHOSTS=(root) /usr/sbin/service prosody restart, /usr/sbin/service prosody reload, /usr/sbin/service prosody stop, /usr/sbin/service prosody start
240 Defaults:neutron !requiretty
241 nova NOVAHOSTS=(root) NOPASSWD: /usr/bin/nova-rootwrap *
242 neutron NOVAHOSTS=(root) NOPASSWD: /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf *
243 cinder NOVAHOSTS=(root) NOPASSWD: /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf *
244 %openstack NOVAHOSTS=(keystone) ALL
245 %openstack NOVAHOSTS=(memcache) ALL
246 %openstack NOVAHOSTS=(ceilometer) ALL
247 %openstack NOVAHOSTS=(cinder) ALL
248 %openstack NOVAHOSTS=(glance) ALL
249 %openstack NOVAHOSTS=(heat) ALL
250 %openstack NOVAHOSTS=(neutron) ALL
251 %openstack NOVAHOSTS=(nova) ALL