Puppet Class: foreman_installer
- Defined in:
- manifests/init.pp
Overview
This class is called from the foreman install script (or Vagrantfile) and expects a yaml file to exist at either:
optional $answers class parameter
$modulepath/foreman_installer/answers.yaml
/etc/foreman_installer/answers.yaml
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'manifests/init.pp', line 7
class foreman_installer(
$answers = undef
) {
$params=loadanyyaml($answers,
"/etc/foreman-installer/answers.yaml",
"${settings::modulepath}/${module_name}/answers.yaml")
foreman_installer::yaml_to_class { ['foreman', 'foreman_proxy', 'puppet']: }
# Keep a more user-friendly name in the answers file
foreman_installer::yaml_to_class { 'puppetmaster': classname => 'puppet::server' }
}
|