]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/sudo/files/sudoers
static-update-component planet
[dsa-puppet.git] / modules / sudo / files / sudoers
1 # /etc/sudoers
2 ##
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
5 ##
6
7 ###################################################################
8 ###################################################################
9 ###################################################################
10 ##
11 ## PLEASE EDIT THIS FILE WITH THE visudo COMMAND TO ENSURE IT
12 ## IS SYNTACTICALLY VALID.
13 ##
14 ##  /usr/sbin/visudo -f sudoers
15 ##
16 ###################################################################
17 ###################################################################
18 ###################################################################
19
20 Defaults        env_reset
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"
23
24 # Host alias specification
25 Host_Alias      QAHOSTS         = master, 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    = master, fasch, holter, barber, biber, cilea, vitry, krenek, scelsi, orff, field
33 Host_Alias      MEGACTLHOSTS    = lindberg, englund, nielsen
34 Host_Alias  LISTHOSTS   = bendel
35
36 # Cmnd alias specification
37
38 # User privilege specification
39 root    ALL=(ALL) ALL
40
41
42 # DSA and local admins
43 %adm            ALL=(ALL)       ALL
44 %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
45
46 %zivit-admins   ZIVITHOSTS=(ALL)        NOPASSWD: ALL
47
48 # nagios
49 nagios          ALL=(ALL)       NOPASSWD: /etc/init.d/ekeyd-egd-linux restart
50 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
51 # with smartarray controllers
52 nagios          ALL=(ALL)       NOPASSWD: /sbin/hpasmcli ""
53 nagios          ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
54 nagios          franck=(ALL)    NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0
55 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
56 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
57 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
58 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
59 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
60 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
61 nagios          franck=(ALL)    NOPASSWD: /usr/sbin/hpacucli controller slot=1 enclosure 1E\:1 show detail
62
63 # other raid controllers
64 nagios          powell=(ALL)    NOPASSWD: /usr/local/sbin/areca-cli vsf info
65 nagios          puccini=(ALL)   NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
66 nagios          MPTRAIDHOSTS=(ALL)      NOPASSWD: /usr/sbin/mpt-status -s
67 nagios          AACRAIDHOSTS=(ALL)      NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
68 nagios          MEGARAIDHOSTS=(ALL)     NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
69 nagios          MEGACTLHOSTS=(ALL)      NOPASSWD: /usr/sbin/megactl -Hv
70 # other nagios things
71 nagios          beethoven=(debbackup)   NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
72
73 # groups and their role accounts
74 %auditor        ALL=(accounting)        ALL
75 %backports      ALL=(backports) ALL
76 %buildd         ALL=(buildd)    ALL
77 %d-i            ALL=(d-i)       ALL
78 %dde            ALL=(dde)       ALL
79 %ddtp           ALL=(ddtp)      ALL
80 %debadmin       ALL=(dak)       ALL
81 %debbugs        ALL=(debbugs)   ALL
82 %debbugs        ALL=(debbugs-mirror)    ALL
83 %debian-cd      ALL=(debian-cd) ALL
84 %debian-i18n    ALL=(debian-i18n)       ALL
85 %debian-release ALL=(release)   ALL
86 %debtags        ALL=(debtags)   ALL
87 %debvoip        cilea=(freeswitch)      ALL
88 %debwww         ALL=(debwww)    ALL
89 %btslink        ALL=(btslink)   ALL
90 %emdebian       ALL=(emdebian)  ALL
91 %forums         ALL=(forums)    ALL
92 %keyring        ALL=(keyring)   ALL
93 %lintian        ALL=(lintian)   ALL
94 %listweb        ALL=(listweb)   ALL
95 %list           LISTHOSTS=(list)        ALL
96 %mirroradm      ALL=(archvsync) ALL
97 %nm             ALL=(nm)        ALL
98 %patch-tracker  ALL=(patch-tracker)     ALL
99 %piuparts       ALL=(piupartsm) ALL
100 %piuparts       ALL=(piupartss) ALL
101 %pkg_maint      ALL=(pkg_user)  ALL
102 %planet         ALL=(planet)    ALL
103 %popcon         ALL=(popcon)    ALL
104 %search         ALL=(search)    ALL
105 %secretary      ALL=(secretary) ALL
106 %sectracker     ALL=(sectracker)        ALL
107 %security       SECHOSTS=(mail_security)        ALL
108 %snapshot       ALL=(snapshot)  ALL
109 %uddadm         ALL=(udd)       ALL
110 %volatile       ALL=(volatile)  ALL
111 %wbadm          ALL=(wbadm)     ALL
112 %mujeres        ALL=(women)     ALL
113 %wikiadm        ALL=(wiki)      ALL
114 %qa-core        QAHOSTS=(qa)    ALL
115 %gobby          gombert=(gobby) ALL
116
117 # the dak user gets to run stuff as dak-unpriv (for things like lintian checks)
118 dak             ALL=(dak-unpriv)        NOPASSWD: ALL
119
120 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
121 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
122
123 # buildd
124 # FIXME: change that ALL for hosts to a hostlist of buildds?
125 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
126 buildd          ALL=(ALL)               NOPASSWD: ALL
127
128 %planet         senfl=(staticsync)      NOPASSWD: /usr/local/bin/static-update-component planet.debian.org
129
130 # The piuparts slave needs to handle chroots
131 piupartss       piatti=(ALL)            NOPASSWD: ALL
132 # trigger of mirror run for packages
133 pkg_user        powell=(archvsync)      NOPASSWD: /home/archvsync/bin/pushpdo
134 # on draghi, the domains git thing will run bind9 reload afterwards
135 %dnsadm         draghi,orff=(root)              NOPASSWD: /etc/init.d/bind9 reload
136 %dnsadm         draghi,orff=(geodnssync)        NOPASSWD: /usr/bin/make -C /srv/dns.debian.org/geo
137 %adm            draghi=(puppet)                 NOPASSWD: /usr/bin/make -s -C /srv/db.debian.org/var/gitnagios/dsa-nagios/config install
138 # remote power to babylon5 in the same rack:
139 joerg           unger=(ALL)             /usr/bin/sispmctl -t [12], /usr/bin/sispmctl -g [12]
140 # wbadm can update all buildd* users' keys on buildd.d.o
141 %wbadm          grieg=(root)            /usr/local/bin/update-buildd-sshkeys
142 wbadm           grieg=(postgres)        NOPASSWD: /usr/bin/pg_dumpall --cluster 8.4/wanna-build
143 # mirror push
144 dak             FTPHOSTS,SECHOSTS=(archvsync)   NOPASSWD:/home/archvsync/runmirrors
145 planet          senfl=(archvsync)       NOPASSWD: /home/archvsync/bin/runplanet ""
146 # archvsync triggers snapshot
147 archvsync       sibelius,stabile=(snapshot)     NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
148 archvsync       sibelius,stabile=(snapshot)     NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
149 # allow the debbugs-mirror user on rietz to release the afs volume so changes make it to the read-only replicas
150 debbugs-mirror  rietz=(root)            NOPASSWD: /usr/bin/vos release -id srv.mirrors.bugs -localauth
151 # dak stuff
152 %debian-release FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
153 %ftpteam        FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
154 # security
155 %security       SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
156 %sec_public     SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
157 %sec_public     SECHOSTS=(dak)          NOPASSWD: /home/dak/trigger_mirror
158 dak             SECHOSTS=(archvsync)    NOPASSWD: /home/archvsync/signal_security
159 # web stuff
160 debwww          WEBHOSTS=(archvsync)    NOPASSWD: /home/archvsync/webmirrors/runmirrors
161 %press          WEBHOSTS=(debwww)       /org/www.debian.org/update-part News
162 # more list stuff
163 %list           LISTHOSTS=(root)                /usr/sbin/postfix reload
164 %list           LISTHOSTS=(root)                /usr/sbin/qshape, /usr/sbin/postsuper
165 %list           LISTHOSTS=(root)                /etc/init.d/spamassassin, /etc/init.d/amavis
166 %list           LISTHOSTS=(amavis)              NOPASSWD: /usr/bin/sa-learn
167 %list           LISTHOSTS=(amavis)              ALL
168 # geodns may reload bind
169 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /etc/init.d/bind9 reload
170 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/rndc reconfig
171
172 # Porter work
173 %porter-armel   abel,agricola=(root)    /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
174 %porter-armel   harris=(root)           /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
175 %porter-amd64   barriere,pergolesi=(root)       /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
176 %porter-bsd     falla,fischer=(root)    /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
177 %porter-ia64    merulo=(root)           /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
178 %porter-mips    eder,gabrielli=(root)   /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
179 %porter-ppc     partch=(root)           /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
180 %porter-s390    zelenka=(root)          /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot
181 %porter-sparc   smetana,sperger=(root)  /usr/sbin/upgrade-porter-chroots, /usr/bin/apt-in-chroot