Yuvipanda has uploaded a new change for review.

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

Change subject: icinga: Move purge resource script into module
......................................................................

icinga: Move purge resource script into module

Change-Id: I4ac1e2e360781cb747aa3b59c83dcf2d3149f2d0
---
M manifests/misc/icinga.pp
R modules/icinga/files/purge-nagios-resources.py
M modules/icinga/manifests/init.pp
3 files changed, 8 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/76/164676/1

diff --git a/manifests/misc/icinga.pp b/manifests/misc/icinga.pp
index 6fd6b72..82c726f 100644
--- a/manifests/misc/icinga.pp
+++ b/manifests/misc/icinga.pp
@@ -44,14 +44,6 @@
         mode   => '0755',
     }
 
-    # Script to purge resources for non-existent hosts
-    file { '/usr/local/sbin/purge-nagios-resources.py':
-        source => 'puppet:///files/icinga/purge-nagios-resources.py',
-        owner  => 'root',
-        group  => 'root',
-        mode   => '0755',
-    }
-
     file { '/var/log/icinga':
         ensure => directory,
         owner => 'icinga',
diff --git a/files/icinga/purge-nagios-resources.py 
b/modules/icinga/files/purge-nagios-resources.py
similarity index 100%
rename from files/icinga/purge-nagios-resources.py
rename to modules/icinga/files/purge-nagios-resources.py
diff --git a/modules/icinga/manifests/init.pp b/modules/icinga/manifests/init.pp
index 2b8580c..dad3124 100644
--- a/modules/icinga/manifests/init.pp
+++ b/modules/icinga/manifests/init.pp
@@ -133,6 +133,14 @@
         ],
     }
 
+    # Script to purge resources for non-existent hosts
+    file { '/usr/local/sbin/purge-nagios-resources.py':
+        source => 'puppet:///modules/icinga/purge-nagios-resources.py',
+        owner  => 'root',
+        group  => 'root',
+        mode   => '0755',
+    }
+
     # fix permissions on all individual service files
     # FIXME: THis should not be needed *at all*. Should
     # just have everything bet written with 'icinga' as

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ac1e2e360781cb747aa3b59c83dcf2d3149f2d0
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