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
25 Host_Alias WEBHOSTS = klecker, wolkenstein
26 Host_Alias SECHOSTS = klecker, chopin
27 Host_Alias ZIVITHOSTS = zelenka, zandonai
28 Host_Alias AACRAIDHOSTS = bellini, cimarosa, morricone, paganini, respighi, vivaldi, beethoven, pettersson
29 Host_Alias MEGARAIDHOSTS = grieg, rautavaara, sibelius
30 Host_Alias MPTRAIDHOSTS = master, fasch, holter, barber, biber, cilea, vitry, krenek, scelsi, orff, field
31 # User alias specification
32 User_Alias QACORE = aba, djpig, geissert, hertzog, jeroen, joerg, lucas, luk, myon, tbm, weasel, zack
34 # Cmnd alias specification
36 # User privilege specification
40 # DSA and local admins
42 %adm ALL=(ALL) NOPASSWD: /usr/bin/apt-get update, /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
44 admin agnesi=(ALL) ALL
45 %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL
48 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
49 # with smartarray controllers
50 nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli ""
51 nagios ALL=(ALL) NOPASSWD: /usr/bin/arrayprobe ""
52 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show
53 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[02] pd all show
54 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]\:[0-9] show
55 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]I\:[0-9]\:[0-9] show
56 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[02] show status
57 # other raid controllers
58 nagios powell=(ALL) NOPASSWD: /usr/local/sbin/areca-cli vsf info
59 nagios puccini=(ALL) NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
60 nagios MPTRAIDHOSTS=(ALL) NOPASSWD: /usr/sbin/mpt-status -s
61 nagios AACRAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
62 nagios MEGARAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
64 nagios beethoven=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
66 # groups and their role accounts
67 %buildd ALL=(buildd) ALL
70 %debadmin ALL=(dak) ALL
71 %debbugs ALL=(debbugs) ALL
72 %debian-cd ALL=(debian-cd) ALL
73 %debian-release ALL=(release) ALL
74 %debwww ALL=(debwww) ALL
75 %forums ALL=(forums) ALL
76 %keyring ALL=(keyring) ALL
77 %lintian ALL=(lintian) ALL
78 %listweb ALL=(listweb) ALL
79 %list liszt=(list) ALL
80 %mirroradm ALL=(archvsync) ALL
82 %patch-tracker ALL=(patch-tracker) ALL
83 %piuparts ALL=(piupartsm) ALL
84 %piuparts ALL=(piupartss) ALL
85 %pkg_maint ALL=(pkg_user) ALL
86 %planet ALL=(planet) ALL
87 %popcon ALL=(popcon) ALL
88 %secretary ALL=(secretary) ALL
89 %sectracker ALL=(sectracker) ALL
90 %security SECHOSTS=(mail_security) ALL
91 %snapshot ALL=(snapshot) ALL
93 %volatile ALL=(volatile) ALL
94 %wbadm ALL=(wbadm) ALL
95 %wikiadm ALL=(wiki) ALL
96 QACORE QAHOSTS=(qa) ALL
98 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
99 %apachectrl ALL=(root) /usr/sbin/apache2-vhost-update
102 # FIXME: change that ALL for hosts to a hostlist of buildds?
103 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
104 buildd ALL=(ALL) NOPASSWD: ALL
106 # The piuparts slave needs to handle chroots
107 piupartss piatti=(ALL) NOPASSWD: ALL
108 # trigger of mirror run for packages
109 pkg_user powell=(archvsync) NOPASSWD: /home/archvsync/bin/pushpdo
110 # on draghi, the domains git thing will run bind9 reload afterwards
111 %adm draghi=(root) NOPASSWD: /etc/init.d/bind9 reload
112 %adm draghi=(geodnssync) NOPASSWD: /usr/bin/make -C /srv/db.debian.org/dns
113 # remote power to babylon5 in the same rack:
114 joerg unger=(ALL) /usr/bin/sispmctl -t [12], /usr/bin/sispmctl -g [12]
115 # wbadm can update all buildd* users' keys on buildd.d.o
116 %wbadm cimarosa,grieg=(root) /usr/local/bin/update-buildd-sshkeys
117 wbadm cimarosa,grieg=(postgres) NOPASSWD: /usr/bin/pg_dumpall --cluster 8.4/wanna-build
119 dak ries=(archvsync) NOPASSWD:/home/archvsync/runmirrors
120 planet senfl=(archvsync) NOPASSWD: /home/archvsync/bin/runplanet ""
121 # archvsync triggers snapshot
122 archvsync stabile=(snapshot) NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
123 archvsync sibelius=(snapshot) NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
125 %debian-release ries=(dak) /usr/local/bin/dak transitions --import *
126 %ftpteam ries=(dak) /usr/local/bin/dak transitions --import *
128 %security SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR] -- *
129 %sec_public SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR] -- *
130 %sec_data SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/security/signal ""
131 dak SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/signal_security
133 debwww WEBHOSTS=(archvsync) NOPASSWD: /home/archvsync/webmirrors/runmirrors
135 %list liszt=(root) /usr/sbin/postfix reload
136 %list liszt=(root) /usr/sbin/qshape, /usr/sbin/postsuper
137 %list liszt=(root) /etc/init.d/spamassassin, /etc/init.d/amavis
138 %list liszt=(amavis) NOPASSWD: /usr/bin/sa-learn
139 %list liszt=(amavis) ALL
140 # geodns may reload bind
141 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /etc/init.d/bind9 reload
142 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/rndc reconfig
145 %porter-alpha albeniz=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
146 %porter-armel agricola=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
147 %porter-amd64 pergolesi=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
148 %porter-hppa paer=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
149 %porter-ia64 merulo=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
150 %porter-mips gabrielli=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
151 %porter-ppc pescetti=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
152 %porter-s390 zelenka=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
153 %porter-sparc smetana,sperger,zee=(root) NOPASSWD: /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot