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