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