X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=blobdiff_plain;f=modules%2Fsudo%2Ffiles%2Fsudoers;h=16cb1e1f2884ad3319245583452a6c386f823e79;hp=88fd78f63c7e1373eb41b90b9c0906f4b08cf167;hb=fca9705b8c89828c3d50d437e18ac4e8ae6b41e8;hpb=359963babcd7cce2738e338e4e6a6937448741ed diff --git a/modules/sudo/files/sudoers b/modules/sudo/files/sudoers index 88fd78f6..16cb1e1f 100644 --- a/modules/sudo/files/sudoers +++ b/modules/sudo/files/sudoers @@ -22,18 +22,21 @@ Defaults passprompt="[sudo] password for %u on %h: " Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification +Host_Alias VOIPHOSTS = vogler Host_Alias WEBHOSTS = wolkenstein Host_Alias SECHOSTS = chopin Host_Alias FTPHOSTS = franck Host_Alias ZIVITHOSTS = zelenka, zandonai -Host_Alias AACRAIDHOSTS = paganini, respighi, beethoven, pettersson -Host_Alias MEGARAIDHOSTS = grieg, rautavaara, sibelius -Host_Alias MPTRAIDHOSTS = barber, biber, cilea, vitry, orff +Host_Alias AACRAIDHOSTS = beethoven, pettersson +Host_Alias MEGARAIDHOSTS = rautavaara, sibelius +Host_Alias MPTRAIDHOSTS = barber, biber, vitry Host_Alias MEGACTLHOSTS = nielsen Host_Alias LISTHOSTS = bendel -Host_Alias BUILDD_MASTER = grieg, wuiet -Host_Alias PORTERBOXES = abel, agricola, barriere, eder, falla, fischer, gabrielli, harris, merulo, partch, smetana, zelenka +Host_Alias BUILDD_MASTER = wuiet +Host_Alias PORTERBOXES = abel, barriere, eder, falla, fischer, gabrielli, harris, merulo, partch, 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 # Cmnd alias specification @@ -48,7 +51,9 @@ root ALL=(ALL) ALL %zivit-admins ZIVITHOSTS=(ALL) NOPASSWD: ALL # nagios -nagios ALL=(ALL) NOPASSWD: /etc/init.d/ekeyd-egd-linux restart +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 "" # with smartarray controllers @@ -56,6 +61,8 @@ nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli "" nagios ALL=(ALL) NOPASSWD: /usr/bin/arrayprobe "" nagios franck=(ALL) NOPASSWD: /usr/bin/arrayprobe -f /dev/cciss/c1d0 nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller all show +nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld all show +nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] ld [0-9] show nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd all show nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9]\:[0-9] show nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli controller slot=[0129] pd [0-9][EIC]\:[0-9]\:[0-9] show @@ -75,6 +82,7 @@ nagios beethoven,backuphost=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-c # groups and their role accounts %auditor ALL=(accounting) ALL %backports ALL=(backports) ALL +%blends ALL=(blends) ALL %buildd ALL=(buildd) ALL %codesearch ALL=(codesearch) ALL %d-i ALL=(d-i) ALL @@ -88,7 +96,6 @@ nagios beethoven,backuphost=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-c %debian-i18n ALL=(debian-i18n) ALL %debian-release ALL=(release) ALL %debtags ALL=(debtags) ALL -%debvoip cilea=(freeswitch) ALL %debwww ALL=(debwww) ALL %dedup ALL=(dedup) ALL %btslink ALL=(btslink) ALL @@ -98,31 +105,40 @@ nagios beethoven,backuphost=(debbackup) NOPASSWD: /usr/lib/nagios/plugins/dsa-c %lintian ALL=(lintian) ALL %listweb ALL=(listweb) ALL %list LISTHOSTS=(list) ALL +# archives and stuff +%list master=(debian) ALL %mirroradm ALL=(archvsync) ALL %nm ALL=(nm) ALL %patch-tracker ALL=(patch-tracker) ALL +%pet-devel ALL=(pet-devel) ALL %piuparts ALL=(piupartsm) ALL %piuparts ALL=(piupartss) ALL %pkg_maint ALL=(pkg_user) ALL %planet ALL=(planet) ALL %popcon ALL=(popcon) ALL +%ports ALL=(ports) ALL %search ALL=(search) ALL %secretary ALL=(secretary) ALL %sectracker ALL=(sectracker) ALL %security SECHOSTS=(mail_security) ALL +%security ALL=(security) ALL %snapshot ALL=(snapshot) ALL %uddadm ALL=(udd) ALL %volatile ALL=(volatile) ALL %wbadm ALL=(wbadm) ALL +%wbadm-ports ALL=(wbadm-ports) ALL %mujeres ALL=(women) ALL %wikiadm ALL=(wiki,wikiweb) ALL %qa-core ALL=(qa) ALL %gobby gombert=(gobby) ALL %dacshelper diabelli=(www-data) ALL +%debsso diabelli=(debsso) ALL # the dak user gets to run stuff as dak-unpriv (for things like lintian checks) %ftptrainee FTPHOSTS=(dak-unpriv) NOPASSWD: /usr/bin/lintian dak ALL=(dak-unpriv) NOPASSWD: ALL +# and ftpmaster can access the role user for their web services +%debadmin FTPHOSTS=(dak-web) ALL # some groups are in apachectrl on "their" hosts so they can reload apache and update their vhost %apachectrl ALL=(root) /usr/sbin/apache2-vhost-update @@ -134,21 +150,26 @@ buildd ALL=(ALL) NOPASSWD: ALL %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 -dak franck=(staticsync) NOPASSWD: /usr/local/bin/static-update-component ftp-master.metadata.debian.org +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 %webwml master=(staticsync) NOPASSWD: /usr/local/bin/static-update-component network-test.debian.org -planet philp,senfl=(staticsync) NOPASSWD: /usr/local/bin/static-update-component planet.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 -%Debian dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component blends.debian.org +%blends dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component blends.debian.org %Debian dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component wnpp-by-tags.debian.net +%Debian dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component mozilla.debian.net +%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 # The piuparts slave needs to handle chroots piupartss PIUPARTS_SLAVE_HOSTS=(ALL) NOPASSWD: ALL # trigger of mirror run for packages #pkg_user powell=(archvsync) NOPASSWD: /home/archvsync/bin/pushpdo -# on draghi, the domains git thing will run bind9 reload afterwards -%dnsadm draghi,orff=(root) NOPASSWD: /etc/init.d/bind9 reload -%dnsadm draghi,orff=(geodnssync) NOPASSWD: /usr/bin/make -C /srv/dns.debian.org/geo +dnsadm denis=(root) NOPASSWD: /usr/sbin/service bind9 reload %adm draghi=(puppet) NOPASSWD: /usr/bin/make -s -C /srv/db.debian.org/var/gitnagios/dsa-nagios/config install # wbadm can update all buildd* users' keys on buildd.d.o %wbadm BUILDD_MASTER=(wb-buildd) ALL @@ -157,7 +178,6 @@ piupartss PIUPARTS_SLAVE_HOSTS=(ALL) NOPASSWD: ALL # mirror push dak FTPHOSTS,SECHOSTS=(archvsync) NOPASSWD:/home/archvsync/runmirrors dak franck=(backports) NOPASSWD: /home/backports/bin/update-archive -planet senfl=(archvsync) NOPASSWD: /home/archvsync/bin/runplanet "" # archvsync triggers snapshot archvsync sibelius,stabile=(snapshot) NOPASSWD: /srv/snapshot.debian.org/bin/update-trigger archvsync sibelius,stabile=(snapshot) NOPASSWD: /srv/2ndsnapshot/bin/update-trigger @@ -174,6 +194,7 @@ debwww WEBHOSTS=(archvsync) NOPASSWD: /home/archvsync/webmirrors/runmirrors %press WEBHOSTS=(debwww) /srv/www.debian.org/update-part News # more list stuff %list LISTHOSTS=(root) /usr/sbin/postfix reload +%list stockhausen=(root) /usr/sbin/service jetty restart %list LISTHOSTS=(root) /usr/sbin/qshape, /usr/sbin/postsuper %list LISTHOSTS=(root) /etc/init.d/spamassassin, /etc/init.d/amavis %list LISTHOSTS=(amavis) NOPASSWD: /usr/bin/sa-learn @@ -185,3 +206,12 @@ geodnssync geo1,geo2,geo3=(root) NOPASSWD: /usr/sbin/rndc reconfig nagiosadm tchaikovsky=(root) NOPASSWD: /usr/sbin/service icinga reload %Debian,%guest 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 + +# 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 *