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