OP#436 add timeperiods
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
# external Puppet rules.
|
||||
# @example
|
||||
# confdroid_nagios::nagios::objects::add_timeperiods { 'example_timeperiod':
|
||||
# ng_timep_name => 'example_timeperiod',
|
||||
# ng_timep_alias => 'Example timeperiod',
|
||||
# ng_timep_name => 'example_timeperiod',
|
||||
# ng_timep_alias => 'Example timeperiod',
|
||||
# ng_timep_monday => '00:00-00:00',
|
||||
# ng_timep_tuesday => '00:00-00:00',
|
||||
# ng_timep_wednesday => '00:00-00:00',
|
||||
@@ -29,19 +29,19 @@ define confdroid_nagios::nagios::objects::add_timeperiods (
|
||||
|
||||
Optional[String] $ng_timep_name = undef,
|
||||
Optional[String] $ng_timep_alias = undef,
|
||||
String $ng_timep_monday = '00:00-00:00',
|
||||
String $ng_timep_tuesday = '00:00-00:00',
|
||||
String $ng_timep_wednesday = '00:00-00:00',
|
||||
String $ng_timep_thursday = '00:00-00:00',
|
||||
String $ng_timep_friday = '00:00-00:00',
|
||||
String $ng_timep_saturday = '00:00-00:00',
|
||||
String $ng_timep_sunday = '00:00-00:00',
|
||||
String $ng_timep_monday = '00:00-24:00',
|
||||
String $ng_timep_tuesday = '00:00-24:00',
|
||||
String $ng_timep_wednesday = '00:00-24:00',
|
||||
String $ng_timep_thursday = '00:00-24:00',
|
||||
String $ng_timep_friday = '00:00-24:00',
|
||||
String $ng_timep_saturday = '00:00-24:00',
|
||||
String $ng_timep_sunday = '00:00-24:00',
|
||||
|
||||
) {
|
||||
$ng_nagios_server = $confdroid_nagios::params::ng_nagios_server
|
||||
$ng_tgt_timep_add = $confdroid_nagios::params::ng_tgt_timep_add
|
||||
$ng_tgt_timep_rule_erb = $confdroid_nagios::params::ng_tgt_timep_rule_erb
|
||||
$fqdn = $facts['network']['fqdn']
|
||||
$fqdn = $confdroid_nagios::params::fqdn
|
||||
|
||||
if $ng_nagios_server == $fqdn {
|
||||
concat::fragment { $name:
|
||||
|
||||
Reference in New Issue
Block a user