Added a parameter and default value for the volatile parameter; added it to the service object ERB template.

This commit is contained in:
Nick Chappell 2014-07-28 20:57:43 -07:00
parent 273b488c22
commit 40a6e5fb46
2 changed files with 4 additions and 2 deletions

View file

@ -30,8 +30,8 @@ define icinga2::object::service (
$event_command = undef,
#flapping_threshold is defined as a percentage, eg. 10%, 50%, etc.
$flapping_threshold = undef,
$volatile = undef,
#Parameters to add:
# * volatile
# * notes
# * notes_url
# * action_url

View file

@ -11,7 +11,6 @@
*/
// Parameters to add:
// * volatile
// * notes
// * notes_url
// * action_url
@ -77,4 +76,7 @@ object Service "<%= @object_servicename %>" {
<%- if @flapping_threshold -%>
flapping_threshold = "<%= @flapping_threshold -%>"
<%- end -%>
<%- if @volatile -%>
volatile = "<%= @volatile -%>"
<%- end -%>
}