Yuvipanda has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/165391

Change subject: icinga: Setup perms for command files
......................................................................

icinga: Setup perms for command files

This lets icinga web write to the file, and everyone else
to read from it.

Change-Id: Ice8940afa01c75b5e85733f71e69f152bd36c4fd
---
M modules/icinga/manifests/init.pp
1 file changed, 9 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/91/165391/1

diff --git a/modules/icinga/manifests/init.pp b/modules/icinga/manifests/init.pp
index 0a86d04..48555a0 100644
--- a/modules/icinga/manifests/init.pp
+++ b/modules/icinga/manifests/init.pp
@@ -141,12 +141,18 @@
         mode   => '0755',
     }
 
-    # Misc. icinga files and directories
-    # FIXME: Unsure if this is still needed
+    # Command folders / files to let icinga web to execute commands
     file { '/var/lib/nagios/rw':
         ensure => directory,
         owner  => 'icinga',
         group  => 'nagios',
-        mode   => '0777',
+        mode   => '0775',
+    }
+
+    file { '/var/lib/nagios/rw/nagios.cmd':
+        ensure => present,
+        owner  => 'icinga',
+        group  => 'www-data',
+        mode   => '0664',
     }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/165391
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ice8940afa01c75b5e85733f71e69f152bd36c4fd
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to