added and linked add_timeperiods

This commit is contained in:
Arne Teuke
2017-07-27 15:28:21 +01:00
parent 82aee3bacd
commit e76e4f857c
8 changed files with 190 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
###############################################################################
########## nagios_timeperiods_add.cfg created by Puppet ##########
########## manual changes are overwritten! ##########
###############################################################################
# rules are created below by external puppet rules.

View File

@@ -0,0 +1,18 @@
define timeperiod {
timeperiod_name <%= @ng_timeperiod_name %>
alias <%= @ng_timeperiod_alias %>
monday <%= @ng_timep_monday %>
tuesday <%= @ng_timep_tuesday %>
wednesday <%= @ng_timep_wednesday %>
thursday <%= @ng_timep_thursday %>
friday <%= @ng_timep_friday %>
saturday <%= @ng_timep_saturday %>
sunday <%= @ng_timep_sunday %>
}
<% unless @ng_timep_special_01.empty? -%>
define timeperiod {
timeperiod_name <%= @ng_timeperiod_name %>
@ng_timep_special_01
}
<% end -%>