]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/sudo/files/sudoers
do not run an authority on draghi
[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      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      BUILDD_MASTER   = grieg, wuiet
35 Host_Alias      PORTERBOXES     = abel, agricola, barriere, eder, falla, fischer, gabrielli, harris, merulo, partch, smetana, zelenka
36 Host_Alias      PIUPARTS_SLAVE_HOSTS    = piu-slave-bm-a
37
38 # Cmnd alias specification
39
40 # User privilege specification
41 root    ALL=(ALL) ALL
42
43
44 # DSA and local admins
45 %adm            ALL=(ALL)       ALL
46 %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
48 %zivit-admins   ZIVITHOSTS=(ALL)        NOPASSWD: ALL
49
50 # nagios
51 nagios          ALL=(ALL)       NOPASSWD: /etc/init.d/ekeyd-egd-linux restart
52 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
53 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-filesystems ""
54 # with smartarray controllers
55 nagios          ALL=(ALL)       NOPASSWD: /sbin/hpasmcli ""
56 nagios          ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
57 nagios          franck=(ALL)    NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0
58 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
59 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show
60 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show
61 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show
62 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9][0-9] show
63 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] show status
64 nagios          franck=(ALL)    NOPASSWD: /usr/sbin/hpacucli controller slot=1 enclosure 1E\:1 show detail
65
66 # other raid controllers
67 nagios          powell=(ALL)    NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
68 nagios          MPTRAIDHOSTS=(ALL)      NOPASSWD: /usr/sbin/mpt-status -s
69 nagios          AACRAIDHOSTS=(ALL)      NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
70 nagios          MEGARAIDHOSTS=(ALL)     NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog
71 nagios          MEGACTLHOSTS=(ALL)      NOPASSWD: /usr/sbin/megactl -Hv
72 # other nagios things
73 nagios          beethoven,backuphost=(debbackup)        NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg ""
74
75 # groups and their role accounts
76 %auditor        ALL=(accounting)        ALL
77 %backports      ALL=(backports) ALL
78 %blends         ALL=(blends)    ALL
79 %buildd         ALL=(buildd)    ALL
80 %codesearch     ALL=(codesearch)        ALL
81 %d-i            ALL=(d-i)       ALL
82 %dde            ALL=(dde)       ALL
83 %ddtp           ALL=(ddtp)      ALL
84 %debadmin       ALL=(dak)       ALL
85 %debbugs        ALL=(debbugs)   ALL
86 %debbugs        ALL=(debbugs-mirror)    ALL
87 %debdelta       ALL=(debdelta)  ALL
88 %debian-cd      ALL=(debian-cd) ALL
89 %debian-i18n    ALL=(debian-i18n)       ALL
90 %debian-release ALL=(release)   ALL
91 %debtags        ALL=(debtags)   ALL
92 %debvoip        cilea=(freeswitch)      ALL
93 %debwww         ALL=(debwww)    ALL
94 %dedup          ALL=(dedup)     ALL
95 %btslink        ALL=(btslink)   ALL
96 %emdebian       ALL=(emdebian)  ALL
97 %forums         ALL=(forums)    ALL
98 %keyring        ALL=(keyring)   ALL
99 %lintian        ALL=(lintian)   ALL
100 %listweb        ALL=(listweb)   ALL
101 %list           LISTHOSTS=(list)        ALL
102 # archives and stuff
103 %list           master=(debian) ALL
104 %mirroradm      ALL=(archvsync) ALL
105 %nm             ALL=(nm)        ALL
106 %patch-tracker  ALL=(patch-tracker)     ALL
107 %pet-devel      ALL=(pet-devel) ALL
108 %piuparts       ALL=(piupartsm) ALL
109 %piuparts       ALL=(piupartss) ALL
110 %pkg_maint      ALL=(pkg_user)  ALL
111 %planet         ALL=(planet)    ALL
112 %popcon         ALL=(popcon)    ALL
113 %ports          ALL=(ports)     ALL
114 %search         ALL=(search)    ALL
115 %secretary      ALL=(secretary) ALL
116 %sectracker     ALL=(sectracker)        ALL
117 %security       SECHOSTS=(mail_security)        ALL
118 %snapshot       ALL=(snapshot)  ALL
119 %uddadm         ALL=(udd)       ALL
120 %volatile       ALL=(volatile)  ALL
121 %wbadm          ALL=(wbadm)     ALL
122 %mujeres        ALL=(women)     ALL
123 %wikiadm        ALL=(wiki,wikiweb)      ALL
124 %qa-core        ALL=(qa)        ALL
125 %gobby          gombert=(gobby) ALL
126 %dacshelper     diabelli=(www-data)     ALL
127
128 # the dak user gets to run stuff as dak-unpriv (for things like lintian checks)
129 %ftptrainee     FTPHOSTS=(dak-unpriv)   NOPASSWD: /usr/bin/lintian
130 dak             ALL=(dak-unpriv)        NOPASSWD: ALL
131 # and ftpmaster can access the role user for their web services
132 %debadmin       FTPHOSTS=(dak-web)      ALL
133
134 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
135 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
136
137 # buildd
138 # FIXME: change that ALL for hosts to a hostlist of buildds?
139 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
140 buildd          ALL=(ALL)               NOPASSWD: ALL
141
142 %backports      franck,coccia=(staticsync)      NOPASSWD: /usr/local/bin/static-update-component backports.debian.org
143 d-i             dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component d-i.debian.org
144 dak             franck=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component ftp-master.metadata.debian.org
145 %debbits        master=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component bits.debian.org
146 %webwml         master=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component network-test.debian.org
147 planet          philp,senfl=(staticsync)        NOPASSWD: /usr/local/bin/static-update-component planet.debian.org
148 debwww          wolkenstein=(staticsync)        NOPASSWD: /usr/local/bin/static-update-component www.debian.org
149 %blends         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component blends.debian.org
150 %Debian         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component wnpp-by-tags.debian.net
151 %Debian         dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component mozilla.debian.net
152 %ports          dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component ports.debian.org
153
154 # The piuparts slave needs to handle chroots
155 piupartss       PIUPARTS_SLAVE_HOSTS=(ALL)              NOPASSWD: ALL
156 # trigger of mirror run for packages
157 #pkg_user       powell=(archvsync)      NOPASSWD: /home/archvsync/bin/pushpdo
158 dnsadm          denis=(root)                    NOPASSWD: /usr/sbin/service bind9 reload
159 %dnsadm         orff=(root)             NOPASSWD: /etc/init.d/bind9 reload
160 %dnsadm         orff=(geodnssync)       NOPASSWD: /usr/bin/make -C /srv/dns.debian.org/geo
161 %adm            draghi=(puppet)                 NOPASSWD: /usr/bin/make -s -C /srv/db.debian.org/var/gitnagios/dsa-nagios/config install
162 # wbadm can update all buildd* users' keys on buildd.d.o
163 %wbadm          BUILDD_MASTER=(wb-buildd)       ALL
164 %wbadm          BUILDD_MASTER=(root)            /usr/local/bin/update-buildd-sshkeys
165 #wbadm          BUILDD_MASTER=(postgres)        NOPASSWD: /usr/bin/pg_dumpall --cluster 8.4/wanna-build
166 # mirror push
167 dak             FTPHOSTS,SECHOSTS=(archvsync)   NOPASSWD:/home/archvsync/runmirrors
168 dak             franck=(backports)      NOPASSWD: /home/backports/bin/update-archive
169 planet          senfl=(archvsync)       NOPASSWD: /home/archvsync/bin/runplanet ""
170 # archvsync triggers snapshot
171 archvsync       sibelius,stabile=(snapshot)     NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
172 archvsync       sibelius,stabile=(snapshot)     NOPASSWD: /srv/2ndsnapshot/bin/update-trigger
173 # dak stuff
174 %debian-release FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
175 %ftpteam        FTPHOSTS=(dak)          /usr/local/bin/dak transitions --import *
176 # security
177 %security       SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
178 %sec_public     SECHOSTS=(dak)          NOPASSWD: /usr/local/bin/dak new-security-install -[AR]
179 %sec_public     SECHOSTS=(dak)          NOPASSWD: /home/dak/trigger_mirror
180 dak             SECHOSTS=(archvsync)    NOPASSWD: /home/archvsync/signal_security
181 # web stuff
182 debwww          WEBHOSTS=(archvsync)    NOPASSWD: /home/archvsync/webmirrors/runmirrors
183 %press          WEBHOSTS=(debwww)       /srv/www.debian.org/update-part News
184 # more list stuff
185 %list           LISTHOSTS=(root)                /usr/sbin/postfix reload
186 %list           stockhausen=(root)              /usr/sbin/service jetty restart
187 %list           LISTHOSTS=(root)                /usr/sbin/qshape, /usr/sbin/postsuper
188 %list           LISTHOSTS=(root)                /etc/init.d/spamassassin, /etc/init.d/amavis
189 %list           LISTHOSTS=(amavis)              NOPASSWD: /usr/bin/sa-learn
190 %list           LISTHOSTS=(amavis)              ALL
191 # geodns may reload bind
192 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /etc/init.d/bind9 reload
193 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/rndc reconfig
194 # pushed nagiosadm reload icinga on tchaikovsky
195 nagiosadm       tchaikovsky=(root)              NOPASSWD: /usr/sbin/service icinga reload
196
197 %Debian,%guest  PORTERBOXES=(root)      NOPASSWD: /usr/local/bin/dd-schroot-cmd