]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/sudo/files/common/sudoers
patch-tracker sudo to patch-tracker
[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,morricone,paganini,respighi,vivaldi=(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 %patch-tracker  ALL=(patch-tracker)     ALL
72 %piuparts       ALL=(piupartsm) ALL
73 %piuparts       ALL=(piupartss) ALL
74 %pkg_maint      ALL=(pkg_user)  ALL
75 %planet         ALL=(planet)    ALL
76 %popcon         ALL=(popcon)    ALL
77 %secretary      ALL=(secretary) ALL
78 %snapshot       ALL=(snapshot)  ALL
79 %uddadm         ALL=(udd)       ALL
80 %volatile       ALL=(volatile)  ALL
81 %wbadm          ALL=(wbadm)     ALL
82 %wikiadm        ALL=(wiki)      ALL
83 QACORE          QAHOSTS=(qa)    ALL
84
85 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
86 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
87
88 # buildd
89 # FIXME: change that ALL for hosts to a hostlist of buildds?
90 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
91 buildd          ALL=(ALL)               NOPASSWD: ALL
92
93 # The piuparts slave needs to handle chroots
94 piupartss       piatti=(ALL)            NOPASSWD: ALL
95 # trigger of mirror run for packages
96 pkg_user        powell=(archvsync)      NOPASSWD: /home/archvsync/bin/pushpdo
97 # on draghi, the domains git thing will run bind9 reload afterwards
98 %adm            draghi=(root)           NOPASSWD: /etc/init.d/bind9 reload
99 %adm            draghi=(geodnssync)     NOPASSWD: /usr/bin/make -C /srv/db.debian.org/dns
100 # remote power to babylon5 in the same rack:
101 joerg           unger=(ALL)             /usr/bin/sispmctl -t 1, /usr/bin/sispmctl -g 1
102 # wbadm can update all buildd* users' keys on buildd.d.o
103 %wbadm          raff=(root)             /usr/local/bin/update-buildd-sshkeys
104 %wbadm          cimarosa=(root)         /usr/local/bin/update-buildd-sshkeys
105 # mirror push
106 dak             ries=(archvsync)        NOPASSWD:/home/archvsync/runmirrors
107 planet          senfl=(archvsync)       NOPASSWD: /home/archvsync/bin/runplanet ""
108 # archvsync triggers snapshot
109 archvsync       stabile=(snapshot)      NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger
110 # dak stuff
111 %debian-release ries=(dak)              /usr/local/bin/dak transitions --import *
112 %ftpteam        ries=(dak)              /usr/local/bin/dak transitions --import *
113 # security
114 %security       klecker=(dak)           NOPASSWD: /usr/local/bin/dak new-security-install -[AR] -- *
115 %sec_public     klecker=(dak)           NOPASSWD: /usr/local/bin/dak new-security-install -[AR] -- *
116 %sec_data       klecker=(archvsync)     NOPASSWD: /home/archvsync/security/signal ""
117 dak             klecker=(archvsync)     NOPASSWD: /home/archvsync/signal_security
118 # web stuff
119 debwww          WEBHOSTS=(archvsync)    NOPASSWD: /home/archvsync/webmirrors/runmirrors
120 # more list stuff
121 %list           liszt=(root)            /usr/sbin/postfix reload
122 %list           liszt=(root)            /usr/sbin/qshape, /usr/sbin/postsuper
123 %list           liszt=(root)            /etc/init.d/spamassassin, /etc/init.d/amavis
124 %list           liszt=(amavis)          NOPASSWD: /usr/bin/sa-learn
125 %list           liszt=(amavis)          ALL
126 # geodns may reload bind
127 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /etc/init.d/bind9 reload
128 geodnssync      geo1,geo2,geo3=(root)   NOPASSWD: /usr/sbin/rndc reconfig