Puppet Plan: cd4peadm::install_from_config
- Defined in:
- plans/install_from_config.pp
Summary
Install CD4PE based on an existing Hiera configOverview
This plan is designed to be run after the ‘generate_config` plan has created a valid Hiera config with the setting required for install. To install CD4PE without prompts, first run `cd4peadm::generate_config`, then this plan.
Note that these plans are used implicitly by the ‘cd4peadm::install` plan, which prompts the user for input instead of requiring it to be supplied as plan parameters to `generate_config`.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'plans/install_from_config.pp', line 11 plan cd4peadm::install_from_config() { $config = cd4peadm::config() run_plan('cd4peadm::preflight', config => $config, ) run_plan('cd4peadm::install::runtime', config => $config, ) run_plan('cd4peadm::install::upload_images', config => $config, ) run_command('mkdir /etc/puppetlabs', $config['all_targets'], { '_run_as' => 'root', '_catch_errors' => true } ) run_plan('cd4peadm::install::roles', config => $config, ) run_plan('cd4peadm::install::wait_for_services', config => $config, ) run_plan('cd4peadm::install::update_root_credentials', config => $config, ) write_file(cd4peadm::module_version(), cd4peadm::version_file_path(), $config['all_targets'], { '_run_as' => 'root' } ) run_plan('cd4peadm::install::overview', config => $config ) } |