X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=blobdiff_plain;f=modules%2Fsudo%2Ffiles%2Fsudoers;h=f5471713d7a9da225b724e6b8ba9a99767b36b29;hp=9e9ac404bc5930befa614cdd490a6f5ecf11d50a;hb=3f40e467237248b89d0c16ba55edde02d3e168c4;hpb=eb1cda6e92013e21827863328a9f3bec4ae3e3fd diff --git a/modules/sudo/files/sudoers b/modules/sudo/files/sudoers index 9e9ac404..f5471713 100644 --- a/modules/sudo/files/sudoers +++ b/modules/sudo/files/sudoers @@ -24,7 +24,7 @@ Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ # Host alias specification Host_Alias VOIPHOSTS = vogler Host_Alias WEBHOSTS = wolkenstein -Host_Alias SECHOSTS = chopin +Host_Alias SECHOSTS = chopin, seger Host_Alias FTPHOSTS = franck Host_Alias ZIVITHOSTS = zelenka, zandonai Host_Alias AACRAIDHOSTS = beethoven, pettersson @@ -32,7 +32,8 @@ Host_Alias MEGARAIDHOSTS = rautavaara, sibelius Host_Alias MEGACTLHOSTS = nielsen Host_Alias LISTHOSTS = bendel Host_Alias BUILDD_MASTER = wuiet -Host_Alias PORTERBOXES = abel, asachi, barriere, eder, falla, fischer, gabrielli, harris, merulo, partch, smetana, zelenka +Host_Alias BUILDD_PORTS_MASTER = portman +Host_Alias PORTERBOXES = abel, asachi, barriere, eder, etler, falla, fischer, harris, merulo, minkus, partch, plummer, pizzetti, smetana, zelenka Host_Alias PIUPARTS_SLAVE_HOSTS = piu-slave-bm-a Host_Alias MQ_HOSTS = rainier, rapoport Host_Alias NOVAHOSTS = oyens, bm-bl9, bm-bl10, bm-bl11, bm-bl12 @@ -50,11 +51,16 @@ root ALL=(ALL) ALL %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL # nagios +nagios ALL=(ALL) NOPASSWD: /bin/systemctl is-system-running nagios MQ_HOSTS=(rabbitmq) NOPASSWD: /usr/sbin/rabbitmqctl list_queues -p dsa name messages consumers nagios ALL=(ALL) NOPASSWD: /usr/sbin/service ekeyd-egd-linux restart nagios ALL=(ALL) NOPASSWD: /usr/sbin/service samhain restart nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-dabackup "" nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-filesystems "" +nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-libs "" +nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-stunnel-sanity "" +nagios ALL=(ALL) NOPASSWD: /usr/local/sbin/dsa-check-libs "" +nagios handel=(puppet) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-cert-expire /var/lib/puppet/ssl/certs/ca.pem # with smartarray controllers nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli "" nagios ALL=(ALL) NOPASSWD: /usr/bin/arrayprobe "" @@ -75,9 +81,11 @@ nagios AACRAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/arcconf GETCONFIG 1 LD, /usr nagios MEGARAIDHOSTS=(ALL) NOPASSWD: /usr/local/bin/megarc -AllAdpInfo -nolog, /usr/local/bin/megarc -dispCfg -a0 -nolog nagios MEGACTLHOSTS=(ALL) NOPASSWD: /usr/sbin/megactl -Hv # other nagios things +nagios backuphost=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg "" nagios storace=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg "" # groups and their role accounts +%appstream ALL=(appstream) ALL %auditor ALL=(accounting) ALL %backports ALL=(backports) ALL %blends ALL=(blends) ALL @@ -98,11 +106,14 @@ nagios storace=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg %debwww ALL=(debwww) ALL %dedup ALL=(dedup) ALL %dgit ALL=(dgit) ALL +%dgit ALL=(dgit-unpriv) ALL %emdebian ALL=(emdebian) ALL %forums ALL=(forums) ALL +%gitdoadm ALL=(gitdoadm) ALL %httpredir ALL=(httpredir) ALL %httpredir ALL=(httpredir-app) ALL %keyring ALL=(keyring) ALL +%jenkins-adm ALL=(jenkins-adm) ALL %lintian ALL=(lintian) ALL %listweb ALL=(listweb) ALL %list LISTHOSTS=(list) ALL @@ -125,6 +136,7 @@ nagios storace=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg %security ALL=(security) ALL %snapshot ALL=(snapshot) ALL %uddadm ALL=(udd) ALL +%videoteam vittoria=(veyepar) ALL %volatile ALL=(volatile) ALL %wbadm ALL=(wbadm) ALL %wbadm-ports ALL=(wbadm-ports) ALL @@ -134,6 +146,7 @@ nagios storace=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-check-backuppg %gobby gombert=(gobby) ALL %dacshelper diabelli=(www-data) ALL %debsso diabelli=(debsso) ALL +%debsso-web diabelli=(debsso-web) ALL # the dak user gets to run stuff as dak-unpriv (for things like lintian checks) %ftptrainee FTPHOSTS=(dak-unpriv) NOPASSWD: /usr/bin/lintian @@ -152,13 +165,15 @@ httpredir ALL=(httpredir-app) NOPASSWD: ALL Defaults:buildd env_reset,env_keep+="APT_CONFIG DEBIAN_FRONTEND" buildd ALL=(ALL) NOPASSWD: ALL +%appstream mekeel=(staticsync) NOPASSWD: /usr/local/bin/static-update-component appstream.debian.org %backports franck,coccia=(staticsync) NOPASSWD: /usr/local/bin/static-update-component backports.debian.org d-i dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component d-i.debian.org lucas dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debaday.debian.net dsa dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component dsa.debian.org dak franck=(staticsync) NOPASSWD: /usr/local/bin/static-update-component incoming.debian.org dak franck=(staticsync) NOPASSWD: /usr/local/bin/static-update-component metadata.ftp-master.debian.org -%debbits master=(staticsync) NOPASSWD: /usr/local/bin/static-update-component bits.debian.org +%publicity master=(staticsync) NOPASSWD: /usr/local/bin/static-update-component bits.debian.org +%debdelta donizetti=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debdeltas.debian.net %webwml master=(staticsync) NOPASSWD: /usr/local/bin/static-update-component network-test.debian.org planet philp=(staticsync) NOPASSWD: /usr/local/bin/static-update-component planet.debian.org debwww wolkenstein=(staticsync) NOPASSWD: /usr/local/bin/static-update-component www.debian.org @@ -168,7 +183,8 @@ debwww wolkenstein=(staticsync) NOPASSWD: /usr/local/bin/static-update-componen %ports dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component www.ports.debian.org %debvoip dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component rtc.debian.org %security dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component security-team.debian.org -%lintian lilburn=(staticsync) NOPASSWD: /usr/local/bin/static-update-component lintian.debian.org +%publicity dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net +pabs dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component timeline.debian.net %lintian lindsay=(staticsync) NOPASSWD: /usr/local/bin/static-update-component lintian.debian.org # The piuparts slave needs to handle chroots @@ -180,7 +196,9 @@ dnsadm denis=(root) NOPASSWD: /usr/sbin/service bind9 reload # wbadm can update all buildd* users' keys on buildd.d.o %wbadm BUILDD_MASTER=(wb-buildd) ALL %wbadm BUILDD_MASTER=(root) /usr/local/bin/update-buildd-sshkeys -#wbadm BUILDD_MASTER=(postgres) NOPASSWD: /usr/bin/pg_dumpall --cluster 8.4/wanna-build +# wbadm can update all buildd* users' keys on buildd.d.o +%wbadm-ports BUILDD_PORTS_MASTER=(wb-buildd) ALL +%wbadm-ports BUILDD_PORTS_MASTER=(root) /usr/local/bin/update-buildd-sshkeys # mirror push dak FTPHOSTS,SECHOSTS=(archvsync) NOPASSWD:/home/archvsync/runmirrors dak franck=(backports) NOPASSWD: /home/backports/bin/update-archive @@ -197,7 +215,7 @@ archvsync sibelius=(snapshot) NOPASSWD: /srv/2ndsnapshot/bin/update-trigger dak SECHOSTS=(archvsync) NOPASSWD: /home/archvsync/signal_security # web stuff debwww WEBHOSTS=(archvsync) NOPASSWD: /home/archvsync/webmirrors/runmirrors -%press WEBHOSTS=(debwww) /srv/www.debian.org/update-part News +%publicity WEBHOSTS=(debwww) /srv/www.debian.org/update-part News %debvote WEBHOSTS=(debwww) /srv/www.debian.org/update-part vote # more list stuff %list LISTHOSTS=(root) /usr/sbin/postfix reload @@ -212,13 +230,22 @@ geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/rndc reconfig # pushed nagiosadm reload icinga on tchaikovsky nagiosadm tchaikovsky=(root) NOPASSWD: /usr/sbin/service icinga reload -%Debian,%guest PORTERBOXES=(root) NOPASSWD: /usr/local/bin/dd-schroot-cmd +%Debian,%guest,%d-i PORTERBOXES=(root) NOPASSWD: /usr/local/bin/dd-schroot-cmd # voip stuff %debvoip VOIPHOSTS=(root) /usr/sbin/service resiprocate-turn-server restart, /usr/sbin/service repro restart +%debvoip VOIPHOSTS=(root) /usr/sbin/service prosody restart, /usr/sbin/service prosody reload, /usr/sbin/service prosody stop, /usr/sbin/service prosody start # Openstack stuff Defaults:neutron !requiretty nova NOVAHOSTS=(root) NOPASSWD: /usr/bin/nova-rootwrap * neutron NOVAHOSTS=(root) NOPASSWD: /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf * cinder NOVAHOSTS=(root) NOPASSWD: /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf * +%openstack NOVAHOSTS=(keystone) ALL +%openstack NOVAHOSTS=(memcache) ALL +%openstack NOVAHOSTS=(ceilometer) ALL +%openstack NOVAHOSTS=(cinder) ALL +%openstack NOVAHOSTS=(glance) ALL +%openstack NOVAHOSTS=(heat) ALL +%openstack NOVAHOSTS=(neutron) ALL +%openstack NOVAHOSTS=(nova) ALL