fixes
[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 # Host alias specification
25 Host_Alias      VOIPHOSTS       = vogler
26 Host_Alias      WEBHOSTS        = wolkenstein
27 Host_Alias      SECHOSTS        = seger
28 Host_Alias      FTPHOSTS        = franck
29 Host_Alias      ZIVITHOSTS      = zelenka, zandonai
30 Host_Alias      AACRAIDHOSTS    = pettersson
31 Host_Alias      MEGARAIDHOSTS   = rautavaara, 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      NOVAHOSTS       = oyens
38 Host_Alias      JENKINSHOSTS    = jerea
39
40 # Cmnd alias specification
41
42 # User privilege specification
43 root    ALL=(ALL) ALL
44
45
46 # DSA and local admins
47 %adm            ALL=(ALL)       ALL
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
49
50 %zivit-admins   ZIVITHOSTS=(ALL)        NOPASSWD: ALL
51
52 # nagios
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          ALL=(ALL)       NOPASSWD: /usr/local/sbin/dsa-check-libs ""
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          franck=(ALL)    NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0
67 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller all show
68 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] ld all show
69 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] ld [0-9] show
70 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd all show
71 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9]\:[0-9] show
72 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
73 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
74 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpssacli controller slot=[0129] show status
75 nagios          franck=(ALL)    NOPASSWD: /usr/sbin/hpssacli controller slot=1 enclosure 1E\:1 show detail
76 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
77 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld all show
78 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld [0-9] show
79 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
80 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
81 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
82 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
83 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
84 nagios          franck=(ALL)    NOPASSWD: /usr/sbin/hpacucli controller slot=1 enclosure 1E\:1 show detail
85
86 # other raid controllers
87 nagios          powell=(ALL)    NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
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 # other nagios things
91 nagios          backuphost=(debbackup)  NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
92 nagios          storace=(debbackup)     NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
93
94 # groups and their role accounts
95 %appstream      ALL=(appstream) ALL
96 %auditor        ALL=(accounting)        ALL
97 %backports      ALL=(backports) ALL
98 %blends         ALL=(blends)    ALL
99 %bootstrap      ALL=(bootstrap) ALL
100 %btslink        ALL=(btslink)   ALL
101 %buildd         ALL=(buildd)    ALL
102 %codesearch     ALL=(codesearch)        ALL
103 %d-i            ALL=(d-i)       ALL
104 %dde            ALL=(dde)       ALL
105 %ddtp           ALL=(ddtp)      ALL
106 %debadmin       ALL=(dak)       ALL
107 %debbugs        ALL=(debbugs)   ALL
108 %debbugs        ALL=(debbugs-mirror)    ALL
109 %debconfstatic  ALL=(debconfstatic)     ALL
110 %debdelta       ALL=(debdelta)  ALL
111 %debian-cd      ALL=(debian-cd) ALL
112 %debian-i18n    ALL=(debian-i18n)       ALL
113 %debian-r       ALL=(debian-r)  ALL
114 %debian-r       ALL=(debian-r-wb-buildd)        ALL
115 %debian-release ALL=(release)   ALL
116 %debtags        ALL=(debtags)   ALL
117 %debwww         ALL=(debwww)    ALL
118 %dedup          ALL=(dedup)     ALL
119 %dgit           ALL=(dgit)      ALL
120 %dgit           ALL=(dgit-unpriv)       ALL
121 %emdebian       ALL=(emdebian)  ALL
122 %forums         ALL=(forums)    ALL
123 %gitdoadm       ALL=(gitdoadm)  ALL
124 # the git user also exists on adayevskaya where it's a different service..
125 %gitdoadm       gigault=(git)   ALL
126 %httpredir      ALL=(httpredir) ALL
127 %httpredir      ALL=(httpredir-app)     ALL
128 %keyring        ALL=(keyring)   ALL
129 %jenkins-adm    ALL=(jenkins-adm)       ALL
130 %lintian        ALL=(lintian)   ALL
131 %listweb        ALL=(listweb)   ALL
132 %list           LISTHOSTS=(list)        ALL
133 # archives and stuff
134 %list           master=(debian) ALL
135 %manpages       ALL=(manpages)  ALL
136 %mirroradm      ALL=(archvsync) ALL
137 %nm             ALL=(nm)        ALL
138 %patch-tracker  ALL=(patch-tracker)     ALL
139 %pet-devel      ALL=(pet-devel) ALL
140 %piuparts       ALL=(piupartsm) ALL
141 %piuparts       ALL=(piupartss) ALL
142 %pkg_maint      ALL=(pkg_user)  ALL
143 %planet         ALL=(planet)    ALL
144 %popcon         ALL=(popcon)    ALL
145 %ports          ALL=(ports)     ALL
146 %search         ALL=(search)    ALL
147 %secretary      ALL=(secretary) ALL
148 %sectracker     ALL=(sectracker)        ALL
149 %security       SECHOSTS=(mail_security)        ALL
150 %security       ALL=(security)  ALL
151 %snapshot       ALL=(snapshot)  ALL
152 %uddadm         ALL=(udd)       ALL
153 %videoteam      vittoria=(veyepar)      ALL
154 %volatile       ALL=(volatile)  ALL
155 %wbadm          ALL=(wbadm)     ALL
156 %mujeres        ALL=(women)     ALL
157 %wikiadm        ALL=(wiki,wikiweb)      ALL
158 %qa-core        ALL=(qa)        ALL
159 %gobby          gombert=(gobby) ALL
160 %dacshelper     diabelli=(www-data)     ALL
161 %debsso         diabelli=(debsso)       ALL
162 %debsso-web     diabelli=(debsso-web)   ALL
163
164 # the dak user gets to run stuff as dak-unpriv (for things like lintian checks)
165 %ftptrainee     FTPHOSTS=(dak-unpriv)   NOPASSWD: /usr/bin/lintian
166 dak             ALL=(dak-unpriv)        NOPASSWD: ALL
167 # and ftpmaster can access the role user for their web services
168 %debadmin       FTPHOSTS=(dak-web)      ALL
169
170 # the httpredir role use can run things as httpredir-app
171 httpredir       ALL=(httpredir-app)     NOPASSWD: ALL
172
173 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
174 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
175
176 # buildd
177 # FIXME: change that ALL for hosts to a hostlist of buildds?
178 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
179 buildd          ALL=(ALL)               NOPASSWD: ALL
180
181 %appstream      mekeel=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component appstream.debian.org
182 %backports      franck,coccia=(staticsync)      NOPASSWD: /usr/local/bin/static-update-component backports.debian.org
183 %boostrap       boott=(staticsync)              NOPASSWD: /usr/local/bin/static-update-component bootstrap.debian.net
184 d-i             dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component d-i.debian.org
185 lucas           dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debaday.debian.net
186 dsa             dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component dsa.debian.org
187 dak             franck=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component incoming.debian.org
188 dak             franck=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component metadata.ftp-master.debian.org
189 %publicity      dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component bits.debian.org
190 %publicity      dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component micronews.debian.net
191 %debdelta       donizetti=(staticsync)          NOPASSWD: /usr/local/bin/static-update-component debdeltas.debian.net
192 %webwml         master=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component network-test.debian.org
193 planet          philp=(staticsync)              NOPASSWD: /usr/local/bin/static-update-component planet.debian.org
194 debwww          wolkenstein=(staticsync)        NOPASSWD: /usr/local/bin/static-update-component www.debian.org
195 %blends         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component blends.debian.org
196 %Debian         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component wnpp-by-tags.debian.net
197 %Debian         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component mozilla.debian.net
198 %ports          dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component www.ports.debian.org
199 %debian-release respighi=(staticsync)           NOPASSWD: /usr/local/bin/static-update-component release.debian.org
200 %debian-release coccia=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component release.debian.org-pu
201 %debvoip        dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component rtc.debian.org
202 %security       dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component security-team.debian.org
203 %publicity      dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net
204 pabs            dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net
205 %lintian        lindsay=(staticsync)            NOPASSWD: /usr/local/bin/static-update-component lintian.debian.org
206 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component 10years.debconf.org
207 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf0.debconf.org
208 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf1.debconf.org
209 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf2.debconf.org
210 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf3.debconf.org
211 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf4.debconf.org
212 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf5.debconf.org
213 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf6.debconf.org
214 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf7.debconf.org
215 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debconf16.debconf.org
216 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component es.debconf.org
217 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component fr.debconf.org
218 %debconfstatic  dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component miniconf10.debconf.org
219 mini-dak        porta=(staticsync)              NOPASSWD: /usr/local/bin/static-update-component incoming.ports.debian.org
220
221 # The piuparts slave needs to handle chroots
222 piupartss       PIUPARTS_SLAVE_HOSTS=(ALL)              NOPASSWD: ALL
223 # trigger of mirror run for packages
224 #pkg_user       powell=(archvsync)      NOPASSWD: /home/archvsync/bin/pushpdo
225 dnsadm          denis=(root)                    NOPASSWD: /usr/sbin/service bind9 reload
226 letsencrypt     denis=(dnsadm)                  NOPASSWD: /srv/dns.debian.org/bin/update
227 %adm            draghi=(puppet)                 NOPASSWD: /usr/bin/make -s -C /srv/db.debian.org/var/gitnagios/dsa-nagios/config install
228 # wbadm can update all buildd* users' keys on buildd.d.o
229 %wbadm          BUILDD_MASTER=(wb-buildd)       ALL
230 %wbadm          BUILDD_MASTER=(root)            /usr/local/bin/update-buildd-sshkeys
231 # mirror push
232 dak             FTPHOSTS,SECHOSTS=(archvsync)   NOPASSWD:/home/archvsync/runmirrors
233 dak             franck=(backports)      NOPASSWD: /home/backports/bin/update-archive
234 # archvsync triggers snapshot
235 archvsync       sibelius=(snapshot)     NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
236 archvsync       sibelius=(snapshot)     NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
237 # dak stuff
238 %debian-release FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
239 %ftpteam        FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
240 # security
241 %security       SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
242 %sec_public     SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
243 %sec_public     SECHOSTS=(dak)          NOPASSWD: /home/dak/trigger_mirror
244 dak             SECHOSTS=(archvsync)    NOPASSWD: /home/archvsync/signal_security
245 # web stuff
246 debwww          WEBHOSTS=(archvsync)    NOPASSWD: /home/archvsync/webmirrors/runmirrors
247 %publicity      WEBHOSTS=(debwww)       /srv/www.debian.org/update-part News
248 %debvote        WEBHOSTS=(debwww)       /srv/www.debian.org/update-part vote
249 %d-i            WEBHOSTS=(debwww)       /srv/www.debian.org/update-part devel/debian-installer
250 # more list stuff
251 %list           LISTHOSTS=(root)                /usr/sbin/postfix reload
252 %list           stockhausen=(root)              /usr/sbin/service jetty restart
253 %list           LISTHOSTS=(root)                /usr/sbin/qshape, /usr/sbin/postsuper
254 %list           LISTHOSTS=(root)                /etc/init.d/spamassassin, /etc/init.d/amavis
255 %list           LISTHOSTS=(amavis)              NOPASSWD: /usr/bin/sa-learn
256 %list           LISTHOSTS=(amavis)              ALL
257 # geodns may reload bind
258 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/service bind9 reload
259 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/rndc reconfig
260 # pushed nagiosadm reload icinga on tchaikovsky
261 nagiosadm       tchaikovsky=(root)              NOPASSWD: /usr/sbin/service icinga reload
262 # voip stuff
263 %debvoip        VOIPHOSTS=(root)        /usr/sbin/service resiprocate-turn-server restart, /usr/sbin/service repro restart
264 %debvoip        VOIPHOSTS=(root)        /usr/sbin/service prosody restart, /usr/sbin/service prosody reload, /usr/sbin/service prosody stop, /usr/sbin/service prosody start
265 # jenkins
266 %jenkins-adm    JENKINSHOSTS=(jenkins)  ALL
267 %jenkins-adm    JENKINSHOSTS=(root)     /usr/sbin/service jenkins restart, /usr/sbin/service jenkins reload, /usr/sbin/service jenkins stop, /usr/sbin/service jenkins start
268
269 %Debian,%guest,%d-i     PORTERBOXES=(root)      NOPASSWD: /usr/local/bin/dd-schroot-cmd
270
271
272 # Openstack stuff
273 Defaults:neutron !requiretty
274 nova            NOVAHOSTS=(root)        NOPASSWD: /usr/bin/nova-rootwrap *
275 neutron         NOVAHOSTS=(root)        NOPASSWD: /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf *
276 cinder          NOVAHOSTS=(root)        NOPASSWD: /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf *
277 %openstack      NOVAHOSTS=(keystone)    ALL
278 %openstack      NOVAHOSTS=(memcache)    ALL
279 %openstack      NOVAHOSTS=(ceilometer)  ALL
280 %openstack      NOVAHOSTS=(cinder)      ALL
281 %openstack      NOVAHOSTS=(glance)      ALL
282 %openstack      NOVAHOSTS=(heat)        ALL
283 %openstack      NOVAHOSTS=(neutron)     ALL
284 %openstack      NOVAHOSTS=(nova)        ALL
285
286 # ports stuff
287 mini-dak        porta=(archvsync)       NOPASSWD: /home/archvsync/signal_ports
288 mini-dak        porta=(archvsync)       NOPASSWD: /home/archvsync/signal_ports-cd