nagios can run arcconf on beethoven
[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 Host_Alias      ZIVITHOSTS      = zelenka, zandonai
27 # User alias specification
28 User_Alias      QACORE          = aba, djpig, geissert, hertzog, jeroen, joerg, lucas, luk, myon, tbm, weasel, zack
29
30 # Cmnd alias specification
31
32 # User privilege specification
33 root    ALL=(ALL) ALL
34
35
36 # DSA and local admins
37 %adm            ALL=(ALL)       ALL
38 %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
39
40 admin           agnesi=(ALL)    ALL
41 %zivit-admins   ZIVITHOSTS=(ALL)        NOPASSWD: ALL
42
43 # nagios
44 nagios          ALL=(ALL)       NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup ""
45 # with smartarray controllers
46 nagios          ALL=(ALL)       NOPASSWD: /sbin/hpasmcli ""
47 nagios          ALL=(ALL)       NOPASSWD: /usr/bin/arrayprobe ""
48 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller all show
49 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[02] pd all show
50 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]\:[0-9] show
51 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=0 pd [0-9]I\:[0-9]\:[0-9] show
52 nagios          ALL=(ALL)       NOPASSWD: /usr/sbin/hpacucli controller slot=[02] show status
53 # other raid controllers
54 nagios          master=(ALL)    NOPASSWD: /usr/sbin/mpt-status -s
55 nagios          powell=(ALL)    NOPASSWD: /usr/local/sbin/areca-cli vsf info
56 nagios          puccini=(ALL)   NOPASSWD: /usr/local/bin/tw_cli info c0 u0 status
57 nagios          bellini,cimarosa,morricone,paganini,respighi,vivaldi,beethoven=(ALL)    NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr/local/bin/arcconf GETCONFIG 1 AD
58
59 # groups and their role accounts
60 %buildd         ALL=(buildd)    ALL
61 %d-i            ALL=(d-i)       ALL
62 %dde            ALL=(dde)       ALL
63 %debadmin       ALL=(dak)       ALL
64 %debbugs        ALL=(debbugs)   ALL
65 %debian-release ALL=(release)   ALL
66 %debwww         ALL=(debwww)    ALL
67 %forums         ALL=(forums)    ALL
68 %keyring        ALL=(keyring)   ALL
69 %lintian        ALL=(lintian)   ALL
70 %listweb        ALL=(listweb)   ALL
71 %list           liszt=(list)    ALL
72 %mirroradm      ALL=(archvsync) ALL
73 %nm             ALL=(nm)        ALL
74 %patch-tracker  ALL=(patch-tracker)     ALL
75 %piuparts       ALL=(piupartsm) ALL
76 %piuparts       ALL=(piupartss) ALL
77 %pkg_maint      ALL=(pkg_user)  ALL
78 %planet         ALL=(planet)    ALL
79 %popcon         ALL=(popcon)    ALL
80 %secretary      ALL=(secretary) ALL
81 %sectracker     ALL=(sectracker)        ALL
82 %security       SECHOSTS=(mail_security)        ALL
83 %snapshot       ALL=(snapshot)  ALL
84 %uddadm         ALL=(udd)       ALL
85 %volatile       ALL=(volatile)  ALL
86 %wbadm          ALL=(wbadm)     ALL
87 %wikiadm        ALL=(wiki)      ALL
88 QACORE          QAHOSTS=(qa)    ALL
89
90 # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost
91 %apachectrl     ALL=(root)      /usr/sbin/apache2-vhost-update
92
93 # buildd
94 # FIXME: change that ALL for hosts to a hostlist of buildds?
95 Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND"
96 buildd          ALL=(ALL)               NOPASSWD: ALL
97
98 # The piuparts slave needs to handle chroots
99 piupartss       piatti=(ALL)            NOPASSWD: ALL
100 # trigger of mirror run for packages
101 pkg_user        powell=(archvsync)      NOPASSWD: /home/archvsync/bin/pushpdo
102 # on draghi, the domains git thing will run bind9 reload afterwards
103 %adm            draghi=(root)           NOPASSWD: /etc/init.d/bind9 reload
104 %adm            draghi=(geodnssync)     NOPASSWD: /usr/bin/make -C /srv/db.debian.org/dns
105 # remote power to babylon5 in the same rack:
106 joerg           unger=(ALL)             /usr/bin/sispmctl -t 1, /usr/bin/sispmctl -g 1
107 # wbadm can update all buildd* users' keys on buildd.d.o
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