-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This moves all non-default options into the Hiera layer. Since Kafo 3.0 this works and is supported. It also means --reset-$option loads the installer default rather than the Puppet default.
- Loading branch information
Showing
34 changed files
with
87 additions
and
105 deletions.
There are no files selected for viewing
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
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
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
2 changes: 1 addition & 1 deletion
2
config/foreman-proxy-content.migrations/180111142132-foreman_proxy_autosignfile.rb
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
2 changes: 1 addition & 1 deletion
2
config/foreman-proxy-content.migrations/180702133937-set-puppet-integration-answer.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
if answers['foreman_proxy_content'].is_a?(Hash) | ||
enabled = answers['puppet'].is_a?(Hash) && answers['puppet']['server'] != false && answers['puppet']['server_foreman'] != false | ||
enabled = answers['puppet'] == true || (answers['puppet'].is_a?(Hash) && answers['puppet']['server'] != false && answers['puppet']['server_foreman'] != false) | ||
answers['foreman_proxy_content']['puppet'] = false unless enabled | ||
end |
5 changes: 0 additions & 5 deletions
5
config/foreman-proxy-content.migrations/180813131441-unmanage-puppet-group.rb
This file was deleted.
Oops, something went wrong.
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
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
2 changes: 0 additions & 2 deletions
2
config/foreman-proxy-content.migrations/210112194603-enable-pulp3-content-proxy.rb
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
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
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
18 changes: 18 additions & 0 deletions
18
config/foreman.hiera/scenario/foreman-proxy-content/defaults.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
certs::generate: false | ||
|
||
foreman_proxy_content::pulpcore_mirror: true | ||
|
||
foreman_proxy::foreman_ssl_ca: /etc/foreman-proxy/foreman_ssl_ca.pem | ||
foreman_proxy::foreman_ssl_cert: /etc/foreman-proxy/foreman_ssl_cert.pem | ||
foreman_proxy::foreman_ssl_key: /etc/foreman-proxy/foreman_ssl_key.pem | ||
foreman_proxy::http: true | ||
foreman_proxy::manage_puppet_group: false | ||
foreman_proxy::ssl_ca: /etc/foreman-proxy/ssl_ca.pem | ||
foreman_proxy::ssl_cert: /etc/foreman-proxy/ssl_cert.pem | ||
foreman_proxy::ssl_key: /etc/foreman-proxy/ssl_key.pem | ||
foreman_proxy::ssl_port: 9090 | ||
foreman_proxy::templates: true | ||
|
||
puppet::server_foreman_ssl_ca: /etc/pki/katello/puppet/puppet_client_ca.crt | ||
puppet::server_foreman_ssl_cert: /etc/pki/katello/puppet/puppet_client.crt | ||
puppet::server_foreman_ssl_key: /etc/pki/katello/puppet/puppet_client.key |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
certs::group: foreman | ||
|
||
foreman::client_ssl_ca: /etc/foreman/proxy_ca.pem | ||
foreman::client_ssl_cert: /etc/foreman/client_cert.pem | ||
foreman::client_ssl_key: /etc/foreman/client_key.pem | ||
foreman::initial_location: Default Location | ||
foreman::initial_organization: Default Organization | ||
foreman::server_ssl_ca: /etc/pki/katello/certs/katello-default-ca.crt | ||
foreman::server_ssl_cert: /etc/pki/katello/certs/katello-apache.crt | ||
foreman::server_ssl_chain: /etc/pki/katello/certs/katello-server-ca.crt | ||
foreman::server_ssl_crl: "" | ||
foreman::server_ssl_key: /etc/pki/katello/private/katello-apache.key | ||
|
||
foreman_proxy::foreman_ssl_ca: /etc/foreman-proxy/foreman_ssl_ca.pem | ||
foreman_proxy::foreman_ssl_cert: /etc/foreman-proxy/foreman_ssl_cert.pem | ||
foreman_proxy::foreman_ssl_key: /etc/foreman-proxy/foreman_ssl_key.pem | ||
foreman_proxy::manage_puppet_group: false | ||
foreman_proxy::ssl_ca: /etc/foreman-proxy/ssl_ca.pem | ||
foreman_proxy::ssl_cert: /etc/foreman-proxy/ssl_cert.pem | ||
foreman_proxy::ssl_key: /etc/foreman-proxy/ssl_key.pem | ||
foreman_proxy::ssl_port: 9090 | ||
|
||
puppet::server_foreman_ssl_ca: /etc/pki/katello/puppet/puppet_client_ca.crt | ||
puppet::server_foreman_ssl_cert: /etc/pki/katello/puppet/puppet_client.crt | ||
puppet::server_foreman_ssl_key: /etc/pki/katello/puppet/puppet_client.key |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Redetermine the value of passenger_ruby, as it changed on Debian in puppet-foreman f9329b6 | ||
answers['foreman'].delete('passenger_ruby') if answers['foreman'] | ||
answers['foreman'].delete('passenger_ruby') if answers['foreman'].is_a?(Hash) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Redetermine the value of autosign, as it changed from string/boolean to path/boolean | ||
# in puppet-puppet a2325f1 and was deleted from puppet-foreman_proxy 9f3c9aa | ||
if answers['puppet'] | ||
if answers['puppet'].is_a?(Hash) | ||
current_autosign = answers['puppet']['autosign'] | ||
answers['puppet'].delete('autosign') unless !!current_autosign == current_autosign # rubocop:disable Style/DoubleNegation | ||
end | ||
answers['foreman_proxy'].delete('autosign_location') if answers['foreman_proxy'] | ||
answers['foreman_proxy'].delete('autosign_location') if answers['foreman_proxy'].is_a?(Hash) |
6 changes: 4 additions & 2 deletions
6
config/foreman.migrations/20160518125928_foreman_proxy_puppetrun_rename.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Rename foreman_proxy puppetrun parameters to puppet | ||
# https://github.com/theforeman/puppet-foreman_proxy/commit/c26cac15 | ||
answers['foreman_proxy']['puppet'] = answers['foreman_proxy'].delete('puppetrun') if answers['foreman_proxy'] && answers['foreman_proxy'].has_key?('puppetrun') | ||
answers['foreman_proxy']['puppet_listen_on'] = answers['foreman_proxy'].delete('puppetrun_listen_on') if answers['foreman_proxy'] && answers['foreman_proxy'].has_key?('puppetrun_listen_on') | ||
if answers['foreman_proxy'].is_a?(Hash) | ||
answers['foreman_proxy']['puppet'] = answers['foreman_proxy'].delete('puppetrun') if answers['foreman_proxy'].has_key?('puppetrun') | ||
answers['foreman_proxy']['puppet_listen_on'] = answers['foreman_proxy'].delete('puppetrun_listen_on') if answers['foreman_proxy'].has_key?('puppetrun_listen_on') | ||
end |
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20160607133050_foreman_proxy_puppetssh_rename.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Rename foreman_proxy provider "puppetssh" to "ssh" | ||
# http://projects.theforeman.org/issues/15323 | ||
answers['foreman_proxy']['puppetrun_provider'] = 'ssh' if answers['foreman_proxy'] && answers['foreman_proxy']['puppetrun_provider'] == 'puppetssh' | ||
answers['foreman_proxy']['puppetrun_provider'] = 'ssh' if answers['foreman_proxy'].is_a?(Hash) && answers['foreman_proxy']['puppetrun_provider'] == 'puppetssh' |
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20160722161820_environment_to_rails_env.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# rename foreman environment parameter to rails_env | ||
# https://github.com/theforeman/puppet-foreman_proxy/commit/d239f0b | ||
answers['foreman']['rails_env'] = answers['foreman'].delete('environment') if answers['foreman'] && answers['foreman'].has_key?('environment') | ||
answers['foreman']['rails_env'] = answers['foreman'].delete('environment') if answers['foreman'].is_a?(Hash) && answers['foreman'].has_key?('environment') |
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20160831180000_foreman_proxy_tftp_grub2.rb
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
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20160906121542_puppetserver_whitelist.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Redetermine the value of API whitelists, as it changed | ||
# in puppet-puppet f9b4e87cd855d7d5d0bbf3a1831b5daf22cdb413 | ||
if answers['puppet'] | ||
if answers['puppet'].is_a?(Hash) | ||
answers['puppet'].delete('server_admin_api_whitelist') | ||
answers['puppet'].delete('server_ca_client_whitelist') | ||
end |
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20161125153500_foreman_email_config_method.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
answers['foreman']['email_config_method'] = 'database' if answers['foreman'] | ||
answers['foreman']['email_config_method'] = 'database' if answers['foreman'].is_a?(Hash) |
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20170118105627_foreman_proxy_dhcp_range_false.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# false is no longer a valid value, the param should be undef/nil to be disabled | ||
answers['foreman_proxy']['dhcp_range'] = nil if answers['foreman_proxy'] && answers['foreman_proxy']['dhcp_range'] == false | ||
answers['foreman_proxy']['dhcp_range'] = nil if answers['foreman_proxy'].is_a?(Hash) && answers['foreman_proxy']['dhcp_range'] == false |
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20170213123300_foreman_proxy_realm_split_configs.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
answers['foreman_proxy']['realm_split_config_files'] = true if answers['foreman_proxy'] | ||
answers['foreman_proxy']['realm_split_config_files'] = true if answers['foreman_proxy'].is_a?(Hash) |
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20170405155121_foreman_proxy_bind_host_array.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
if answers['foreman_proxy'] && answers['foreman_proxy']['bind_host'].is_a?(String) | ||
if answers['foreman_proxy'].is_a?(Hash) && answers['foreman_proxy']['bind_host'].is_a?(String) | ||
answers['foreman_proxy']['bind_host'] = [answers['foreman_proxy']['bind_host']] | ||
end |
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20170530141108_foreman_proxy_autosignfile.rb
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
2 changes: 1 addition & 1 deletion
2
config/foreman.migrations/20170708010605_puppet_profiler_metrics.rb
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
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
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
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
2 changes: 1 addition & 1 deletion
2
config/katello.migrations/180111142132-foreman_proxy_autosignfile.rb
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
5 changes: 0 additions & 5 deletions
5
config/katello.migrations/180813131441-unmanage-puppet-group.rb
This file was deleted.
Oops, something went wrong.
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
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
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