Foreman installer: dependency problem on Ubuntu 20.04

Problem:
foreman-installer ist not installable under ubuntu 20.04.
INstallation fails because of unmet dependencies of ruby-kafo

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 foreman-installer : Depends: ruby-kafo (>= 4.0.0) but it is not going to be installed
                     Depends: ruby-kafo (< 5.0.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages

(...)

sudo apt install ruby-kafo
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ruby-kafo : Depends: ruby-highline (< 2.0) but 2.0.3-1 is to be installed
E: Unable to correct problems, you have held broken packages.

Expected outcome:
foreman-install should be installable.

Foreman and Proxy versions:
not installed

Foreman and Proxy plugin versions:
not installed

Distribution and version:
Ubuntu 20.04 (focal)

Other relevant data:

none

Any suggestions?

Tnhank you!

Right now Ubuntu 20.04 is not supported. There are some packages because an effort was started, but the contributor left the project.

The blocker (can’t find the bug right now) was that we need to be compatible with a newer version of highline (2.0 IIRC). That requires a development effort and AFAIK nobody is working on that right now.

That’s a shame, becuase I had no alternative to updating the server I had foreman running on to 20.04.

Thank you for the info!

Hi there, I am having same issue here with Ubuntu 20.04, but trying with foreman 3.5…
Any hint?
Or would you suggest me to use CentOS?

@ogghi it’s generally better to start a new topic after 2 years :wink:

But installing 3.5 on 20.04 works for me. Can you post the exact error message you’re getting and the output of apt policy?

1 Like

Next time I’ll open a new thread! :slight_smile:

This is what is coming up:

TASK [foreman : Get foreman-installer] ***********************************************************************************************************************************************************************task path: /home/administrator/ci_infra/farm_base/roles/foreman/tasks/foreman.yml:45
Wednesday 01 February 2023  15:55:28 +0000 (0:00:01.831)       0:00:19.036 ****
fatal: [vmforeman-test.dev-farm.xyz.net]: FAILED! => {"cache_update_time": 1675266928, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"       install 'foreman-installer'' failed: E: Unable to correct problems, you have held broken packages.\n", "rc": 100, "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stderr_lines": ["E: Unable to correct problems, you have held broken packages."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n foreman-installer : Depends: ruby-kafo (>= 6.0.0) but it is not going to be installed\n                     Depends: ruby-kafo (< 7.0.0) but it is not going to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " foreman-installer : Depends: ruby-kafo (>= 6.0.0) but it is not going to be installed", "                     Depends: ruby-kafo (< 7.0.0) but it is not going to be installed"]}
[WARNING]: Failure using method (v2_runner_on_failed) in callback plugin (<ansible_collections.community.general.plugins.callback.mail.CallbackModule object at 0x7f1b8db1a490>): [Errno 111] Connection
refused

PLAY RECAP ***************************************************************************************************************************************************************************************************vmforeman-test.dev-farm.xyz.net : ok=14   changed=0    unreachable=0    failed=1    skipped=1    rescued=0    ignored=0

This is where it fails for me right now.

Sorry, forgot the apt policy:

apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://apt.puppetlabs.com bionic/puppet7 all Packages
     release o=Puppetlabs,a=bionic,n=bionic,l=Puppetlabs,c=puppet7,b=all
     origin apt.puppetlabs.com
 500 http://apt.puppetlabs.com bionic/puppet7 amd64 Packages
     release o=Puppetlabs,a=bionic,n=bionic,l=Puppetlabs,c=puppet7,b=amd64
     origin apt.puppetlabs.com
 500 http://apt.puppetlabs.com bionic/puppet6 all Packages
     release o=Puppetlabs,a=bionic,n=bionic,l=Puppetlabs,c=puppet6,b=all
     origin apt.puppetlabs.com
 500 http://apt.puppetlabs.com bionic/puppet6 amd64 Packages
     release o=Puppetlabs,a=bionic,n=bionic,l=Puppetlabs,c=puppet6,b=amd64
     origin apt.puppetlabs.com
 500 http://deb.theforeman.org plugins/3.5 amd64 Packages
     release o=TheForeman,a=plugins,n=plugins,l=TheForeman,c=3.5,b=amd64
     origin deb.theforeman.org
 500 http://deb.theforeman.org plugins/2.4 amd64 Packages
     release o=TheForeman,a=plugins,n=plugins,l=TheForeman,c=2.4,b=amd64
     origin deb.theforeman.org
 500 http://deb.theforeman.org bionic/2.4 amd64 Packages
     release o=TheForeman,a=bionic,n=bionic,l=TheForeman,c=2.4,b=amd64
     origin deb.theforeman.org
 500 http://ppa.launchpad.net/ansible/ansible/ubuntu focal/main amd64 Packages
     release v=20.04,o=LP-PPA-ansible-ansible,a=focal,n=focal,l=ansible,c=main,b=amd64
     origin ppa.launchpad.net
 500 http://ch.archive.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=multiverse,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=universe,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal-security/restricted amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=restricted,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-security,n=focal,l=Ubuntu,c=main,b=amd64
     origin ch.archive.ubuntu.com
 100 http://ch.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-backports,n=focal,l=Ubuntu,c=universe,b=amd64
     origin ch.archive.ubuntu.com
 100 http://ch.archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-backports,n=focal,l=Ubuntu,c=main,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=multiverse,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=universe,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=restricted,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     release v=20.04,o=Ubuntu,a=focal-updates,n=focal,l=Ubuntu,c=main,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages
     release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=multiverse,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
     release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=universe,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal/restricted amd64 Packages
     release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=restricted,b=amd64
     origin ch.archive.ubuntu.com
 500 http://ch.archive.ubuntu.com/ubuntu focal/main amd64 Packages
     release v=20.04,o=Ubuntu,a=focal,n=focal,l=Ubuntu,c=main,b=amd64
     origin ch.archive.ubuntu.com
Pinned packages:

Your system is Ubuntu Focal (20.04), but your source point at Foreman 2.4 (not 3.5! only plugins are configured for 3.5) for Bionic (18.04). Same for Puppet, you have Bionic not Focal sources. That can’t work :wink:

1 Like

Hi, this looks better, but still getting a failure:

TASK [foreman : Ensure foreman-installer has run] ********************************************************************************************************************************************
task path: /home/administrator/ci_infra/farm_base/roles/foreman/tasks/foreman.yml:66
Thursday 02 February 2023  08:57:23 +0000 (0:00:00.448)       0:00:30.269 ***** 
fatal: [vmforeman-test.dev-farm.something.xyz]: FAILED! => {"changed": true, "cmd": "foreman-installer", "delta": "0:00:01.181596", "end": "2023-02-02 08:57:25.018217", "msg": "non-zero return code", "rc": 1, "start": "2023-02-02 08:57:23.836621", "stderr": "/usr/lib/ruby/vendor_ruby/kafo/puppet_module.rb:70:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/foreman/manifests/plugin/chef.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:133:in `block in modules'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:133:in `map'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:133:in `modules'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:253:in `modules'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:257:in `module'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/hook_context.rb:113:in `module_present?'\n\tfrom /usr/share/foreman-installer/hooks/boot/20-certs_update.rb:2:in `block (4 levels) in load'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:36:in `instance_eval'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:36:in `block (4 levels) in load'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/hook_context.rb:19:in `instance_eval'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/hook_context.rb:19:in `execute'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:67:in `block in execute'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:65:in `each'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:65:in `execute'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:140:in `initialize'\n\tfrom /usr/lib/ruby/vendor_ruby/clamp/command.rb:132:in `new'\n\tfrom /usr/lib/ruby/vendor_ruby/clamp/command.rb:132:in `run'\n\tfrom /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:50:in `run'\n\tfrom /usr/sbin/foreman-installer:8:in `<main>'", "stderr_lines": ["/usr/lib/ruby/vendor_ruby/kafo/puppet_module.rb:70:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/foreman/manifests/plugin/chef.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:133:in `block in modules'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:133:in `map'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/configuration.rb:133:in `modules'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:253:in `modules'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:257:in `module'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/hook_context.rb:113:in `module_present?'", "\tfrom /usr/share/foreman-installer/hooks/boot/20-certs_update.rb:2:in `block (4 levels) in load'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:36:in `instance_eval'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:36:in `block (4 levels) in load'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/hook_context.rb:19:in `instance_eval'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/hook_context.rb:19:in `execute'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:67:in `block in execute'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:65:in `each'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/hooking.rb:65:in `execute'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:140:in `initialize'", "\tfrom /usr/lib/ruby/vendor_ruby/clamp/command.rb:132:in `new'", "\tfrom /usr/lib/ruby/vendor_ruby/clamp/command.rb:132:in `run'", "\tfrom /usr/lib/ruby/vendor_ruby/kafo/kafo_configure.rb:50:in `run'", "\tfrom /usr/sbin/foreman-installer:8:in `<main>'"], "stdout": "", "stdout_lines": []}
[WARNING]: Failure using method (v2_runner_on_failed) in callback plugin (<ansible_collections.community.general.plugins.callback.mail.CallbackModule object at 0x7fa4907ac4c0>): [Errno 111]
Connection refused

PLAY RECAP ***********************************************************************************************************************************************************************************
vmforeman-test.dev-farm.something.xyz : ok=17   changed=4    unreachable=0    failed=1    skipped=1    rescued=0    ignored=0  

There is no such file in the installer of 3.5 as we dropped that plugin.

  1. which version of the installer package do you have (apt policy foreman-installer)
  2. did you edit the installer answers file by hand by any chance?

Edit: also, it’d be nice to have your output readable, not wrapped in Ansible :wink:

Hi, sure:

foreman-installer:
  Installed: 3.5.1-1+ubuntu2004
  Candidate: 3.5.1-1+ubuntu2004
  Version table:
 *** 3.5.1-1+ubuntu2004 500
        500 http://deb.theforeman.org focal/3.5 amd64 Packages
        100 /var/lib/dpkg/status
     3.5.0-1+ubuntu2004 500
        500 http://deb.theforeman.org focal/3.5 amd64 Packages
     3.5.0~rc2-1+ubuntu2004 500
        500 http://deb.theforeman.org focal/3.5 amd64 Packages
     3.5.0~rc1-1+ubuntu2004 500
        500 http://deb.theforeman.org focal/3.5 amd64 Packages

The installation is done with Ansible on our end, I just got the task to update the current from 2.4 to newer version.
That’s why I might be on the struggle bus I think!

Here is a long output of our /etc/foreman-installer/scenarios.d/foreman-answers.yaml

---
foreman:
  foreman_url: https://vmforeman-test.dev-farm.something.xyz
  unattended: true
  unattended_url: 
  apache: true
  passenger: false
  passenger_ruby: "/usr/bin/foreman-ruby"
  passenger_ruby_package: 
  plugin_prefix: ruby-foreman-
  servername: vmforeman-test.dev-farm.something.xyz
  serveraliases:
  - foreman
  ssl: true
  version: present
  plugin_version: present
  db_manage: true
  db_host: 
  db_port: 
  db_database: 
  db_username: foreman
  db_password: vault | $ANSIBLE_VAULT;1.1;AES256 %redacted%
  db_sslmode: 
  db_root_cert: 
  db_pool: 5
  db_manage_rake: true
  app_root: "/usr/share/foreman"
  manage_user: true
  user: foreman
  group: foreman
  user_groups:
  - puppet
  rails_env: production
  vhost_priority: '05'
  server_port: 80
  server_ssl_port: 443
  server_ssl_ca: "/etc/puppetlabs/puppet/ssl/certs/ca.pem"
  server_ssl_chain: "/etc/puppetlabs/puppet/ssl/certs/ca.pem"
  server_ssl_cert: "/etc/puppetlabs/puppet/ssl/certs/vmforeman-test.dev-farm.something.xyz.pem"
  server_ssl_certs_dir: ''
  server_ssl_key: "/etc/puppetlabs/puppet/ssl/private_keys/vmforeman-test.dev-farm.something.xyz.pem"
  server_ssl_crl: "/etc/puppetlabs/puppet/ssl/crl.pem"
  server_ssl_protocol: 
  server_ssl_verify_client: optional
  client_ssl_ca: "/etc/puppetlabs/puppet/ssl/certs/ca.pem"
  client_ssl_cert: "/etc/puppetlabs/puppet/ssl/certs/vmforeman-test.dev-farm.something.xyz.pem"
  client_ssl_key: "/etc/puppetlabs/puppet/ssl/private_keys/vmforeman-test.dev-farm.something.xyz.pem"
  oauth_active: true
  oauth_map_users: false
  oauth_consumer_key: %redacted%
  oauth_consumer_secret: %redacted%
  passenger_prestart: true
  passenger_min_instances: 1
  passenger_start_timeout: 90
  initial_admin_username: admin
  initial_admin_password: %redacted%
  initial_admin_first_name: 
  initial_admin_last_name: 
  initial_admin_email: 
  initial_admin_locale: 
  initial_admin_timezone: 
  initial_organization: 
  initial_location: 
  ipa_authentication: false
  http_keytab: "/etc/httpd/conf/http.keytab"
  pam_service: foreman
  ipa_manage_sssd: true
  websockets_encrypt: true
  websockets_ssl_key: 
  websockets_ssl_cert: 
  logging_level: info
  logging_type: file
  logging_layout: multiline_request_pattern
  loggers: {}
  email_delivery_method: 
  email_smtp_address: 
  email_smtp_port: 25
  email_smtp_domain: 
  email_smtp_authentication: none
  email_smtp_user_name: 
  email_smtp_password: 
  telemetry_prefix: fm_rails
  telemetry_prometheus_enabled: false
  telemetry_statsd_enabled: false
  telemetry_statsd_host: 127.0.0.1:8125
  telemetry_statsd_protocol: statsd
  telemetry_logger_enabled: false
  telemetry_logger_level: DEBUG
  dynflow_pool_size: 5
  jobs_manage_service: true
  jobs_service_ensure: running
  jobs_service_enable: true
  jobs_sidekiq_redis_url: 
  hsts_enabled: true
  cors_domains: []
  foreman_service_puma_threads_min: 0
  foreman_service_puma_threads_max: 16
  foreman_service_puma_workers: 2
  rails_cache_store:
    type: file
  keycloak: false
  keycloak_app_name: foreman-openidc
  keycloak_realm: ssl-realm
foreman::cli:
  foreman_url: 
  version: installed
  manage_root_config: true
  username: 
  password: 
  use_sessions: false
  refresh_cache: false
  request_timeout: 120
  ssl_ca_file: 
  hammer_plugin_prefix: ruby-hammer-cli-
foreman::cli::ansible: false
foreman::cli::azure: false
foreman::cli::discovery: false
foreman::cli::kubevirt: false
foreman::cli::openscap: false
foreman::cli::remote_execution: false
foreman::cli::tasks: false
foreman::cli::templates: false
foreman_proxy:
  repo: 
  gpgcheck: true
  version: present
  ensure_packages_version: present
  bind_host:
  - "*"
  http_port: 8000
  ssl_port: 8443
  groups: []
  log: "/var/log/foreman-proxy/proxy.log"
  log_level: INFO
  log_buffer: 2000
  log_buffer_errors: 1000
  http: false
  ssl: true
  ssl_ca: "/etc/puppetlabs/puppet/ssl/certs/ca.pem"
  ssl_cert: "/etc/puppetlabs/puppet/ssl/certs/vmforeman-test.dev-farm.something.xyz.pem"
  ssl_key: "/etc/puppetlabs/puppet/ssl/private_keys/vmforeman-test.dev-farm.something.xyz.pem"
  foreman_ssl_ca: 
  foreman_ssl_cert: 
  foreman_ssl_key: 
  trusted_hosts:
  - vmforeman-test.dev-farm.something.xyz
  ssl_disabled_ciphers: []
  tls_disabled_versions: []
  manage_sudoersd: true
  use_sudoersd: true
  use_sudoers: true
  puppetca: true
  puppetca_listen_on: https
  ssldir: "/etc/puppetlabs/puppet/ssl"
  puppetdir: "/etc/puppetlabs/puppet"
  puppetca_cmd: "/opt/puppetlabs/bin/puppet cert"
  puppet_group: puppet
  puppetca_provider: puppetca_hostname_whitelisting
  autosignfile: "/etc/puppetlabs/puppet/autosign.conf"
  puppetca_sign_all: false
  puppetca_tokens_file: "/var/lib/foreman-proxy/tokens.yml"
  puppetca_token_ttl: 360
  puppetca_certificate: 
  manage_puppet_group: true
  puppet: true
  puppet_listen_on: https
  puppet_url: https://vmforeman-test.dev-farm.something.xyz:8140
  puppet_ssl_ca: "/etc/puppetlabs/puppet/ssl/certs/ca.pem"
  puppet_ssl_cert: "/etc/puppetlabs/puppet/ssl/certs/vmforeman-test.dev-farm.something.xyz.pem"
  puppet_ssl_key: "/etc/puppetlabs/puppet/ssl/private_keys/vmforeman-test.dev-farm.something.xyz.pem"
  puppet_api_timeout: 30
  templates: false
  templates_listen_on: both
  template_url: http://vmforeman-test.dev-farm.something.xyz:8000
  registration: true
  registration_listen_on: https
  logs: true
  logs_listen_on: https
  httpboot: false
  httpboot_listen_on: both
  tftp: true
  tftp_listen_on: https
  tftp_managed: true
  tftp_manage_wget: true
  tftp_syslinux_filenames:
  - "/usr/lib/PXELINUX/pxelinux.0"
  - "/usr/lib/syslinux/memdisk"
  - "/usr/lib/syslinux/modules/bios/chain.c32"
  - "/usr/lib/syslinux/modules/bios/ldlinux.c32"
  - "/usr/lib/syslinux/modules/bios/linux.c32"
  - "/usr/lib/syslinux/modules/bios/libcom32.c32"
  - "/usr/lib/syslinux/modules/bios/libutil.c32"
  - "/usr/lib/syslinux/modules/bios/mboot.c32"
  - "/usr/lib/syslinux/modules/bios/menu.c32"
  tftp_root: "/var/lib/tftpboot"
  tftp_dirs:
  - "/var/lib/tftpboot/pxelinux.cfg"
  - "/var/lib/tftpboot/grub"
  - "/var/lib/tftpboot/grub2"
  - "/var/lib/tftpboot/boot"
  - "/var/lib/tftpboot/ztp.cfg"
  - "/var/lib/tftpboot/poap.cfg"
  tftp_servername: 10.1.0.2
  tftp_replace_grub2_cfg: false
  dhcp: true
  dhcp_listen_on: https
  dhcp_managed: true
  dhcp_provider: isc
  dhcp_subnets: []
  dhcp_ping_free_ip: true
  dhcp_option_domain:
  - dev-farm.something.xyz
  dhcp_search_domains:
  - dev-farm.something.xyz
  - something.xyz
  - domain.local
  dhcp_interface: ens33
  dhcp_additional_interfaces: []
  dhcp_gateway: 10.1.0.1
  dhcp_range: 10.1.0.200 10.1.0.250
  dhcp_pxeserver: 
  dhcp_pxefilename: pxelinux.0
  dhcp_network: 
  dhcp_netmask: 
  dhcp_nameservers: 10.1.0.2
  dhcp_server: 127.0.0.1
  dhcp_config: "/etc/dhcp/dhcpd.conf"
  dhcp_leases: "/var/lib/dhcp/dhcpd.leases"
  dhcp_key_name: 
  dhcp_key_secret: 
  dhcp_omapi_port: 7911
  dhcp_peer_address: 
  dhcp_node_type: standalone
  dhcp_failover_address: 10.1.0.2
  dhcp_failover_port: 519
  dhcp_max_response_delay: 30
  dhcp_max_unacked_updates: 10
  dhcp_mclt: 300
  dhcp_load_split: 255
  dhcp_load_balance: 3
  dhcp_manage_acls: true
  dns: true
  dns_listen_on: https
  dns_managed: true
  dns_provider: nsupdate
  dns_interface: ens33
  dns_zone: dev-farm.something.xyz
  dns_reverse:
  - 0.1.10.in-addr.arpa
  dns_server: 127.0.0.1
  dns_ttl: 86400
  dns_tsig_keytab: "/etc/foreman-proxy/dns.keytab"
  dns_tsig_principal: foremanproxy/vmforeman-test.dev-farm.something.xyz@DEV-FARM.something.xyz
  dns_forwarders:
  - 172.16.0.10
  - 172.16.0.4
  libvirt_network: default
  libvirt_connection: qemu:///system
  bmc: false
  bmc_listen_on: https
  bmc_default_provider: ipmitool
  bmc_ssh_user: root
  bmc_ssh_key: "/usr/share/foreman/.ssh/id_rsa"
  bmc_ssh_powerstatus: 'true'
  bmc_ssh_powercycle: shutdown -r +1
  bmc_ssh_poweroff: shutdown +1
  bmc_ssh_poweron: 'false'
  realm: false
  realm_listen_on: https
  realm_provider: freeipa
  realm_keytab: "/etc/foreman-proxy/freeipa.keytab"
  realm_principal: realm-proxy@EXAMPLE.COM
  freeipa_config: "/etc/ipa/default.conf"
  freeipa_remove_dns: true
  keyfile: "/etc/bind/rndc.key"
  register_in_foreman: true
  foreman_base_url: https://vmforeman-test.dev-farm.something.xyz
  registered_name: vmforeman-test.dev-farm.something.xyz
  registered_proxy_url: https://vmforeman-test.dev-farm.something.xyz:8443
  oauth_effective_user: admin
  oauth_consumer_key: %redacted%
  oauth_consumer_secret: %redacted%
puppet:
  version: present
  user: puppet
  group: puppet
  dir: "/etc/puppetlabs/puppet"
  codedir: "/etc/puppetlabs/code"
  vardir: "/opt/puppetlabs/puppet/cache"
  logdir: "/var/log/puppetlabs/puppet"
  rundir: "/var/run/puppetlabs"
  ssldir: "/etc/puppetlabs/puppet/ssl"
  sharedir: "/opt/puppetlabs/puppet"
  manage_packages: true
  dir_owner: root
  dir_group: 
  package_provider: 
  package_source: 
  port: 8140
  pluginsync: true
  splay: false
  splaylimit: 1800
  autosign: "/etc/puppetlabs/puppet/autosign.conf"
  autosign_entries: []
  autosign_mode: '0664'
  autosign_content: 
  autosign_source: 
  runinterval: 1800
  usecacheonfailure: true
  runmode: service
  run_hour: 
  run_minute: 
  unavailable_runmodes: []
  cron_cmd: 
  systemd_cmd: 
  systemd_randomizeddelaysec: 0
  agent_noop: false
  show_diff: false
  module_repository: 
  http_connect_timeout: 
  http_read_timeout: 
  ca_server: 
  ca_port: 
  ca_crl_filepath: 
  prerun_command: 
  postrun_command: 
  dns_alt_names: []
  use_srv_records: false
  srv_domain: dev-farm.something.xyz
  pluginsource: puppet:///plugins
  pluginfactsource: puppet:///pluginfacts
  additional_settings: {}
  agent_additional_settings: {}
  agent_restart_command: "/usr/sbin/service puppet reload"
  classfile: "$statedir/classes.txt"
  hiera_config: "$confdir/hiera.yaml"
  auth_template: puppet/auth.conf.erb
  allow_any_crl_auth: false
  auth_allowed:
  - "$1"
  client_package:
  - puppet-agent
  agent: true
  remove_lock: true
  report: true
  client_certname: vmforeman-test.dev-farm.something.xyz
  puppetmaster: 
  systemd_unit_name: puppet-run
  service_name: puppet
  syslogfacility: 
  environment: production
  server: true
  server_admin_api_whitelist:
  - localhost
  - vmforeman-test.dev-farm.something.xyz
  server_manage_user: true
  server_user: puppet
  server_group: puppet
  server_dir: "/etc/puppetlabs/puppet"
  server_ip: 0.0.0.0
  server_port: 8140
  server_ca: true
  server_ca_crl_sync: false
  server_crl_enable: 
  server_ca_auth_required: true
  server_ca_client_self_delete: false
  server_ca_client_whitelist:
  - localhost
  - vmforeman-test.dev-farm.something.xyz
  server_custom_trusted_oid_mapping: 
  server_http: false
  server_http_port: 8139
  server_reports: foreman
  server_puppetserver_dir: "/etc/puppetlabs/puppetserver"
  server_puppetserver_vardir: "/opt/puppetlabs/server/data/puppetserver"
  server_puppetserver_rundir: "/var/run/puppetlabs/puppetserver"
  server_puppetserver_logdir: "/var/log/puppetlabs/puppetserver"
  server_puppetserver_version: 
  server_external_nodes: "/etc/puppetlabs/puppet/node.rb"
  server_trusted_external_command: 
  server_cipher_suites:
  - TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
  - TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
  - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
  - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
  - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
  server_config_version: 
  server_connect_timeout: 120000
  server_git_repo: false
  server_default_manifest: false
  server_default_manifest_path: "/etc/puppet/manifests/default_manifest.pp"
  server_default_manifest_content: ''
  server_environments_owner: puppet
  server_environments_group: 
  server_environments_mode: '0755'
  server_envs_dir: "/etc/puppetlabs/code/environments"
  server_envs_target: 
  server_common_modules_path:
  - "/etc/puppetlabs/code/environments/common"
  - "/etc/puppetlabs/code/modules"
  - "/opt/puppetlabs/puppet/modules"
  - "/usr/share/puppet/modules"
  server_git_repo_mode: '0755'
  server_git_repo_path: "/opt/puppetlabs/puppet/cache/puppet.git"
  server_git_repo_group: puppet
  server_git_repo_user: puppet
  server_git_branch_map: {}
  server_idle_timeout: 1200000
  server_post_hook_content: puppet/server/post-receive.erb
  server_post_hook_name: post-receive
  server_storeconfigs: false
  server_ruby_load_paths:
  - "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby"
  server_ssl_dir: "/etc/puppetlabs/puppet/ssl"
  server_ssl_dir_manage: true
  server_ssl_key_manage: true
  server_ssl_protocols:
  - TLSv1.2
  server_ssl_chain_filepath: "/etc/puppetlabs/puppet/ssl/ca/ca_crt.pem"
  server_package: 
  server_version: 
  server_certname: vmforeman-test.dev-farm.something.xyz
  server_request_timeout: 60
  server_strict_variables: false
  server_additional_settings: {}
  server_foreman: true
  server_foreman_url: https://vmforeman-test.dev-farm.something.xyz
  server_foreman_ssl_ca: 
  server_foreman_ssl_cert: 
  server_foreman_ssl_key: 
  server_foreman_facts: true
  server_puppet_basedir: "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet"
  server_parser: current
  server_environment_timeout: 
  server_jvm_java_bin: "/usr/bin/java"
  server_jvm_config: "/etc/default/puppetserver"
  server_jvm_min_heap_size: 2G
  server_jvm_max_heap_size: 2G
  server_jvm_extra_args: 
  server_jvm_cli_args: 
  server_jruby_gem_home: "/opt/puppetlabs/server/data/puppetserver/jruby-gems"
  server_max_active_instances: 2
  server_max_requests_per_instance: 0
  server_max_queued_requests: 0
  server_max_retry_delay: 1800
  server_multithreaded: false
  server_use_legacy_auth_conf: false
  server_check_for_updates: true
  server_environment_class_cache_enabled: false
  server_allow_header_cert_info: false
  server_web_idle_timeout: 30000
  server_puppetserver_jruby9k: false
  server_puppetserver_metrics: 
  server_metrics_jmx_enable: true
  server_metrics_graphite_enable: false
  server_metrics_graphite_host: 127.0.0.1
  server_metrics_graphite_port: 2003
  server_metrics_server_id: vmforeman-test.dev-farm.something.xyz
  server_metrics_graphite_interval: 5
  server_metrics_allowed: 
  server_puppetserver_experimental: true
  server_puppetserver_auth_template: 
  server_puppetserver_trusted_agents: []
  server_puppetserver_trusted_certificate_extensions: []
  server_compile_mode: 
  server_acceptor_threads: 
  server_selector_threads: 
  server_ssl_acceptor_threads: 
  server_ssl_selector_threads: 
  server_max_threads: 
  server_ca_allow_sans: false
  server_ca_allow_auth_extensions: false
  server_ca_enable_infra_crl: false
  server_max_open_files: 
  server_versioned_code_id: 
  server_versioned_code_content: 
foreman::plugin::ansible: false
foreman::plugin::azure: false
foreman::plugin::bootdisk: false
foreman::plugin::chef: false
foreman::plugin::column_view: false
foreman::plugin::default_hostgroup: false
foreman::plugin::dhcp_browser: false
foreman::plugin::discovery: {}
foreman::plugin::expire_hosts: false
foreman::plugin::hooks: false
foreman::plugin::host_extra_validator: false
foreman::plugin::kubevirt: false
foreman::plugin::leapp: false
foreman::plugin::memcache: false
foreman::plugin::monitoring: false
foreman::plugin::omaha: false
foreman::plugin::openscap: false
foreman::plugin::ovirt_provision: false
foreman::plugin::puppetdb: false
foreman::plugin::remote_execution: false
foreman::plugin::remote_execution::cockpit: false
foreman::plugin::salt: false
foreman::plugin::setup: false
foreman::plugin::snapshot_management: false
foreman::plugin::statistics: false
foreman::plugin::tasks: false
foreman::plugin::templates: false
foreman::compute::ec2: false
foreman::compute::gce: false
foreman::compute::libvirt: false
foreman::compute::openstack: false
foreman::compute::ovirt: false
foreman::compute::vmware: 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:
  install_images: true
  tftp_root: "/var/lib/tftpboot"
  source_url: https://downloads.theforeman.org/discovery/releases/latest/
  image_name: fdi-image-latest.tar
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::salt: false

this shouldn’t be there.

please, don’t try to manage the answers file with anything but the installer, it’s asking for trouble.

1 Like

Thanks for the help!
So what we have here is an automatic deploy-able thing, that’s why the answers are in a yaml file.
A former DevOPS set it up like that…

So we will start over from scratch and do a clean setup :slight_smile: