Dzahn has submitted this change and it was merged.

Change subject: rename icinga-downtime script
......................................................................


rename icinga-downtime script

icinga-downtime is the nicer name and as originally requested.
also the usage example didn't match the file name.

Bug:79842
Change-Id: Iab0ce2379ea44423e7ea64b2831917e832af20c1
---
R modules/icinga/files/icinga-downtime
M modules/icinga/manifests/init.pp
2 files changed, 7 insertions(+), 6 deletions(-)

Approvals:
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/modules/icinga/files/schedule-downtime 
b/modules/icinga/files/icinga-downtime
similarity index 83%
rename from modules/icinga/files/schedule-downtime
rename to modules/icinga/files/icinga-downtime
index d7516ab..0140a25 100755
--- a/modules/icinga/files/schedule-downtime
+++ b/modules/icinga/files/icinga-downtime
@@ -1,13 +1,14 @@
 #!/bin/bash
-# schedule a downtime on icinga
-# dzahn 20150513
+# schedule a host downtime in Icinga
+# Daniel Zahn (dzahn) 20150513 - T79842
 #
-#   usage: ./schedule_downtime -h <hostname> -d <duration> -r <reason>
-# example: ./schedule_downtime -h mw1021 -d 7200 -r "something happened"
+#   usage: ./icinga-downtime -h <hostname> -d <duration> -r <reason>
+# example: ./icinga-downtime -h mw1021 -d 7200 -r "something happened"
 #
 # -h <hostname> should be the (short) name of a host as shown in the Icinga UI
 # -d <duration> how long should the downtime last, in seconds (2 hrs = 7200)
 # -r <reason>   a string with the reason for the downtime
+#
 
 commandfile="/var/lib/nagios/rw/nagios.cmd"
 logfile="/var/log/icinga/icinga.log"
diff --git a/modules/icinga/manifests/init.pp b/modules/icinga/manifests/init.pp
index ab9e60e..a227db1 100644
--- a/modules/icinga/manifests/init.pp
+++ b/modules/icinga/manifests/init.pp
@@ -164,9 +164,9 @@
     }
 
     # script to schedule host downtimes
-    file { '/usr/local/bin/schedule-downtime':
+    file { '/usr/local/bin/icinga-downtime':
         ensure => present,
-        source => 'puppet:///modules/icinga/schedule-downtime',
+        source => 'puppet:///modules/icinga/icinga-downtime',
         owner  => 'root',
         group  => 'root',
         mode   => '0550',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iab0ce2379ea44423e7ea64b2831917e832af20c1
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to