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