From a49f0441fb9aabc73225209533b16eb716e6924b Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 7 Jan 2022 15:58:30 +0100 Subject: [PATCH] Add a foreman-proxy scenario --- Rakefile | 4 ++-- config/foreman-proxy-anwers.yaml | 36 ++++++++++++++++++++++++++++++++ config/foreman-proxy.migrations | 1 + config/foreman-proxy.yaml | 27 ++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 config/foreman-proxy-anwers.yaml create mode 120000 config/foreman-proxy.migrations create mode 100644 config/foreman-proxy.yaml diff --git a/Rakefile b/Rakefile index 29ee641c..52ee0b46 100644 --- a/Rakefile +++ b/Rakefile @@ -84,10 +84,10 @@ MANDIR = ENV['MANDIR'] || "#{DATAROOTDIR}/man" PKGDIR = ENV['PKGDIR'] || File.expand_path('pkg') if BUILD_KATELLO - SCENARIOS = ['foreman', 'foreman-proxy-content', 'katello'].freeze + SCENARIOS = ['foreman', 'foreman-proxy', 'foreman-proxy-content', 'katello'].freeze CERTS_SCENARIOS = ['foreman-proxy-certs'].freeze else - SCENARIOS = ['foreman'].freeze + SCENARIOS = ['foreman', 'foreman-proxy'].freeze CERTS_SCENARIOS = [].freeze end diff --git a/config/foreman-proxy-anwers.yaml b/config/foreman-proxy-anwers.yaml new file mode 100644 index 00000000..66acea26 --- /dev/null +++ b/config/foreman-proxy-anwers.yaml @@ -0,0 +1,36 @@ +# Format: +# : false - don't include this class +# : true - include and use the defaults +# : +# : - include and override the default(s) +# +# Every support plugin/compute class is listed, so that it +# shows up in the interactive menu +# +# See params.pp in each class for what options are available +--- +foreman_proxy: + http: true + registration: true + templates: true +foreman_proxy::plugin::acd: false +foreman_proxy::plugin::ansible: false +foreman_proxy::plugin::chef: false +foreman_proxy::plugin::dhcp::infoblox: false +foreman_proxy::plugin::dhcp::remote_isc: false +foreman_proxy::plugin::discovery: false +foreman_proxy::plugin::dns::infoblox: false +foreman_proxy::plugin::dns::powerdns: false +foreman_proxy::plugin::dynflow: false +foreman_proxy::plugin::monitoring: false +foreman_proxy::plugin::omaha: false +foreman_proxy::plugin::openscap: false +foreman_proxy::plugin::remote_execution::ssh: false +foreman_proxy::plugin::reports: 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" diff --git a/config/foreman-proxy.migrations b/config/foreman-proxy.migrations new file mode 120000 index 00000000..99f813f8 --- /dev/null +++ b/config/foreman-proxy.migrations @@ -0,0 +1 @@ +foreman-proxy-content.migrations \ No newline at end of file diff --git a/config/foreman-proxy.yaml b/config/foreman-proxy.yaml new file mode 100644 index 00000000..6f26a026 --- /dev/null +++ b/config/foreman-proxy.yaml @@ -0,0 +1,27 @@ +--- +:name: Foreman Proxy +:description: Install a stand-alone Foreman Proxy + +:log_dir: './_build/' +:log_name: 'foreman-proxy.log' +:log_level: DEBUG +:verbose: true +:verbose_log_level: notice + +:answer_file: ./config/foreman-proxy-answers.yaml +:installer_dir: . +:module_dirs: ./_build/modules +:parser_cache_path: ./_build/parser_cache/foreman-proxy.yaml +:hiera_config: ./config/foreman-hiera.yaml + +:order: + - foreman_proxy + - puppet +:low_priority_modules: + - foreman_proxy_plugin + +# If using the Debian ruby-kafo package, uncomment this +# :kafo_modules_dir: /usr/lib/ruby/vendor_ruby/kafo/modules + +# Unused, but remains present for older config migrations +:mapping: {}