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: "
23 # Host alias specification
24 Host_Alias QAHOSTS = master, merkel, quantz
25 Host_Alias WEBHOSTS = wolkenstein
26 Host_Alias SECHOSTS = chopin
27 Host_Alias FTPHOSTS = franck, morricone
28 Host_Alias ZIVITHOSTS = zelenka, zandonai
29 Host_Alias AACRAIDHOSTS = bellini, morricone, paganini, respighi, vivaldi, beethoven, pettersson
30 Host_Alias MEGARAIDHOSTS = grieg, rautavaara, sibelius
31 Host_Alias MPTRAIDHOSTS = master, fasch, holter, barber, biber, cilea, vitry, krenek, scelsi, orff, field
33 # Cmnd alias specification
35 # User privilege specification
39 # DSA and local admins
41 %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
43 admin agnesi=(ALL) ALL
44 %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL
47 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
48 # with smartarray controllers
49 nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli ""
50 nagios ALL=(ALL) NOPASSWD: /usr/bin/arrayprobe ""
51 nagios franck=(ALL) NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0
52 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show
53 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
54 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
55 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
56 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
57 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
58 nagios franck=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=1 enclosure 1E\:1 show detail
60 # other raid controllers
61 nagios powell=(ALL) NOPASSWD: /usr/local/sbin/areca-cli vsf info
62 nagios puccini=(ALL) NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
63 nagios MPTRAIDHOSTS=(ALL) NOPASSWD: /usr/sbin/mpt-status -s
64 nagios AACRAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
65 nagios MEGARAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
67 nagios beethoven=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
69 # groups and their role accounts
70 %backports ALL=(backports) ALL
71 %buildd ALL=(buildd) ALL
74 %debadmin ALL=(dak) ALL
75 %debbugs ALL=(debbugs) ALL
76 %debbugs ALL=(debbugs-mirror) ALL
77 %debian-cd ALL=(debian-cd) ALL
78 %debian-release ALL=(release) ALL
79 %debvoip cilea=(freeswitch) ALL
80 %debwww ALL=(debwww) ALL
81 %btslink ALL=(btslink) ALL
82 %forums ALL=(forums) ALL
83 %keyring ALL=(keyring) ALL
84 %lintian ALL=(lintian) ALL
85 %listweb ALL=(listweb) ALL
86 %list liszt=(list) ALL
87 %mirroradm ALL=(archvsync) ALL
89 %patch-tracker ALL=(patch-tracker) ALL
90 %piuparts ALL=(piupartsm) ALL
91 %piuparts ALL=(piupartss) ALL
92 %pkg_maint ALL=(pkg_user) ALL
93 %planet ALL=(planet) ALL
94 %popcon ALL=(popcon) ALL
95 %search ALL=(search) ALL
96 %secretary ALL=(secretary) ALL
97 %sectracker ALL=(sectracker) ALL
98 %security SECHOSTS=(mail_security) ALL
99 %snapshot ALL=(snapshot) ALL
100 %uddadm ALL=(udd) ALL
101 %volatile ALL=(volatile) ALL
102 %wbadm ALL=(wbadm) ALL
103 %wikiadm ALL=(wiki) ALL
104 %qa-core QAHOSTS=(qa) ALL
106 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
107 %apachectrl ALL=(root) /usr/sbin/apache2-vhost-update
110 # FIXME: change that ALL for hosts to a hostlist of buildds?
111 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
112 buildd ALL=(ALL) NOPASSWD: ALL
114 # The piuparts slave needs to handle chroots
115 piupartss piatti=(ALL) NOPASSWD: ALL
116 # trigger of mirror run for packages
117 pkg_user powell=(archvsync) NOPASSWD: /home/archvsync/bin/pushpdo
118 # on draghi, the domains git thing will run bind9 reload afterwards
119 %dnsadm draghi,orff=(root) NOPASSWD: /etc/init.d/bind9 reload
120 %dnsadm draghi,orff=(geodnssync) NOPASSWD: /usr/bin/make -C /srv/dns.debian.org/geo
121 %adm draghi=(puppet) NOPASSWD: /usr/bin/make -s -C /srv/db.debian.org/var/gitnagios/dsa-nagios/config install
122 # remote power to babylon5 in the same rack:
123 joerg unger=(ALL) /usr/bin/sispmctl -t [12], /usr/bin/sispmctl -g [12]
124 # wbadm can update all buildd* users' keys on buildd.d.o
125 %wbadm grieg=(root) /usr/local/bin/update-buildd-sshkeys
126 wbadm grieg=(postgres) NOPASSWD: /usr/bin/pg_dumpall --cluster 8.4/wanna-build
128 dak FTPHOSTS,SECHOSTS=(archvsync) NOPASSWD:/home/archvsync/runmirrors
129 planet senfl=(archvsync) NOPASSWD: /home/archvsync/bin/runplanet ""
130 # archvsync triggers snapshot
131 archvsync sibelius,stabile=(snapshot) NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
132 archvsync sibelius,stabile=(snapshot) NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
133 # allow the debbugs-mirror user on rietz to release the afs volume so changes make it to the read-only replicas
134 debbugs-mirror rietz=(root) NOPASSWD: /usr/bin/vos release -id srv.mirrors.bugs -localauth
136 %debian-release FTPHOSTS=(dak) /usr/local/bin/dak transitions --import *
137 %ftpteam FTPHOSTS=(dak) /usr/local/bin/dak transitions --import *
139 %security SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
140 %sec_public SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
141 %sec_public SECHOSTS=(dak) NOPASSWD: /home/dak/trigger_mirror
142 dak SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/signal_security
144 debwww WEBHOSTS=(archvsync) NOPASSWD: /home/archvsync/webmirrors/runmirrors
145 %press WEBHOSTS=(debwww) /org/www.debian.org/update-part News
147 %list liszt=(root) /usr/sbin/postfix reload
148 %list liszt=(root) /usr/sbin/qshape, /usr/sbin/postsuper
149 %list liszt=(root) /etc/init.d/spamassassin, /etc/init.d/amavis
150 %list liszt=(amavis) NOPASSWD: /usr/bin/sa-learn
151 %list liszt=(amavis) ALL
152 # geodns may reload bind
153 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /etc/init.d/bind9 reload
154 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/rndc reconfig
156 %fossy vivaldi=(root) /etc/init.d/fossology
157 %fossy vivaldi=(fossy) ALL
160 %porter-alpha albeniz=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
161 %porter-armel abel,agricola=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
162 %porter-amd64 pergolesi=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
163 %porter-hppa paer=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
164 %porter-ia64 merulo=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
165 %porter-mips gabrielli=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
166 %porter-ppc pescetti=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
167 %porter-s390 zelenka=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
168 %porter-sparc smetana,sperger,zee=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot