Created
August 22, 2012 18:47
-
-
Save reidmv/3428300 to your computer and use it in GitHub Desktop.
feature_request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Feature Request ## | |
The Puppet Enterprise installer when operating in unattended installation mode | |
(answers file) should facilitate the setting of custom facts via the | |
factor-dot-d system. The answers file should accept a variable prefix form | |
which specifies a custom fact to set. For example: | |
Given the answers file: | |
q_fail_on_unsuccessful_master_lookup=n | |
q_install=y | |
q_puppet_cloud_install=n | |
q_puppet_enterpriseconsole_install=n | |
q_puppet_symlinks_install=y | |
q_puppetagent_certname=`hostname -f || hostname` | |
q_puppetagent_install=y | |
q_puppetagent_server=puppet | |
q_puppetca_install=n | |
q_puppetmaster_install=n | |
q_vendor_packages_install=y | |
q_facterdotdfact_deploy_type=manual | |
q_facterdotdfact_deploy_environment=aws | |
The following text should be installed in | |
/etc/puppetlabs/facter/facts.d/puppet_enterprise_installer_custom.txt (or | |
possibly just alongside the rest of the installer facts in | |
/etc/puppetlabs/facter/facts.d/puppet_enterprise_installer.txt): | |
deploy_type=manual | |
deploy_environment=aws | |
### Example Shell Code ### | |
An example implementation might at the appropriate time during the install | |
process do something like: | |
facterdotd_prefix='q_facterdotd_fact_' | |
facterdotd_dest='/etc/puppetlabs/facter/facts.d/puppet_enterprise_installer_custom.txt' | |
set | sed -n "s/^$facterdotd_prefix\(.*\)/\1/p" >> "$facterdotd_dest" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment