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