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 QAHOSTS = quantz, stabile
26 Host_Alias WEBHOSTS = wolkenstein
27 Host_Alias SECHOSTS = chopin
28 Host_Alias FTPHOSTS = franck, morricone
29 Host_Alias ZIVITHOSTS = zelenka, zandonai
30 Host_Alias AACRAIDHOSTS = bellini, morricone, paganini, respighi, beethoven, pettersson
31 Host_Alias MEGARAIDHOSTS = grieg, rautavaara, sibelius
32 Host_Alias MPTRAIDHOSTS = fasch, holter, barber, biber, cilea, vitry, krenek, orff
33 Host_Alias MEGACTLHOSTS = lindberg, englund, nielsen
34 Host_Alias LISTHOSTS = bendel
35 Host_Alias PORTERBOXES = agricola, barriere, eder, falla, fischer, gabrielli, harris, merulo, partch, smetana, zelenka
36 Host_Alias PIUPARTS_SLAVE_HOSTS = piatti, piu-slave-bm-a
38 # Cmnd alias specification
40 # User privilege specification
44 # DSA and local admins
46 %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
48 %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL
51 nagios ALL=(ALL) NOPASSWD: /etc/init.d/ekeyd-egd-linux restart
52 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
53 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-filesystems ""
54 # with smartarray controllers
55 nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli ""
56 nagios ALL=(ALL) NOPASSWD: /usr/bin/arrayprobe ""
57 nagios franck=(ALL) NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0
58 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show
59 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
60 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
61 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
62 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
63 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
64 nagios franck=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=1 enclosure 1E\:1 show detail
66 # other raid controllers
67 #nagios powell=(ALL) NOPASSWD: /usr/local/sbin/areca-cli vsf info
68 nagios puccini=(ALL) NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
69 nagios MPTRAIDHOSTS=(ALL) NOPASSWD: /usr/sbin/mpt-status -s
70 nagios AACRAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
71 nagios MEGARAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
72 nagios MEGACTLHOSTS=(ALL) NOPASSWD: /usr/sbin/megactl -Hv
74 nagios beethoven=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
76 # groups and their role accounts
77 %auditor ALL=(accounting) ALL
78 %backports ALL=(backports) ALL
79 %buildd ALL=(buildd) ALL
83 %debadmin ALL=(dak) ALL
84 %debbugs ALL=(debbugs) ALL
85 %debbugs ALL=(debbugs-mirror) ALL
86 %debian-cd ALL=(debian-cd) ALL
87 %debian-i18n ALL=(debian-i18n) ALL
88 %debian-release ALL=(release) ALL
89 %debtags ALL=(debtags) ALL
90 %debvoip cilea=(freeswitch) ALL
91 %debwww ALL=(debwww) ALL
92 %btslink ALL=(btslink) ALL
93 %emdebian ALL=(emdebian) ALL
94 %forums ALL=(forums) ALL
95 %keyring ALL=(keyring) ALL
96 %lintian ALL=(lintian) ALL
97 %listweb ALL=(listweb) ALL
98 %list LISTHOSTS=(list) ALL
99 %mirroradm ALL=(archvsync) ALL
101 %patch-tracker ALL=(patch-tracker) ALL
102 %piuparts ALL=(piupartsm) ALL
103 %piuparts ALL=(piupartss) ALL
104 %pkg_maint ALL=(pkg_user) ALL
105 %planet ALL=(planet) ALL
106 %popcon ALL=(popcon) ALL
107 %search ALL=(search) ALL
108 %secretary ALL=(secretary) ALL
109 %sectracker ALL=(sectracker) ALL
110 %security SECHOSTS=(mail_security) ALL
111 %snapshot ALL=(snapshot) ALL
112 %uddadm ALL=(udd) ALL
113 %volatile ALL=(volatile) ALL
114 %wbadm ALL=(wbadm) ALL
115 %mujeres ALL=(women) ALL
116 %wikiadm ALL=(wiki,wikiweb) ALL
117 %qa-core QAHOSTS=(qa,qa-web-rolex) ALL
118 %gobby gombert=(gobby) ALL
120 # the dak user gets to run stuff as dak-unpriv (for things like lintian checks)
121 %ftptrainee FTPHOSTS=(dak-unpriv) NOPASSWD: /usr/bin/lintian
122 dak ALL=(dak-unpriv) NOPASSWD: ALL
124 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
125 %apachectrl ALL=(root) /usr/sbin/apache2-vhost-update
128 # FIXME: change that ALL for hosts to a hostlist of buildds?
129 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
130 buildd ALL=(ALL) NOPASSWD: ALL
132 %backports franck,ries=(staticsync) NOPASSWD: /usr/local/bin/static-update-component backports.debian.org
133 dak franck=(staticsync) NOPASSWD: /usr/local/bin/static-update-component ftp-master.metadata.debian.org
134 %debbits master=(staticsync) NOPASSWD: /usr/local/bin/static-update-component bits.debian.org
135 planet senfl=(staticsync) NOPASSWD: /usr/local/bin/static-update-component planet.debian.org
136 debwww wolkenstein=(staticsync) NOPASSWD: /usr/local/bin/static-update-component www.debian.org
138 # The piuparts slave needs to handle chroots
139 piupartss PIUPARTS_SLAVE_HOSTS=(ALL) NOPASSWD: ALL
140 # trigger of mirror run for packages
141 #pkg_user powell=(archvsync) NOPASSWD: /home/archvsync/bin/pushpdo
142 # on draghi, the domains git thing will run bind9 reload afterwards
143 %dnsadm draghi,orff=(root) NOPASSWD: /etc/init.d/bind9 reload
144 %dnsadm draghi,orff=(geodnssync) NOPASSWD: /usr/bin/make -C /srv/dns.debian.org/geo
145 %adm draghi=(puppet) NOPASSWD: /usr/bin/make -s -C /srv/db.debian.org/var/gitnagios/dsa-nagios/config install
146 # remote power to babylon5 in the same rack:
147 joerg unger=(ALL) /usr/bin/sispmctl -t [12], /usr/bin/sispmctl -g [12]
148 # wbadm can update all buildd* users' keys on buildd.d.o
149 %wbadm grieg=(root) /usr/local/bin/update-buildd-sshkeys
150 wbadm grieg=(postgres) NOPASSWD: /usr/bin/pg_dumpall --cluster 8.4/wanna-build
152 dak FTPHOSTS,SECHOSTS=(archvsync) NOPASSWD:/home/archvsync/runmirrors
153 planet senfl=(archvsync) NOPASSWD: /home/archvsync/bin/runplanet ""
154 # archvsync triggers snapshot
155 archvsync sibelius,stabile=(snapshot) NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
156 archvsync sibelius,stabile=(snapshot) NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
157 # allow the debbugs-mirror user on rietz to release the afs volume so changes make it to the read-only replicas
158 debbugs-mirror rietz=(root) NOPASSWD: /usr/bin/vos release -id srv.mirrors.bugs -localauth
160 %debian-release FTPHOSTS=(dak) /usr/local/bin/dak transitions --import *
161 %ftpteam FTPHOSTS=(dak) /usr/local/bin/dak transitions --import *
163 %security SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
164 %sec_public SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
165 %sec_public SECHOSTS=(dak) NOPASSWD: /home/dak/trigger_mirror
166 dak SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/signal_security
168 debwww WEBHOSTS=(archvsync) NOPASSWD: /home/archvsync/webmirrors/runmirrors
169 %press WEBHOSTS=(debwww) /srv/www.debian.org/update-part News
171 %list LISTHOSTS=(root) /usr/sbin/postfix reload
172 %list LISTHOSTS=(root) /usr/sbin/qshape, /usr/sbin/postsuper
173 %list LISTHOSTS=(root) /etc/init.d/spamassassin, /etc/init.d/amavis
174 %list LISTHOSTS=(amavis) NOPASSWD: /usr/bin/sa-learn
175 %list LISTHOSTS=(amavis) ALL
176 # geodns may reload bind
177 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /etc/init.d/bind9 reload
178 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/rndc reconfig
179 # pushed nagiosadm reload icinga on tchaikovsky
180 nagiosadm tchaikovsky=(root) NOPASSWD: /usr/sbin/service icinga reload
183 %porter-armel abel,agricola=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
184 %porter-armel harris=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
185 %porter-amd64 barriere,pergolesi=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
186 %porter-bsd falla,fischer=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
187 %porter-ia64 merulo=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
188 %porter-mips eder,gabrielli=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
189 %porter-ppc partch=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
190 %porter-s390 zelenka=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
191 %porter-sparc smetana,sperger=(root) /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
192 %Debian,%guest PORTERBOXES=(root) NOPASSWD: /usr/local/bin/dd-schroot-cmd