]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
fbb - tobias.gutknecht is permit to reload www2 if www2 check is return code 0
authorSteve Rosiak <steve.rosiak@pixelpark.com>
Fri, 5 Feb 2016 13:02:50 +0000 (14:02 +0100)
committerSteve Rosiak <steve.rosiak@pixelpark.com>
Fri, 5 Feb 2016 13:02:50 +0000 (14:02 +0100)
customer/fbb/production.yaml
customer/fbb/test.yaml

index f1bfb4c528ed8ff4a235836f42fb4d1be091d615..e87991dbb1fb8f0d182fec6fd36c0906bd2eeaf6 100644 (file)
@@ -108,4 +108,5 @@ sudo::configs:
     content: |
       Defaults:tobias.gutknecht       logfile=/home/tobias.gutknecht/sudo.log
       Cmnd_Alias MODSECURITY = /usr/bin/tail -F /www/logs/security/audit.log
-      tobias.gutknecht ALL=(ALL)  NOPASSWD:MODSECURITY
+      Cmnd_Alias APACHECHECKNRELOAD = /www/bin/www2 check && /www/bin/www2 reload
+      tobias.gutknecht ALL=(ALL)  NOPASSWD:MODSECURITY, APACHECHECKNRELOAD
index f99e2d728b46f3111f5839672b2d7988859079dd..f198b96a4acb32ded8eea86acc139c5e965e64a2 100644 (file)
@@ -136,4 +136,5 @@ sudo::configs:
     content: |
       Defaults:tobias.gutknecht       logfile=/home/tobias.gutknecht/sudo.log
       Cmnd_Alias MODSECURITY = /usr/bin/tail -F /www/logs/security/audit.log
-      tobias.gutknecht ALL=(ALL)  NOPASSWD:MODSECURITY
+      Cmnd_Alias APACHECHECKNRELOAD = /www/bin/www2 check && /www/bin/www2 reload
+      tobias.gutknecht ALL=(ALL)  NOPASSWD:MODSECURITY, APACHECHECKNRELOAD