Skip to content

Commit

Permalink
incorporate suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Patel committed Jul 29, 2020
1 parent 9105581 commit 2c87103
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions manifests/plugin/default_hostgroup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
# @param hostgroups An array of hashes of hostgroup names and facts to add to the configuration
#
class foreman::plugin::default_hostgroup (
Array[Hash] $hostgroups = [],
Array[Hash[String, Hash]] $hostgroups = [],
){
if empty($hostgroups) {
$config = undef
$config_file = undef
} else {
$config = template('foreman/default_hostgroup.yaml.erb')
$config_file = "${foreman::plugin_config_dir}/default_hostgroup.yaml"
}

foreman::plugin {'default_hostgroup':
config => $config,
config_file => $config_file,
config_file => "${foreman::plugin_config_dir}/default_hostgroup.yaml"
}
}

0 comments on commit 2c87103

Please sign in to comment.