# cat /etc/os-release NAME="ALT Server" VERSION="10.2" ID=altlinux VERSION_ID=10.2 PRETTY_NAME="ALT Server 10.2 (Mendelevium)" ANSI_COLOR="1;33" CPE_NAME="cpe:/o:alt:server:10.2" BUILD_ID="ALT Server 10.1" HOME_URL="https://basealt.ru/" BUG_REPORT_URL="https://bugs.altlinux.org/" # hostnamectl set-hostname foreman-test && echo "$(hostname -i) foreman-test" >>/etc/hosts && reboot # apt-get install postgresql15-server puppet puppetserver foreman puppet-theforeman-foreman puppet-puppetserver-foreman -y && apt-get dist-upgrade -y # rpm -q foreman puppet-puppetserver-foreman puppet-theforeman-foreman puppetserver puppet foreman-3.5.1-alt1.2.1.noarch пакет puppet-puppetserver-foreman не установлен puppet-theforeman-foreman-22.1.2-alt1.noarch puppetserver-6.20.0-alt0.1.noarch puppet-7.20.0-alt1.noarch # /etc/init.d/postgresql initdb && systemctl enable --now postgresql # cat >> /etc/puppet/puppet.conf < ноя 02 16:17:06 foreman-test systemd[1]: Starting LSB: puppetserver... ноя 02 16:17:18 foreman-test puppetserver[6186]: Starting puppetserver Puppet Labs version-checking backend: puppetserver ноя 02 16:17:18 foreman-test puppetserver[6321]: . [ DONE ] ноя 02 16:17:18 foreman-test systemd[1]: Started LSB: puppetserver. # systemctl enable --now puppet && systemctl status puppet ● puppet.service - Puppet agent Loaded: loaded (/lib/systemd/system/puppet.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2023-11-02 16:22:14 MSK; 48s ago Main PID: 6376 (puppet) Tasks: 1 (limit: 11916) Memory: 84.6M CPU: 2.506s CGroup: /system.slice/puppet.service └─ 6376 /usr/bin/ruby /usr/bin/puppet agent --no-daemonize ноя 02 16:22:14 foreman-test systemd[1]: Started Puppet agent. ноя 02 16:22:16 foreman-test puppet-agent[6376]: Starting Puppet client version 7.20.0 # puppet agent -t; puppetserver ca sign --all Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml Info: Creating a new SSL certificate request for foreman-test.ipa.basealt.ru Info: Certificate Request fingerprint (SHA256): FA:2E:94:40:81:65:66:05:C3:7D:EE:04:83:74:54:C6:77:0C:D7:65:37:D1:FE:81:E2:C5:A6:2F:2D:8A:3A:2B Info: Certificate for foreman-test.ipa.basealt.ru has not been signed yet Couldn't fetch certificate from CA server; you might still need to sign this agent's certificate (foreman-test.ipa.basealt.ru). Exiting now because the waitforcert setting is set to 0. The cadir is currently configured to be inside the /etc/puppet/ssl directory. This config setting and the directory location will not be used in a future version of puppet. Please run the puppetserver ca tool to migrate out from the puppet confdir to the /etc/puppetserver/ca directory. Use `puppetserver ca migrate --help` for more info. Successfully signed certificate request for foreman-test.ipa.basealt.ru # railsctl setup foreman Work dir is '/var/lib/foreman' Processing rails application 'foreman' setup... Applying variables from '/etc/sysconfig/foreman' Renewing dependencies... Initializing secret... Initializing encryption key... Initializing database... Checking migration and seeds... Generating API cache... Cleaning... Login credentials: admin / KsPdxJCGt5vrKJHN # cat > /etc/foreman/settings.yml < /etc/puppet/foreman.yaml <:2345 и авторизоваться пользователем admin с паролем из `grep -r "Login credentials" /var/log/foreman/` # apt-get install smart-proxy -y # rpm -q smart-proxy smart-proxy-3.5.1-alt3.noarch # cat > /etc/smart-proxy/config/settings.d/puppetca_http_api.yml < /etc/smart-proxy/config/settings.d/puppet_proxy_puppet_api.yml < /etc/smart-proxy/config/settings.d/puppetca.yml < /etc/smart-proxy/config/settings.d/puppet.yml </etc/smart-proxy/config/settings.d/puppetca_hostname_whitelisting.yml && echo ":enabled: true" >/etc/smart-proxy/config/settings.d/facts.yml && touch /etc/puppet/autosign.conf && chmod 664 /etc/puppet/autosign.conf && systemctl enable --now smart-proxy && sleep 5; systemctl status smart-proxy ● smart-proxy.service - Foreman Smart Proxy Loaded: loaded (/lib/systemd/system/smart-proxy.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2023-11-02 16:44:38 MSK; 5s ago Docs: https://projects.theforeman.org/projects/smart-proxy/wiki Main PID: 7358 (railsctl) Tasks: 3 (limit: 11916) Memory: 69.1M CPU: 1.262s CGroup: /system.slice/smart-proxy.service ├─ 7358 /bin/bash /usr/sbin/railsctl run smart-proxy bundle exec /usr/bin/smart-proxy └─ 7388 /usr/bin/smart-proxy "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ноя 02 16:44:38 foreman-test systemd[1]: Starting Foreman Smart Proxy... ноя 02 16:44:38 foreman-test systemd[1]: Started Foreman Smart Proxy. ноя 02 16:44:38 foreman-test smart-proxy.service[7358]: Running command 'bundle exec /usr/bin/smart-proxy' in work dir '/var/lib/smart-proxy'... В web интерфейсе foreman открыть Инфраструктура -> Капсулы -> Создать Смарт Прокси ввести имя и адрес прокси: http://foreman-test:8000 Сохранить # systemctl restart foreman && sleep 15; systemctl status foreman ● foreman.service - Foreman Loaded: loaded (/lib/systemd/system/foreman.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2023-11-02 16:46:02 MSK; 15s ago Docs: https://theforeman.org Main PID: 7403 (ruby) Tasks: 69 (limit: 11916) Memory: 536.3M CPU: 14.450s CGroup: /system.slice/foreman.service ├─ 7403 "puma 5.6.5 (tcp://127.0.0.1:2346) [foreman]" "" "" ├─ 7444 "puma: cluster worker 0: 7403 [foreman]" "" "" "" "" "" "" "" ├─ 7446 "puma: cluster worker 1: 7403 [foreman]" "" "" "" "" "" "" "" ├─ 7449 "puma: cluster worker 2: 7403 [foreman]" "" "" "" "" "" "" "" └─ 7452 "puma: cluster worker 3: 7403 [foreman]" "" "" "" "" "" "" "" ноя 02 16:46:01 foreman-test foreman[7403]: [7403] * Restarts: (✔) hot (✖) phased ноя 02 16:46:01 foreman-test foreman[7403]: [7403] * Preloading application ноя 02 16:46:01 foreman-test foreman[7403]: [7403] * Listening on http://127.0.0.1:2346 ноя 02 16:46:01 foreman-test foreman[7403]: [7403] Use Ctrl-C to stop ноя 02 16:46:01 foreman-test foreman[7403]: [7403] * Starting control server on unix:///usr/lib/foreman/tmp/sockets/pumactl.sock ноя 02 16:46:02 foreman-test foreman[7403]: [7403] - Worker 0 (PID: 7444) booted in 0.1s, phase: 0 ноя 02 16:46:02 foreman-test foreman[7403]: [7403] - Worker 2 (PID: 7449) booted in 0.1s, phase: 0 ноя 02 16:46:02 foreman-test foreman[7403]: [7403] - Worker 1 (PID: 7446) booted in 0.1s, phase: 0 ноя 02 16:46:02 foreman-test foreman[7403]: [7403] - Worker 3 (PID: 7452) booted in 0.12s, phase: 0 ноя 02 16:46:02 foreman-test systemd[1]: Started Foreman. # puppet agent -t Info: Using environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node foreman-test.ipa.basealt.ru: Failed to find foreman-test.ipa.basealt.ru via exec: Execution of '/usr/lib/puppet-modules/theforeman-puppetserver-foreman/files/enc.rb foreman-test.ipa.basealt.ru' returned 1: Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run # puppet agent -t -d Debug: Applying settings catalog for sections main, agent, ssl Debug: Could not find library 'selinux' required to enable feature 'selinux' Debug: Using settings: adding file resource 'confdir': 'File[/etc/puppet]{:path=>"/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'codedir': 'File[/etc/puppet/code]{:path=>"/etc/puppet/code", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Facter: Resolving facts sequentially Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: Could not find library 'shadow' required to enable feature 'libshadow' Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: Puppet::Type::User::ProviderLdap: true value when expecting false Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: Puppet::Type::User::ProviderPw: file pw does not exist Debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not exist Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: /User[puppet]: Provider useradd does not support features manages_local_users_and_groups; not managing attribute forcelocal Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: Puppet::Type::Group::ProviderDirectoryservice: file /usr/bin/dscl does not exist Debug: Puppet::Type::Group::ProviderLdap: true value when expecting false Debug: Puppet::Type::Group::ProviderPw: file pw does not exist Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: /Group[puppet]: Provider groupadd does not support features manages_local_users_and_groups; not managing attribute forcelocal Debug: Using settings: adding file resource 'vardir': 'File[/var/cache/puppet]{:path=>"/var/cache/puppet", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'logdir': 'File[/var/log/puppet]{:path=>"/var/log/puppet", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'statedir': 'File[/var/cache/puppet/state]{:path=>"/var/cache/puppet/state", :mode=>"1755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'rundir': 'File[/var/run/puppet]{:path=>"/var/run/puppet", :mode=>"755", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'libdir': 'File[/var/cache/puppet/lib]{:path=>"/var/cache/puppet/lib", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'preview_outputdir': 'File[/var/cache/puppet/preview]{:path=>"/var/cache/puppet/preview", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'certdir': 'File[/etc/puppet/ssl/certs]{:path=>"/etc/puppet/ssl/certs", :mode=>"755", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'ssldir': 'File[/etc/puppet/ssl]{:path=>"/etc/puppet/ssl", :mode=>"771", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'publickeydir': 'File[/etc/puppet/ssl/public_keys]{:path=>"/etc/puppet/ssl/public_keys", :mode=>"755", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'requestdir': 'File[/etc/puppet/ssl/certificate_requests]{:path=>"/etc/puppet/ssl/certificate_requests", :mode=>"755", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'privatekeydir': 'File[/etc/puppet/ssl/private_keys]{:path=>"/etc/puppet/ssl/private_keys", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'privatedir': 'File[/etc/puppet/ssl/private]{:path=>"/etc/puppet/ssl/private", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'hostcert': 'File[/etc/puppet/ssl/certs/foreman-test.ipa.basealt.ru.pem]{:path=>"/etc/puppet/ssl/certs/foreman-test.ipa.basealt.ru.pem", :mode=>"644", :owner=>"puppet", :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'hostprivkey': 'File[/etc/puppet/ssl/private_keys/foreman-test.ipa.basealt.ru.pem]{:path=>"/etc/puppet/ssl/private_keys/foreman-test.ipa.basealt.ru.pem", :mode=>"640", :owner=>"puppet", :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'localcacert': 'File[/etc/puppet/ssl/certs/ca.pem]{:path=>"/etc/puppet/ssl/certs/ca.pem", :mode=>"644", :owner=>"puppet", :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'hostcrl': 'File[/etc/puppet/ssl/crl.pem]{:path=>"/etc/puppet/ssl/crl.pem", :mode=>"644", :owner=>"puppet", :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'clientyamldir': 'File[/var/cache/puppet/client_yaml]{:path=>"/var/cache/puppet/client_yaml", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'client_datadir': 'File[/var/cache/puppet/client_data]{:path=>"/var/cache/puppet/client_data", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'deviceconfdir': 'File[/etc/puppet/devices]{:path=>"/etc/puppet/devices", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'clientbucketdir': 'File[/var/cache/puppet/clientbucket]{:path=>"/var/cache/puppet/clientbucket", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'publicdir': 'File[/usr/share/puppet/public]{:path=>"/usr/share/puppet/public", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'lastrunfile': 'File[/usr/share/puppet/public/last_run_summary.yaml]{:path=>"/usr/share/puppet/public/last_run_summary.yaml", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'lastrunreport': 'File[/var/cache/puppet/state/last_run_report.yaml]{:path=>"/var/cache/puppet/state/last_run_report.yaml", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'graphdir': 'File[/var/cache/puppet/state/graphs]{:path=>"/var/cache/puppet/state/graphs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'pluginfactdest': 'File[/var/cache/puppet/facts.d]{:path=>"/var/cache/puppet/facts.d", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'localedest': 'File[/var/cache/puppet/locales]{:path=>"/var/cache/puppet/locales", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Facter: resolving fact with user_query: operatingsystem Debug: Facter: Searching fact: operatingsystem in file: operatingsystem.rb Debug: Facter: Searching fact: operatingsystem in core facts and external facts Debug: Facter: Loading all internal facts Debug: Facter: List of resolvable facts: [#] Debug: Facter: Loading external facts Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: /File[/etc/puppet/code]: Adding autorequire relationship with File[/etc/puppet] Debug: /File[/var/cache/puppet/state]: Adding autorequire relationship with File[/var/cache/puppet] Debug: /File[/var/cache/puppet/lib]: Adding autorequire relationship with File[/var/cache/puppet] Debug: /File[/var/cache/puppet/preview]: Adding autorequire relationship with File[/var/cache/puppet] Debug: /File[/etc/puppet/ssl/certs]: Adding autorequire relationship with File[/etc/puppet/ssl] Debug: /File[/etc/puppet/ssl]: Adding autorequire relationship with File[/etc/puppet] Debug: /File[/etc/puppet/ssl/public_keys]: Adding autorequire relationship with File[/etc/puppet/ssl] Debug: /File[/etc/puppet/ssl/certificate_requests]: Adding autorequire relationship with File[/etc/puppet/ssl] Debug: /File[/etc/puppet/ssl/private_keys]: Adding autorequire relationship with File[/etc/puppet/ssl] Debug: /File[/etc/puppet/ssl/private]: Adding autorequire relationship with File[/etc/puppet/ssl] Debug: /File[/etc/puppet/ssl/certs/foreman-test.ipa.basealt.ru.pem]: Adding autorequire relationship with File[/etc/puppet/ssl/certs] Debug: /File[/etc/puppet/ssl/private_keys/foreman-test.ipa.basealt.ru.pem]: Adding autorequire relationship with File[/etc/puppet/ssl/private_keys] Debug: /File[/etc/puppet/ssl/certs/ca.pem]: Adding autorequire relationship with File[/etc/puppet/ssl/certs] Debug: /File[/etc/puppet/ssl/crl.pem]: Adding autorequire relationship with File[/etc/puppet/ssl] Debug: /File[/var/cache/puppet/client_yaml]: Adding autorequire relationship with File[/var/cache/puppet] Debug: /File[/var/cache/puppet/client_data]: Adding autorequire relationship with File[/var/cache/puppet] Debug: /File[/etc/puppet/devices]: Adding autorequire relationship with File[/etc/puppet] Debug: /File[/var/cache/puppet/clientbucket]: Adding autorequire relationship with File[/var/cache/puppet] Debug: /File[/usr/share/puppet/public/last_run_summary.yaml]: Adding autorequire relationship with File[/usr/share/puppet/public] Debug: /File[/var/cache/puppet/state/last_run_report.yaml]: Adding autorequire relationship with File[/var/cache/puppet/state] Debug: /File[/var/cache/puppet/state/graphs]: Adding autorequire relationship with File[/var/cache/puppet/state] Debug: /File[/var/cache/puppet/facts.d]: Adding autorequire relationship with File[/var/cache/puppet] Debug: /File[/var/cache/puppet/locales]: Adding autorequire relationship with File[/var/cache/puppet] Debug: Finishing transaction 11320 Debug: Runtime environment: puppet_version=7.20.0, ruby_version=3.1.2, run_mode=agent, default_encoding=UTF-8 Debug: Path to /etc/puppet/code/environments/production does not exist, using default environment.conf Debug: Loading CA certs Debug: Loading CRLs Debug: Loading/generating private key Debug: Verified CA certificate 'CN=Puppet Root CA: e5bb441efbe3e1' fingerprint (SHA256) A2:53:D1:25:35:A9:D1:48:9B:DE:05:65:11:8A:E3:2F:74:37:DB:DE:E4:91:FA:4B:DE:BC:42:83:DD:7D:6E:C9 Debug: Verified CA certificate 'CN=Puppet CA: foreman-test' fingerprint (SHA256) C5:EC:C3:91:1C:86:BD:CB:BC:E0:5B:50:AF:72:D4:FD:DE:3C:19:F0:55:00:EC:0F:F0:9C:C0:73:DD:AA:16:5F Debug: Verified client certificate 'CN=foreman-test.ipa.basealt.ru' fingerprint (SHA256) 71:50:24:29:60:8B:9A:36:32:33:FB:53:D4:77:DD:CE:5B:10:12:1B:8C:32:1F:2F:76:E7:17:40:BF:5E:83:98 Debug: Using CRL 'CN=Puppet CA: foreman-test' authorityKeyIdentifier 'keyid:9B:58:AF:08:B0:70:56:18:05:58:56:41:59:8C:D8:38:AB:C7:12:6B' crlNumber '0' Debug: Using CRL 'CN=Puppet Root CA: e5bb441efbe3e1' authorityKeyIdentifier 'keyid:88:06:55:81:5B:AE:91:0B:40:CE:11:EC:6D:4B:38:4E:DC:FB:F8:C2' crlNumber '0' Debug: Environment not passed via CLI and no catalog was given, attempting to find out the last server-specified environment Debug: Successfully loaded last environment from the lastrunfile Debug: Could not find a usable environment in the lastrunfile. Either the file does not exist, does not have the required keys, or the values of 'initial_environment' and 'converged_environment' are identical. Info: Using environment 'production' Debug: Resolving service 'fileserver' using Puppet::HTTP::Resolver::Settings Debug: Creating new connection for https://foreman-test:8140 Debug: Starting connection for https://foreman-test:8140 Debug: Using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 Debug: Caching connection for https://foreman-test:8140 Debug: Resolved service 'fileserver' to https://foreman-test:8140/puppet/v3 Debug: file_metadata supports formats: json msgpack pson yaml Debug: Using cached connection for https://foreman-test:8140 Debug: HTTP GET https://foreman-test:8140/puppet/v3/file_metadatas/plugins?recurse=false&links=manage&checksum_type=sha256&source_permissions=ignore&environment=production returned 200 OK Debug: Caching connection for https://foreman-test:8140 Info: Retrieving pluginfacts Debug: file_metadata supports formats: json msgpack pson yaml Debug: Using cached connection for https://foreman-test:8140 Debug: HTTP GET https://foreman-test:8140/puppet/v3/file_metadatas/pluginfacts?recurse=true&max_files=-1&ignore=.svn&ignore=CVS&ignore=.git&ignore=.hg&links=follow&checksum_type=sha256&source_permissions=use&environment=production returned 200 OK Debug: Caching connection for https://foreman-test:8140 Debug: Finishing transaction 11420 Info: Retrieving plugin Debug: file_metadata supports formats: json msgpack pson yaml Debug: Using cached connection for https://foreman-test:8140 Debug: HTTP GET https://foreman-test:8140/puppet/v3/file_metadatas/plugins?recurse=true&max_files=-1&ignore=.svn&ignore=CVS&ignore=.git&ignore=.hg&links=follow&checksum_type=sha256&source_permissions=ignore&environment=production returned 200 OK Debug: Caching connection for https://foreman-test:8140 Debug: Finishing transaction 11480 Debug: Reset text domain to :agent Debug: Loading external facts from /var/cache/puppet/facts.d Debug: Facter: Facter version: 4.2.13 Debug: Facter: Loading all internal facts Debug: Facter: Loading custom facts Debug: Facter: Loading external facts Debug: Facter: File at: /proc/sys/crypto/fips_enabled is not accessible. Debug: Facter: Executing command: ip -o link show Debug: Facter: Adding to interface lo, binding: {:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"} Debug: Facter: Adding to interface ens19, binding: {:address=>"10.88.10.123", :netmask=>"255.255.248.0", :network=>"10.88.8.0"} Debug: Facter: Adding to interface lo, binding: {:address=>"::1", :netmask=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", :network=>"::1", :scope6=>"host"} Debug: Facter: Adding to interface ens19, binding: {:address=>"2a0c:88c0:2:2000:6450:d0ff:fe23:c530", :netmask=>"ffff:ffff:ffff:ffff::", :network=>"2a0c:88c0:2:2000::", :scope6=>"global"} Debug: Facter: Adding to interface ens19, binding: {:address=>"fe80::6450:d0ff:fe23:c530", :netmask=>"ffff:ffff:ffff:ffff::", :network=>"fe80::", :scope6=>"link"} Debug: Facter: Executing command: ip link show Debug: Facter: Get DHCP for interface lo Debug: Facter: Attempt to get DHCP for interface lo, from systemd/netif/leases Debug: Facter: File at: /run/systemd/netif/leases/1 is not accessible. Debug: Facter: Attempt to get DHCP for interface lo, from dhclient leases Debug: Facter: Attempt to get DHCP for interface lo, from NetworkManager leases Debug: Facter: Attempt to get DHCP for interface lo, from dhcpcd command Debug: Facter: Executing command: /sbin/dhcpcd -U lo Debug: Facter: Command /sbin/dhcpcd -U lo completed with the following stderr message: dhcpcd is not running Debug: Facter: Found interface lo with {:bindings=>[{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}], :bindings6=>[{:address=>"::1", :netmask=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", :network=>"::1", :scope6=>"host"}], :mtu=>65536} Debug: Facter: Get DHCP for interface ens19 Debug: Facter: Attempt to get DHCP for interface ens19, from systemd/netif/leases Debug: Facter: File at: /run/systemd/netif/leases/2 is not accessible. Debug: Facter: Attempt to get DHCP for interface ens19, from dhclient leases Debug: Facter: Attempt to get DHCP for interface ens19, from NetworkManager leases Debug: Facter: Attempt to get DHCP for interface ens19, from dhcpcd command Debug: Facter: Executing command: /sbin/dhcpcd -U ens19 Debug: Facter: Command /sbin/dhcpcd -U ens19 completed with the following stderr message: dhcpcd is not running Debug: Facter: Found interface ens19 with {:mac=>"66:50:d0:23:c5:30", :bindings=>[{:address=>"10.88.10.123", :netmask=>"255.255.248.0", :network=>"10.88.8.0"}], :bindings6=>[{:address=>"2a0c:88c0:2:2000:6450:d0ff:fe23:c530", :netmask=>"ffff:ffff:ffff:ffff::", :network=>"2a0c:88c0:2:2000::", :scope6=>"global"}, {:address=>"fe80::6450:d0ff:fe23:c530", :netmask=>"ffff:ffff:ffff:ffff::", :network=>"fe80::", :scope6=>"link"}], :mtu=>1500} Debug: Facter: Executing command: ip route show Debug: Facter: Executing command: ip -6 route show Debug: Facter: Executing command: virt-what Debug: Facter: Failed while executing 'virt-what': No such file or directory - virt-what Debug: Facter: Executing command: vmware -v Debug: Facter: Failed while executing 'vmware -v': No such file or directory - vmware Debug: Facter: Executing command: virt-what Debug: Facter: Failed while executing 'virt-what': No such file or directory - virt-what Debug: Facter: File at: /proc/xen/capabilities is not accessible. Debug: Facter: Executing command: ["/usr/sbin/xl", "/usr/sbin/xm"] list Debug: Facter: Command ["/usr/sbin/xl", "/usr/sbin/xm"] list completed with the following stderr message: sh: [/usr/sbin/xl,: No such file or directory Debug: Facter: Executing command: lspci Debug: Facter: Executing command: uname -m && uname -n && uname -p && uname -r && uname -s && uname -v Debug: Facter: Executing command: lsb_release -a Debug: Facter: Executing command: lscpu | grep -e 'Thread(s)' -e 'Core(s)' Debug: Facter: Tried to retrieve hostname and got: foreman-test Debug: Facter: Only managed to read hostname: foreman-test, no domain was found. Debug: Facter: FFI Getaddrinfo finished with exit status: 0 Debug: Facter: FFI Getaddrinfo returned an AddrInfo struct at address: # Debug: Facter: FFI AddrInfo struct has the fqdn: foreman-test Debug: Facter: FFI getaddrinfo was called and it retrieved: Debug: Facter: Adding to interface lo, binding: {:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"} Debug: Facter: Adding to interface ens19, binding: {:address=>"10.88.10.123", :netmask=>"255.255.248.0", :network=>"10.88.8.0"} Debug: Facter: Adding to interface lo, binding: {:address=>"::1", :netmask=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", :network=>"::1", :scope6=>"host"} Debug: Facter: Adding to interface ens19, binding: {:address=>"2a0c:88c0:2:2000:6450:d0ff:fe23:c530", :netmask=>"ffff:ffff:ffff:ffff::", :network=>"2a0c:88c0:2:2000::", :scope6=>"global"} Debug: Facter: Adding to interface ens19, binding: {:address=>"fe80::6450:d0ff:fe23:c530", :netmask=>"ffff:ffff:ffff:ffff::", :network=>"fe80::", :scope6=>"link"} Debug: Facter: Executing command: ip link show Debug: Facter: Get DHCP for interface lo Debug: Facter: Attempt to get DHCP for interface lo, from systemd/netif/leases Debug: Facter: File at: /run/systemd/netif/leases/1 is not accessible. Debug: Facter: Attempt to get DHCP for interface lo, from dhclient leases Debug: Facter: Attempt to get DHCP for interface lo, from NetworkManager leases Debug: Facter: Attempt to get DHCP for interface lo, from dhcpcd command Debug: Facter: Executing command: /sbin/dhcpcd -U lo Debug: Facter: Command /sbin/dhcpcd -U lo completed with the following stderr message: dhcpcd is not running Debug: Facter: Found interface lo with {:bindings=>[{:address=>"127.0.0.1", :netmask=>"255.0.0.0", :network=>"127.0.0.0"}], :bindings6=>[{:address=>"::1", :netmask=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", :network=>"::1", :scope6=>"host"}], :mtu=>65536} Debug: Facter: Get DHCP for interface ens19 Debug: Facter: Attempt to get DHCP for interface ens19, from systemd/netif/leases Debug: Facter: File at: /run/systemd/netif/leases/2 is not accessible. Debug: Facter: Attempt to get DHCP for interface ens19, from dhclient leases Debug: Facter: Attempt to get DHCP for interface ens19, from NetworkManager leases Debug: Facter: Attempt to get DHCP for interface ens19, from dhcpcd command Debug: Facter: Executing command: /sbin/dhcpcd -U ens19 Debug: Facter: Command /sbin/dhcpcd -U ens19 completed with the following stderr message: dhcpcd is not running Debug: Facter: Found interface ens19 with {:mac=>"66:50:d0:23:c5:30", :bindings=>[{:address=>"10.88.10.123", :netmask=>"255.255.248.0", :network=>"10.88.8.0"}], :bindings6=>[{:address=>"2a0c:88c0:2:2000:6450:d0ff:fe23:c530", :netmask=>"ffff:ffff:ffff:ffff::", :network=>"2a0c:88c0:2:2000::", :scope6=>"global"}, {:address=>"fe80::6450:d0ff:fe23:c530", :netmask=>"ffff:ffff:ffff:ffff::", :network=>"fe80::", :scope6=>"link"}], :mtu=>1500} Debug: Facter: Executing command: ip route show Debug: Facter: Executing command: ip -6 route show Debug: Facter: Linux Virtual Resolver Debug: Facter: Fact value is: kvm Debug: Facter: Executing command: cat /proc/self/mounts Debug: Facter: Executing command: cat /proc/self/mounts Debug: Facter: Executing command: cat /proc/self/mounts Debug: Facter: Executing command: cat /proc/self/mounts Debug: Facter: Executing command: cat /proc/self/mounts Debug: Facter: File at: /etc/ssh_host_rsa_key.pub is not accessible. Debug: Facter: File at: /etc/ssh_host_dsa_key.pub is not accessible. Debug: Facter: File at: /etc/ssh_host_ecdsa_key.pub is not accessible. Debug: Facter: File at: /etc/ssh_host_ed25519_key.pub is not accessible. Debug: Facter: File at: /usr/local/etc/ssh_host_rsa_key.pub is not accessible. Debug: Facter: File at: /usr/local/etc/ssh_host_dsa_key.pub is not accessible. Debug: Facter: File at: /usr/local/etc/ssh_host_ecdsa_key.pub is not accessible. Debug: Facter: File at: /usr/local/etc/ssh_host_ed25519_key.pub is not accessible. Debug: Facter: File at: /opt/puppetlabs/puppet/VERSION is not accessible. Debug: Facter: Executing command: augparse --version 2>&1 Debug: Facter: Resolving fact mountpoints, but got cannot load such file -- sys/filesystem at :85:in `require' Debug: Facter: Querying Ec2 metadata Debug: Facter: Trying to connect to http://169.254.169.254/latest/api/token but got: Failed to open TCP connection to 169.254.169.254:80 (Connection timed out - user specified timeout) Debug: Facter: Trying to connect to http://169.254.169.254/latest/meta-data/ but got: Failed to open TCP connection to 169.254.169.254:80 (Connection timed out - user specified timeout) Debug: Facter: Trying to connect to http://169.254.169.254/latest/user-data/ but got: Failed to open TCP connection to 169.254.169.254:80 (Connection timed out - user specified timeout) Debug: Facter: File at: /sys/class/dmi/id/board_asset_tag is not accessible. Debug: Facter: Could not resolve board_asset_tag, got undefined method `encode' for nil:NilClass .encode('UTF-8', invalid: :replace) ^^^^^^^ at /usr/lib/ruby/gemie/gems/facter-4.2.13/lib/facter/resolvers/dmi.rb:39:in `read_facts' Debug: Facter: File at: /sys/class/dmi/id/board_vendor is not accessible. Debug: Facter: Could not resolve board_vendor, got undefined method `encode' for nil:NilClass .encode('UTF-8', invalid: :replace) ^^^^^^^ at /usr/lib/ruby/gemie/gems/facter-4.2.13/lib/facter/resolvers/dmi.rb:39:in `read_facts' Debug: Facter: File at: /sys/class/dmi/id/board_name is not accessible. Debug: Facter: Could not resolve board_name, got undefined method `encode' for nil:NilClass .encode('UTF-8', invalid: :replace) ^^^^^^^ at /usr/lib/ruby/gemie/gems/facter-4.2.13/lib/facter/resolvers/dmi.rb:39:in `read_facts' Debug: Facter: File at: /sys/class/dmi/id/board_serial is not accessible. Debug: Facter: Could not resolve board_serial, got undefined method `encode' for nil:NilClass .encode('UTF-8', invalid: :replace) ^^^^^^^ at /usr/lib/ruby/gemie/gems/facter-4.2.13/lib/facter/resolvers/dmi.rb:39:in `read_facts' Debug: Facter: Executing command: /bin/cat /proc/uptime Debug: Facter: Executing command: /bin/lsblk -dn -o serial /dev/sr0 Debug: Facter: Executing command: /bin/lsblk -dn -o serial /dev/sda Debug: Facter: Executing command: /bin/lsblk -dn -o wwn /dev/sr0 Debug: Facter: Executing command: /bin/lsblk -dn -o wwn /dev/sda Debug: Facter: Querying Ec2 metadata Debug: Facter: Querying Ec2 metadata Debug: Facter: Detected product name: Standard PC (i440FX + PIIX, 1996) Debug: Facter: Detected hypervisor Standard PC (i440FX + PIIX, 1996) Debug: Facter: Detected product name: Standard PC (i440FX + PIIX, 1996) Debug: Facter: Detected bios vendor: SeaBIOS Debug: Facter: Detected manufacturer: QEMU Debug: Facter: No Vmware hypervisor detected. Debug: Facter: No Xen hypervisor detected. Debug: Facter: Executing command: blkid Debug: Facter: custom fact puppetversion got resolved from: ["/usr/lib/ruby/gemie/gems/puppet-7.20.0/lib/puppet.rb", 192] Debug: Facter: Loading all internal facts Debug: Facter: custom fact agent_specified_environment got resolved from: ["/usr/lib/ruby/gemie/gems/puppet-7.20.0/lib/puppet.rb", 196] Debug: Facter: Loading all internal facts Debug: Facter: fact "facterversion" has resolved to: 4.2.13 Debug: Facter: fact "filesystems" has resolved to: ext3,ext4 Debug: Facter: fact "identity.privileged" has resolved to: true Debug: Facter: fact "identity.uid" has resolved to: 0 Debug: Facter: fact "identity.user" has resolved to: root Debug: Facter: fact "id" has resolved to: root Debug: Facter: fact "identity.group" has resolved to: root Debug: Facter: fact "gid" has resolved to: root Debug: Facter: fact "identity.gid" has resolved to: 0 Debug: Facter: fact "fips_enabled" has resolved to: false Debug: Facter: fact "interfaces" has resolved to: ens19,lo Debug: Facter: fact "ipaddress6_lo" has resolved to: ::1 Debug: Facter: fact "ipaddress6_ens19" has resolved to: 2a0c:88c0:2:2000:6450:d0ff:fe23:c530 Debug: Facter: fact "is_virtual" has resolved to: true Debug: Facter: fact "ipaddress_lo" has resolved to: 127.0.0.1 Debug: Facter: fact "ipaddress_ens19" has resolved to: 10.88.10.123 Debug: Facter: fact "kernelmajversion" has resolved to: 5.10 Debug: Facter: fact "kernelrelease" has resolved to: 5.10.198-std-def-alt1 Debug: Facter: fact "kernelversion" has resolved to: 5.10.198 Debug: Facter: fact "lsbdistrelease" has resolved to: 10.2 Debug: Facter: fact "lsbmajdistrelease" has resolved to: 10 Debug: Facter: fact "lsbminordistrelease" has resolved to: 2 Debug: Facter: fact "macaddress_ens19" has resolved to: 66:50:d0:23:c5:30 Debug: Facter: fact "processors.cores" has resolved to: 2 Debug: Facter: fact "processors.count" has resolved to: 4 Debug: Facter: fact "processorcount" has resolved to: 4 Debug: Facter: fact "processors.isa" has resolved to: unknown Debug: Facter: fact "hardwareisa" has resolved to: unknown Debug: Facter: fact "processors.models" has resolved to: ["Common KVM processor", "Common KVM processor", "Common KVM processor", "Common KVM processor"] Debug: Facter: fact "processors.physicalcount" has resolved to: 2 Debug: Facter: fact "physicalprocessorcount" has resolved to: 2 Debug: Facter: fact "processors.speed" has resolved to: 2.20 GHz Debug: Facter: fact "processors.threads" has resolved to: 1 Debug: Facter: fact "processor0" has resolved to: Common KVM processor Debug: Facter: fact "processor1" has resolved to: Common KVM processor Debug: Facter: fact "processor2" has resolved to: Common KVM processor Debug: Facter: fact "processor3" has resolved to: Common KVM processor Debug: Facter: fact "networking.domain" has resolved to: ipa.basealt.ru Debug: Facter: fact "domain" has resolved to: ipa.basealt.ru Debug: Facter: fact "networking.fqdn" has resolved to: foreman-test.ipa.basealt.ru Debug: Facter: fact "fqdn" has resolved to: foreman-test.ipa.basealt.ru Debug: Facter: fact "networking.interfaces" has resolved to: {"lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "mtu"=>65536, "ip"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0", "ip6"=>"::1", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network6"=>"::1", "scope6"=>"host"}, "ens19"=>{"mac"=>"66:50:d0:23:c5:30", "bindings"=>[{"address"=>"10.88.10.123", "netmask"=>"255.255.248.0", "network"=>"10.88.8.0"}], "bindings6"=>[{"address"=>"2a0c:88c0:2:2000:6450:d0ff:fe23:c530", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"2a0c:88c0:2:2000::", "scope6"=>"global", "flags"=>[]}, {"address"=>"fe80::6450:d0ff:fe23:c530", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "mtu"=>1500, "ip"=>"10.88.10.123", "netmask"=>"255.255.248.0", "network"=>"10.88.8.0", "ip6"=>"2a0c:88c0:2:2000:6450:d0ff:fe23:c530", "netmask6"=>"ffff:ffff:ffff:ffff::", "network6"=>"2a0c:88c0:2:2000::", "scope6"=>"global"}} Debug: Facter: fact "networking.ip" has resolved to: 10.88.10.123 Debug: Facter: fact "ipaddress" has resolved to: 10.88.10.123 Debug: Facter: fact "networking.mac" has resolved to: 66:50:d0:23:c5:30 Debug: Facter: fact "macaddress" has resolved to: 66:50:d0:23:c5:30 Debug: Facter: fact "networking.mtu" has resolved to: 1500 Debug: Facter: fact "networking.netmask" has resolved to: 255.255.248.0 Debug: Facter: fact "netmask" has resolved to: 255.255.248.0 Debug: Facter: fact "networking.netmask6" has resolved to: ffff:ffff:ffff:ffff:: Debug: Facter: fact "netmask6" has resolved to: ffff:ffff:ffff:ffff:: Debug: Facter: fact "networking.network6" has resolved to: 2a0c:88c0:2:2000:: Debug: Facter: fact "network6" has resolved to: 2a0c:88c0:2:2000:: Debug: Facter: fact "networking.ip6" has resolved to: 2a0c:88c0:2:2000:6450:d0ff:fe23:c530 Debug: Facter: fact "ipaddress6" has resolved to: 2a0c:88c0:2:2000:6450:d0ff:fe23:c530 Debug: Facter: fact "networking.primary" has resolved to: ens19 Debug: Facter: fact "networking.hostname" has resolved to: foreman-test Debug: Facter: fact "hostname" has resolved to: foreman-test Debug: Facter: fact "networking.scope6" has resolved to: global Debug: Facter: fact "scope6" has resolved to: global Debug: Facter: fact "networking.network" has resolved to: 10.88.8.0 Debug: Facter: fact "network" has resolved to: 10.88.8.0 Debug: Facter: fact "virtual" has resolved to: kvm Debug: Facter: fact "load_averages" has resolved to: {"1m"=>0.17, "5m"=>0.09, "15m"=>0.09} Debug: Facter: fact "mtu_lo" has resolved to: 65536 Debug: Facter: fact "mtu_ens19" has resolved to: 1500 Debug: Facter: fact "netmask6_lo" has resolved to: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff Debug: Facter: fact "netmask6_ens19" has resolved to: ffff:ffff:ffff:ffff:: Debug: Facter: fact "netmask_lo" has resolved to: 255.0.0.0 Debug: Facter: fact "netmask_ens19" has resolved to: 255.255.248.0 Debug: Facter: fact "network6_lo" has resolved to: ::1 Debug: Facter: fact "network6_ens19" has resolved to: 2a0c:88c0:2:2000:: Debug: Facter: fact "network_lo" has resolved to: 127.0.0.0 Debug: Facter: fact "network_ens19" has resolved to: 10.88.8.0 Debug: Facter: fact "memory.swap.used_bytes" has resolved to: 0 Debug: Facter: fact "memory.swap.available" has resolved to: 745.00 MiB Debug: Facter: fact "swapfree" has resolved to: 745.00 MiB Debug: Facter: fact "memory.swap.available_bytes" has resolved to: 781185024 Debug: Facter: fact "swapfree_mb" has resolved to: 744.99609375 Debug: Facter: fact "memory.swap.capacity" has resolved to: 0.00% Debug: Facter: fact "memory.swap.total" has resolved to: 745.00 MiB Debug: Facter: fact "swapsize" has resolved to: 745.00 MiB Debug: Facter: fact "memory.swap.total_bytes" has resolved to: 781185024 Debug: Facter: fact "swapsize_mb" has resolved to: 744.99609375 Debug: Facter: fact "memory.swap.used" has resolved to: 0 bytes Debug: Facter: fact "memory.system.used_bytes" has resolved to: 2890895360 Debug: Facter: fact "memory.system.available" has resolved to: 7.02 GiB Debug: Facter: fact "memoryfree" has resolved to: 7.02 GiB Debug: Facter: fact "memory.system.available_bytes" has resolved to: 7538749440 Debug: Facter: fact "memoryfree_mb" has resolved to: 7189.51171875 Debug: Facter: fact "memory.system.capacity" has resolved to: 27.72% Debug: Facter: fact "memory.system.total" has resolved to: 9.71 GiB Debug: Facter: fact "memorysize" has resolved to: 9.71 GiB Debug: Facter: fact "memory.system.total_bytes" has resolved to: 10429644800 Debug: Facter: fact "memorysize_mb" has resolved to: 9946.484375 Debug: Facter: fact "memory.system.used" has resolved to: 2.69 GiB Debug: Facter: fact "os.architecture" has resolved to: x86_64 Debug: Facter: fact "architecture" has resolved to: x86_64 Debug: Facter: fact "os.distro.description" has resolved to: ALT Server 10.2 (Mendelevium) Debug: Facter: fact "lsbdistdescription" has resolved to: ALT Server 10.2 (Mendelevium) Debug: Facter: fact "os.distro.id" has resolved to: ALT Debug: Facter: fact "lsbdistid" has resolved to: ALT Debug: Facter: fact "os.distro.specification" has resolved to: 5.0:core-3.0-amd64:core-3.0-noarch:core-5.0-amd64:core-5.0-noarch Debug: Facter: fact "lsbrelease" has resolved to: 5.0:core-3.0-amd64:core-3.0-noarch:core-5.0-amd64:core-5.0-noarch Debug: Facter: fact "os.distro.release" has resolved to: {"full"=>"10.2", "major"=>"10", "minor"=>"2"} Debug: Facter: fact "os.distro.codename" has resolved to: Mendelevium Debug: Facter: fact "lsbdistcodename" has resolved to: Mendelevium Debug: Facter: fact "os.family" has resolved to: Altlinux Debug: Facter: fact "osfamily" has resolved to: Altlinux Debug: Facter: fact "os.hardware" has resolved to: x86_64 Debug: Facter: fact "hardwaremodel" has resolved to: x86_64 Debug: Facter: fact "os.release" has resolved to: {"full"=>"10.2", "major"=>"10.2"} Debug: Facter: fact "operatingsystemmajrelease" has resolved to: 10.2 Debug: Facter: fact "operatingsystemrelease" has resolved to: 10.2 Debug: Facter: fact "os.selinux.enabled" has resolved to: false Debug: Facter: fact "selinux" has resolved to: false Debug: Facter: fact "os.name" has resolved to: ALT Debug: Facter: fact "operatingsystem" has resolved to: ALT Debug: Facter: fact "path" has resolved to: /root/bin:/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin Debug: Facter: fact "ruby.platform" has resolved to: x86_64-linux Debug: Facter: fact "rubyplatform" has resolved to: x86_64-linux Debug: Facter: fact "ruby.version" has resolved to: 3.1.2 Debug: Facter: fact "rubyversion" has resolved to: 3.1.2 Debug: Facter: fact "ruby.sitedir" has resolved to: /usr/local/lib/ruby Debug: Facter: fact "rubysitedir" has resolved to: /usr/local/lib/ruby Debug: Facter: fact "augeas.version" has resolved to: 1.12.0 Debug: Facter: fact "augeasversion" has resolved to: 1.12.0 Debug: Facter: fact "dhcp_servers" has resolved to: {"system"=>nil} Debug: Facter: fact "scope6_lo" has resolved to: host Debug: Facter: fact "scope6_ens19" has resolved to: global Debug: Facter: fact "dmi.chassis.type" has resolved to: Other Debug: Facter: fact "chassistype" has resolved to: Other Debug: Facter: fact "dmi.manufacturer" has resolved to: QEMU Debug: Facter: fact "manufacturer" has resolved to: QEMU Debug: Facter: fact "dmi.bios.release_date" has resolved to: 04/01/2014 Debug: Facter: fact "bios_release_date" has resolved to: 04/01/2014 Debug: Facter: fact "dmi.bios.vendor" has resolved to: SeaBIOS Debug: Facter: fact "bios_vendor" has resolved to: SeaBIOS Debug: Facter: fact "dmi.bios.version" has resolved to: 1.16.0-alt1 Debug: Facter: fact "bios_version" has resolved to: 1.16.0-alt1 Debug: Facter: fact "dmi.product.uuid" has resolved to: d5a48c25-bd3b-4010-8c00-d5747b95189c Debug: Facter: fact "uuid" has resolved to: d5a48c25-bd3b-4010-8c00-d5747b95189c Debug: Facter: fact "dmi.product.name" has resolved to: Standard PC (i440FX + PIIX, 1996) Debug: Facter: fact "productname" has resolved to: Standard PC (i440FX + PIIX, 1996) Debug: Facter: fact "timezone" has resolved to: MSK Debug: Facter: fact "system_uptime.hours" has resolved to: 0 Debug: Facter: fact "uptime_hours" has resolved to: 0 Debug: Facter: fact "system_uptime.seconds" has resolved to: 2145 Debug: Facter: fact "uptime_seconds" has resolved to: 2145 Debug: Facter: fact "system_uptime.uptime" has resolved to: 0:35 hours Debug: Facter: fact "uptime" has resolved to: 0:35 hours Debug: Facter: fact "system_uptime.days" has resolved to: 0 Debug: Facter: fact "uptime_days" has resolved to: 0 Debug: Facter: fact "disks" has resolved to: {"sr0"=>{"model"=>"QEMU DVD-ROM", "size_bytes"=>5388171264, "size"=>"5.02 GiB", "vendor"=>"QEMU", "type"=>"hdd", "serial"=>"QM00009"}, "sda"=>{"model"=>"QEMU HARDDISK", "size_bytes"=>26843545600, "size"=>"25.00 GiB", "vendor"=>"QEMU", "type"=>"hdd", "serial"=>"drive-scsi0"}} Debug: Facter: fact "blockdevices" has resolved to: sr0,sda Debug: Facter: fact "blockdevice_sr0_model" has resolved to: QEMU DVD-ROM Debug: Facter: fact "blockdevice_sda_model" has resolved to: QEMU HARDDISK Debug: Facter: fact "blockdevice_sr0_size" has resolved to: 5388171264 Debug: Facter: fact "blockdevice_sda_size" has resolved to: 26843545600 Debug: Facter: fact "blockdevice_sr0_vendor" has resolved to: QEMU Debug: Facter: fact "blockdevice_sda_vendor" has resolved to: QEMU Debug: Facter: fact "hypervisors.kvm" has resolved to: {} Debug: Facter: fact "partitions" has resolved to: {"/dev/sda1"=>{"size_bytes"=>781189120, "size"=>"745.00 MiB", "filesystem"=>"swap", "uuid"=>"22824d65-0819-4249-89f7-5b356fb4e8e7"}, "/dev/sda2"=>{"size_bytes"=>26060259328, "size"=>"24.27 GiB", "filesystem"=>"ext4", "uuid"=>"84b4aa06-e1df-4aca-9a82-a4738098ceff"}} Debug: Facter: fact "kernel" has resolved to: Linux Debug: Facter: fact "puppetversion" has resolved to: 7.20.0 Debug: Facter: fact "agent_specified_environment" has resolved to: production Debug: The total number of facts registered is 263 Debug: The size of the payload is 10032 Debug: Resolving service 'puppet' using Puppet::HTTP::Resolver::Settings Debug: Using cached connection for https://foreman-test:8140 Debug: Caching connection for https://foreman-test:8140 Debug: Resolved service 'puppet' to https://foreman-test:8140/puppet/v3 Debug: Path to /etc/puppet/code/environments/production does not exist, using default environment.conf Debug: catalog supports formats: rich_data_json json rich_data_msgpack msgpack pson yaml dot Debug: Using cached connection for https://foreman-test:8140 Debug: HTTP POST https://foreman-test:8140/puppet/v3/catalog/foreman-test.ipa.basealt.ru?environment=production returned 500 Server Error Debug: Caching connection for https://foreman-test:8140 Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node foreman-test.ipa.basealt.ru: Failed to find foreman-test.ipa.basealt.ru via exec: Execution of '/usr/lib/puppet-modules/theforeman-puppetserver-foreman/files/enc.rb foreman-test.ipa.basealt.ru' returned 1: Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Debug: Resolving service 'report' using Puppet::HTTP::Resolver::Settings Debug: Using cached connection for https://foreman-test:8140 Debug: Caching connection for https://foreman-test:8140 Debug: Resolved service 'report' to https://foreman-test:8140/puppet/v3 Debug: report supports formats: json msgpack pson yaml Debug: Using cached connection for https://foreman-test:8140 Debug: HTTP PUT https://foreman-test:8140/puppet/v3/report/foreman-test.ipa.basealt.ru?environment=production returned 200 OK Debug: Caching connection for https://foreman-test:8140 Debug: /Group[puppet]: Provider groupadd does not support features manages_local_users_and_groups; not managing attribute forcelocal Debug: /User[puppet]: Provider useradd does not support features manages_local_users_and_groups; not managing attribute forcelocal Debug: /Group[puppet]: Provider groupadd does not support features manages_local_users_and_groups; not managing attribute forcelocal Debug: /User[puppet]: Provider useradd does not support features manages_local_users_and_groups; not managing attribute forcelocal Debug: Closing connection for https://foreman-test:8140