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:
Steven Bambling 2014-11-11 06:19:24 -05:00 committed by Nick Chappell
parent 9180f9a17e
commit e4ec0c03a8

View file

@ -10,26 +10,26 @@
# #
define icinga2::object::timeperiod ( define icinga2::object::timeperiod (
$object_timeperiod_name = $name, $object_name = $name,
$timeperiod_template_to_import = 'legacy-timeperiod', $timeperiod_template_to_import = 'legacy-timeperiod',
$timeperiod_display_name = undef, $timeperiod_display_name = undef,
$timeperiod_methods = undef, $methods = undef,
$timeperiod_ranges = {}, $ranges = {},
$timeperiod_target_dir = '/etc/icinga2/objects/timeperiods', $timeperiod_target_dir = '/etc/icinga2/objects/timeperiods',
$timeperiod_target_file_name = "${name}.conf", $timeperiod_target_file_name = "${name}.conf",
$target_file_owner = 'root', $target_file_owner = 'root',
$target_file_group = 'root', $target_file_group = 'root',
$target_file_mode = '0644', $target_file_mode = '0644',
) { ) {
# Do some validation of the class' parameters: # 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_template_to_import)
validate_string($timeperiod_display_name) validate_string($timeperiod_display_name)
if $timeperiod_methods { if $methods {
validate_string($timeperiod_methods) validate_string($methods)
} }
validate_hash($timeperiod_ranges) validate_hash($ranges)
validate_string($timeperiod_target_dir) validate_string($timeperiod_target_dir)
validate_string($target_file_name) validate_string($target_file_name)
validate_string($target_file_owner) validate_string($target_file_owner)