Puppet Class: foreman::plugin::default_hostgroup

Defined in:
manifests/plugin/default_hostgroup.pp

Summary

This class installs the default_hostgroup plugin and optionally manages the configuration file

Overview

Parameters:

  • hostgroups (Array[Hash[String, Hash]]) (defaults to: [])

    An array of hashes of hostgroup names and facts to add to the configuration



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/plugin/default_hostgroup.pp', line 5

class foreman::plugin::default_hostgroup (
  Array[Hash[String, Hash]] $hostgroups = [],
) {
  if empty($hostgroups) {
    $config = undef
  } else {
    $config = template('foreman/default_hostgroup.yaml.erb')
  }

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