removing timeperiod_ from non specifc params
Signed-off-by: Nick Chappell <nick@intronic.org> Merged from: https://github.com/Icinga/puppet-icinga2/pull/37 refs#7217: https://dev.icinga.org/issues/7217
This commit is contained in:
parent
9180f9a17e
commit
e4ec0c03a8
1 changed files with 10 additions and 10 deletions
|
@ -10,26 +10,26 @@
|
|||
#
|
||||
|
||||
define icinga2::object::timeperiod (
|
||||
$object_timeperiod_name = $name,
|
||||
$object_name = $name,
|
||||
$timeperiod_template_to_import = 'legacy-timeperiod',
|
||||
$timeperiod_display_name = undef,
|
||||
$timeperiod_methods = undef,
|
||||
$timeperiod_ranges = {},
|
||||
$methods = undef,
|
||||
$ranges = {},
|
||||
$timeperiod_target_dir = '/etc/icinga2/objects/timeperiods',
|
||||
$timeperiod_target_file_name = "${name}.conf",
|
||||
$target_file_owner = 'root',
|
||||
$target_file_group = 'root',
|
||||
$target_file_mode = '0644',
|
||||
$target_file_owner = 'root',
|
||||
$target_file_group = 'root',
|
||||
$target_file_mode = '0644',
|
||||
) {
|
||||
|
||||
# Do some validation of the class' parameters:
|
||||
validate_string($object_timeperiod_name)
|
||||
validate_string($object_name)
|
||||
validate_string($timeperiod_template_to_import)
|
||||
validate_string($timeperiod_display_name)
|
||||
if $timeperiod_methods {
|
||||
validate_string($timeperiod_methods)
|
||||
if $methods {
|
||||
validate_string($methods)
|
||||
}
|
||||
validate_hash($timeperiod_ranges)
|
||||
validate_hash($ranges)
|
||||
validate_string($timeperiod_target_dir)
|
||||
validate_string($target_file_name)
|
||||
validate_string($target_file_owner)
|
||||
|
|
Loading…
Reference in a new issue