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