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 # User alias specification
29 User_Alias QACORE = aba, djpig, geissert, hertzog, jeroen, joerg, lucas, luk, myon, tbm, weasel, zack
31 # Cmnd alias specification
33 # User privilege specification
37 # DSA and local admins
39 %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
41 admin agnesi=(ALL) ALL
42 %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL
45 nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
46 # with smartarray controllers
47 nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli ""
48 nagios ALL=(ALL) NOPASSWD: /usr/bin/arrayprobe ""
49 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show
50 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[02] pd all show
51 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]\:[0-9] show
52 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]I\:[0-9]\:[0-9] show
53 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[02] show status
54 # other raid controllers
55 nagios master=(ALL) NOPASSWD: /usr/sbin/mpt-status -s
56 nagios powell=(ALL) NOPASSWD: /usr/local/sbin/areca-cli vsf info
57 nagios puccini=(ALL) NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
58 nagios bellini,cimarosa,morricone,paganini,respighi,vivaldi,beethoven=(ALL) NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
60 # groups and their role accounts
61 %buildd ALL=(buildd) ALL
64 %debadmin ALL=(dak) ALL
65 %debbugs ALL=(debbugs) ALL
66 %debian-release ALL=(release) ALL
67 %debwww ALL=(debwww) ALL
68 %forums ALL=(forums) ALL
69 %keyring ALL=(keyring) ALL
70 %lintian ALL=(lintian) ALL
71 %listweb ALL=(listweb) ALL
72 %list liszt=(list) ALL
73 %mirroradm ALL=(archvsync) ALL
75 %patch-tracker ALL=(patch-tracker) ALL
76 %piuparts ALL=(piupartsm) ALL
77 %piuparts ALL=(piupartss) ALL
78 %pkg_maint ALL=(pkg_user) ALL
79 %planet ALL=(planet) ALL
80 %popcon ALL=(popcon) ALL
81 %secretary ALL=(secretary) ALL
82 %sectracker ALL=(sectracker) ALL
83 %security SECHOSTS=(mail_security) ALL
84 %snapshot ALL=(snapshot) ALL
86 %volatile ALL=(volatile) ALL
87 %wbadm ALL=(wbadm) ALL
88 %wikiadm ALL=(wiki) ALL
89 QACORE QAHOSTS=(qa) ALL
91 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
92 %apachectrl ALL=(root) /usr/sbin/apache2-vhost-update
95 # FIXME: change that ALL for hosts to a hostlist of buildds?
96 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
97 buildd ALL=(ALL) NOPASSWD: ALL
99 # The piuparts slave needs to handle chroots
100 piupartss piatti=(ALL) NOPASSWD: ALL
101 # trigger of mirror run for packages
102 pkg_user powell=(archvsync) NOPASSWD: /home/archvsync/bin/pushpdo
103 # on draghi, the domains git thing will run bind9 reload afterwards
104 %adm draghi=(root) NOPASSWD: /etc/init.d/bind9 reload
105 %adm draghi=(geodnssync) NOPASSWD: /usr/bin/make -C /srv/db.debian.org/dns
106 # remote power to babylon5 in the same rack:
107 joerg unger=(ALL) /usr/bin/sispmctl -t 1, /usr/bin/sispmctl -g 1
108 # wbadm can update all buildd* users' keys on buildd.d.o
109 %wbadm cimarosa=(root) /usr/local/bin/update-buildd-sshkeys
110 wbadm cimarosa=(postgres) NOPASSWD: /usr/bin/pg_dumpall --cluster 8.4/wanna-build
112 dak ries=(archvsync) NOPASSWD:/home/archvsync/runmirrors
113 planet senfl=(archvsync) NOPASSWD: /home/archvsync/bin/runplanet ""
114 # archvsync triggers snapshot
115 archvsync stabile=(snapshot) NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
117 %debian-release ries=(dak) /usr/local/bin/dak transitions --import *
118 %ftpteam ries=(dak) /usr/local/bin/dak transitions --import *
120 %security SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR] -- *
121 %sec_public SECHOSTS=(dak) NOPASSWD: /usr/local/bin/dak new-security-install -[AR] -- *
122 %sec_data SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/security/signal ""
123 dak SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/signal_security
125 debwww WEBHOSTS=(archvsync) NOPASSWD: /home/archvsync/webmirrors/runmirrors
127 %list liszt=(root) /usr/sbin/postfix reload
128 %list liszt=(root) /usr/sbin/qshape, /usr/sbin/postsuper
129 %list liszt=(root) /etc/init.d/spamassassin, /etc/init.d/amavis
130 %list liszt=(amavis) NOPASSWD: /usr/bin/sa-learn
131 %list liszt=(amavis) ALL
132 # geodns may reload bind
133 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /etc/init.d/bind9 reload
134 geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/rndc reconfig