diff --git a/config/foreman-answers.yaml b/config/foreman-answers.yaml index da9ffaf6d..9608e0236 100644 --- a/config/foreman-answers.yaml +++ b/config/foreman-answers.yaml @@ -73,8 +73,4 @@ foreman_proxy::plugin::openscap: false foreman_proxy::plugin::remote_execution::ssh: false foreman_proxy::plugin::salt: false foreman_proxy::plugin::shellhooks: false -puppet: - server: true - server_jvm_extra_args: - - "-Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger" - - "-XX:ReservedCodeCacheSize=512m" +puppet: {} diff --git a/config/foreman-hiera.yaml b/config/foreman-hiera.yaml index f96c1e83a..f4fa927d3 100644 --- a/config/foreman-hiera.yaml +++ b/config/foreman-hiera.yaml @@ -15,6 +15,7 @@ hierarchy: - name: "Built in" paths: - "scenario/%{facts.kafo.scenario.id}/family/%{facts.os.family}-%{facts.os.release.major}.yaml" + - "scenario/%{facts.kafo.scenario.id}/defaults.yaml" - "family/%{facts.os.family}-%{facts.os.release.major}.yaml" - "family/%{facts.os.family}.yaml" - "security.yaml" diff --git a/config/foreman-proxy-content-answers.yaml b/config/foreman-proxy-content-answers.yaml index 85141d648..2309869cf 100644 --- a/config/foreman-proxy-content-answers.yaml +++ b/config/foreman-proxy-content-answers.yaml @@ -9,21 +9,9 @@ # # See params.pp in each class for what options are available --- -certs: - generate: false -foreman_proxy_content: - pulpcore_mirror: true -foreman_proxy: - foreman_ssl_ca: /etc/foreman-proxy/foreman_ssl_ca.pem - foreman_ssl_cert: /etc/foreman-proxy/foreman_ssl_cert.pem - foreman_ssl_key: /etc/foreman-proxy/foreman_ssl_key.pem - http: true - manage_puppet_group: false - ssl_ca: /etc/foreman-proxy/ssl_ca.pem - ssl_cert: /etc/foreman-proxy/ssl_cert.pem - ssl_key: /etc/foreman-proxy/ssl_key.pem - ssl_port: '9090' - templates: true +certs: {} +foreman_proxy_content: {} +foreman_proxy: {} foreman_proxy::plugin::acd: false foreman_proxy::plugin::ansible: false foreman_proxy::plugin::dhcp::infoblox: false @@ -33,11 +21,4 @@ foreman_proxy::plugin::dns::infoblox: false foreman_proxy::plugin::openscap: false foreman_proxy::plugin::remote_execution::ssh: false foreman_proxy::plugin::shellhooks: false -puppet: - server: true - server_foreman_ssl_ca: /etc/pki/katello/puppet/puppet_client_ca.crt - server_foreman_ssl_cert: /etc/pki/katello/puppet/puppet_client.crt - server_foreman_ssl_key: /etc/pki/katello/puppet/puppet_client.key - server_jvm_extra_args: - - "-Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger" - - "-XX:ReservedCodeCacheSize=512m" +puppet: {} diff --git a/config/foreman.hiera/common.yaml b/config/foreman.hiera/common.yaml index aaf35cdcb..bb72cfad2 100644 --- a/config/foreman.hiera/common.yaml +++ b/config/foreman.hiera/common.yaml @@ -19,3 +19,8 @@ katello::globals::enable_file: "%{alias('foreman_proxy_content::enable_file')}" katello::globals::enable_docker: "%{alias('foreman_proxy_content::enable_docker')}" katello::globals::enable_deb: "%{alias('foreman_proxy_content::enable_deb')}" katello::globals::enable_ansible_collection: "%{alias('foreman_proxy_content::enable_ansible')}" + +puppet::server: true +puppet::server_jvm_extra_args: + - "-Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger" + - "-XX:ReservedCodeCacheSize=512m" diff --git a/config/foreman.hiera/scenario/foreman-proxy-content/defaults.yaml b/config/foreman.hiera/scenario/foreman-proxy-content/defaults.yaml new file mode 100644 index 000000000..757104c98 --- /dev/null +++ b/config/foreman.hiera/scenario/foreman-proxy-content/defaults.yaml @@ -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 diff --git a/config/foreman.hiera/scenario/katello/defaults.yaml b/config/foreman.hiera/scenario/katello/defaults.yaml new file mode 100644 index 000000000..9710652f9 --- /dev/null +++ b/config/foreman.hiera/scenario/katello/defaults.yaml @@ -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 diff --git a/config/katello-answers.yaml b/config/katello-answers.yaml index ee3fe72c1..6d4224511 100644 --- a/config/katello-answers.yaml +++ b/config/katello-answers.yaml @@ -9,19 +9,8 @@ # # See params.pp in each class for what options are available --- -certs: - group: foreman -foreman: - client_ssl_ca: /etc/foreman/proxy_ca.pem - client_ssl_cert: /etc/foreman/client_cert.pem - client_ssl_key: /etc/foreman/client_key.pem - initial_location: Default Location - initial_organization: Default Organization - server_ssl_ca: /etc/pki/katello/certs/katello-default-ca.crt - server_ssl_cert: /etc/pki/katello/certs/katello-apache.crt - server_ssl_chain: /etc/pki/katello/certs/katello-server-ca.crt - server_ssl_crl: "" - server_ssl_key: /etc/pki/katello/private/katello-apache.key +certs: {} +foreman: {} foreman::cli: true foreman::cli::ansible: false foreman::cli::azure: false @@ -69,15 +58,7 @@ foreman::plugin::tasks: true foreman::plugin::templates: false foreman::plugin::virt_who_configure: false foreman::plugin::webhooks: false -foreman_proxy: - foreman_ssl_ca: /etc/foreman-proxy/foreman_ssl_ca.pem - foreman_ssl_cert: /etc/foreman-proxy/foreman_ssl_cert.pem - foreman_ssl_key: /etc/foreman-proxy/foreman_ssl_key.pem - manage_puppet_group: false - ssl_ca: /etc/foreman-proxy/ssl_ca.pem - ssl_cert: /etc/foreman-proxy/ssl_cert.pem - ssl_key: /etc/foreman-proxy/ssl_key.pem - ssl_port: '9090' +foreman_proxy: {} foreman_proxy::plugin::acd: false foreman_proxy::plugin::ansible: false foreman_proxy::plugin::chef: false @@ -92,11 +73,4 @@ foreman_proxy::plugin::salt: false foreman_proxy::plugin::shellhooks: false foreman_proxy_content: {} katello: {} -puppet: - server: true - server_foreman_ssl_ca: /etc/pki/katello/puppet/puppet_client_ca.crt - server_foreman_ssl_cert: /etc/pki/katello/puppet/puppet_client.crt - server_foreman_ssl_key: /etc/pki/katello/puppet/puppet_client.key - server_jvm_extra_args: - - "-Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger" - - "-XX:ReservedCodeCacheSize=512m" +puppet: {}