Huge list of errors when running "foreman-installer" when trying to add libvirt to compute resources

Problem: Huge list of errors when running “foreman-installer” when trying to add libvirt to compute resources

Expected outcome: I need to add “libvirt” to compute resources so I can install virtual machines.

Foreman and Proxy versions: foreman version => 0.82.0

Foreman and Proxy plugin versions:

Error outpus after running foreman-installer:

     Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-tasks' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-foreman-tasks
    /usr/lib/ruby/vendor_ruby/puppet/util/execution.rb:232:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:221:in `block in has_command'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:422:in `block in create_class_and_instance_method'
    /usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:73:in `install'
    /usr/lib/ruby/vendor_ruby/puppet/type/package.rb:88:in `block (3 levels) in <module:Puppet>'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:487:in `set'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:561:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
    /usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
    /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
    /usr/bin/puppet:5:in `<main>'
     /Stage[main]/Foreman::Plugin::Tasks/Foreman::Plugin[tasks]/Package[ruby-foreman-tasks]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-tasks' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-foreman-tasks
     Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-ansible' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-foreman-ansible
    /usr/lib/ruby/vendor_ruby/puppet/util/execution.rb:232:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:221:in `block in has_command'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:422:in `block in create_class_and_instance_method'
    /usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:73:in `install'
    /usr/lib/ruby/vendor_ruby/puppet/type/package.rb:88:in `block (3 levels) in <module:Puppet>'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:487:in `set'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:561:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
    /usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
    /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
    /usr/bin/puppet:5:in `<main>'
     /Stage[main]/Foreman::Plugin::Ansible/Foreman::Plugin[ansible]/Package[ruby-foreman-ansible]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-ansible' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-foreman-ansible
     Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-discovery' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-foreman-discovery
    /usr/lib/ruby/vendor_ruby/puppet/util/execution.rb:232:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:221:in `block in has_command'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:422:in `block in create_class_and_instance_method'
    /usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:73:in `install'
    /usr/lib/ruby/vendor_ruby/puppet/type/package.rb:88:in `block (3 levels) in <module:Puppet>'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:487:in `set'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:561:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
    /usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
    /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
    /usr/bin/puppet:5:in `<main>'
     /Stage[main]/Foreman::Plugin::Discovery/Foreman::Plugin[discovery]/Package[ruby-foreman-discovery]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-discovery' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-foreman-discovery
     Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-setup' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-foreman-setup
    /usr/lib/ruby/vendor_ruby/puppet/util/execution.rb:232:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:221:in `block in has_command'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:422:in `block in create_class_and_instance_method'
    /usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:73:in `install'
    /usr/lib/ruby/vendor_ruby/puppet/type/package.rb:88:in `block (3 levels) in <module:Puppet>'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:487:in `set'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:561:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
    /usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
    /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
    /usr/bin/puppet:5:in `<main>'
     /Stage[main]/Foreman::Plugin::Setup/Foreman::Plugin[setup]/Package[ruby-foreman-setup]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-setup' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-foreman-setup
     Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-smart-proxy-dynflow' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-smart-proxy-dynflow
    /usr/lib/ruby/vendor_ruby/puppet/util/execution.rb:232:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:221:in `block in has_command'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:422:in `block in create_class_and_instance_method'
    /usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:73:in `install'
    /usr/lib/ruby/vendor_ruby/puppet/type/package.rb:88:in `block (3 levels) in <module:Puppet>'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:487:in `set'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:561:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
    /usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
    /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
    /usr/bin/puppet:5:in `<main>'
     /Stage[main]/Foreman_proxy::Plugin::Dynflow/Foreman_proxy::Plugin[dynflow]/Package[ruby-smart-proxy-dynflow]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-smart-proxy-dynflow' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-smart-proxy-dynflow
     Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-smart-proxy-ansible' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-smart-proxy-ansible
    /usr/lib/ruby/vendor_ruby/puppet/util/execution.rb:232:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:221:in `block in has_command'
    /usr/lib/ruby/vendor_ruby/puppet/provider.rb:422:in `block in create_class_and_instance_method'
    /usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:73:in `install'
    /usr/lib/ruby/vendor_ruby/puppet/type/package.rb:88:in `block (3 levels) in <module:Puppet>'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:487:in `set'
    /usr/lib/ruby/vendor_ruby/puppet/property.rb:561:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `sync'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
    /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
    /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
    /usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
    /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
    /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
    /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
    /usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
    /usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
    /usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
    /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
    /usr/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
    /usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
    /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
    /usr/bin/puppet:5:in `<main>'
     /Stage[main]/Foreman_proxy::Plugin::Ansible/Foreman_proxy::Plugin[ansible]/Package[ruby-smart-proxy-ansible]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-smart-proxy-ansible' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package ruby-smart-proxy-ansible
    Installing             Done                                               [100%] [......................]
      Something went wrong! Check the log for ERROR-level output

I added to source list

`deb http://deb.theforeman.org/ plugins stable`

But now I have this bunch of error list even when I did apt-get update and --fix-missing:

Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-ansible' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ruby-foreman-deface
The following NEW packages will be installed:
  ruby-foreman-ansible ruby-foreman-deface
0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded.
Need to get 260 kB/311 kB of archives.
After this operation, 12.3 MB of additional disk space will be used.
Get:1 http://deb.theforeman.org plugins/stable amd64 ruby-foreman-ansible all 1.4.6-1 [260 kB]
1 http://deb.theforeman.org plugins/stable amd64 ruby-foreman-ansible all 1.4.6-1
  Hash Sum mismatch
  Hashes of expected file:
   - SHA512:a676e0f43338e95a99c4a0d3e084782ad6b7d8c00ed7adbf225b3523e115916656d112f81da6ffeb86e59b1f72de72fcd7ce598747d2aa7ac7834b4d4b03a3a8
   - SHA256:a3489386b92edf4693acde8a5020cca4c568f0b10e3d19cc37de475e65588019
   - SHA1:bc52350a57de84cc9d8c182996d39f1e8507d683 [weak]
   - MD5Sum:3f0e3742c2eaf39c040e050758a03da3 [weak]
   - Filesize:260196 [weak]
  Hashes of received file:
   - SHA512:e669679befec53256b89a4f799f87199c9fae662819e5bdd3b485b1365ca5758fe8a16386e1837662ef6f138f73dae486a51cffc82fa5db813caeeda60849d14
   - SHA256:28ee6a1f4ed63806a8c4333d821ce2b478dccdb0d736112bc85e7976b31ffa2a
   - SHA1:daab9e7dcba22b134f16593542c3be866db697c2 [weak]
   - MD5Sum:1885878077d7b20fe937a7c169c8dc95 [weak]
   - Filesize:259804 [weak]
  Last modification reported: Fri, 06 Oct 2017 13:37:31 +0000
Fetched 260 kB in 1s (188 kB/s)
E: Failed to fetch http://deb.theforeman.org/pool/plugins/stable/r/ruby-foreman-ansible/ruby-foreman-ansible_1.4.6-1_all.deb  Hash Sum mismatch
   Hashes of expected file:
- SHA512:a676e0f43338e95a99c4a0d3e084782ad6b7d8c00ed7adbf225b3523e115916656d112f81da6ffeb86e59b1f72de72fcd7ce598747d2aa7ac7834b4d4b03a3a8
- SHA256:a3489386b92edf4693acde8a5020cca4c568f0b10e3d19cc37de475e65588019
- SHA1:bc52350a57de84cc9d8c182996d39f1e8507d683 [weak]
- MD5Sum:3f0e3742c2eaf39c040e050758a03da3 [weak]
- Filesize:260196 [weak]
   Hashes of received file:
- SHA512:e669679befec53256b89a4f799f87199c9fae662819e5bdd3b485b1365ca5758fe8a16386e1837662ef6f138f73dae486a51cffc82fa5db813caeeda60849d14
- SHA256:28ee6a1f4ed63806a8c4333d821ce2b478dccdb0d736112bc85e7976b31ffa2a
- SHA1:daab9e7dcba22b134f16593542c3be866db697c2 [weak]
- MD5Sum:1885878077d7b20fe937a7c169c8dc95 [weak]
- Filesize:259804 [weak]
   Last modification reported: Fri, 06 Oct 2017 13:37:31 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
/usr/lib/ruby/vendor_ruby/puppet/util/execution.rb:232:in `execute'
/usr/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
/usr/lib/ruby/vendor_ruby/puppet/provider.rb:221:in `block in has_command'
/usr/lib/ruby/vendor_ruby/puppet/provider.rb:422:in `block in create_class_and_instance_method'
/usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:73:in `install'
/usr/lib/ruby/vendor_ruby/puppet/type/package.rb:88:in `block (3 levels) in <module:Puppet>'
/usr/lib/ruby/vendor_ruby/puppet/property.rb:487:in `set'
/usr/lib/ruby/vendor_ruby/puppet/property.rb:561:in `sync'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `sync'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
/usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
/usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/usr/bin/puppet:5:in `<main>'
 /Stage[main]/Foreman::Plugin::Ansible/Foreman::Plugin[ansible]/Package[ruby-foreman-ansible]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ruby-foreman-ansible' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ruby-foreman-deface
The following NEW packages will be installed:
  ruby-foreman-ansible ruby-foreman-deface
0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded.
Need to get 260 kB/311 kB of archives.
After this operation, 12.3 MB of additional disk space will be used.
Get:1 http://deb.theforeman.org plugins/stable amd64 ruby-foreman-ansible all 1.4.6-1 [260 kB]
1 http://deb.theforeman.org plugins/stable amd64 ruby-foreman-ansible all 1.4.6-1
  Hash Sum mismatch
  Hashes of expected file:
   - SHA512:a676e0f43338e95a99c4a0d3e084782ad6b7d8c00ed7adbf225b3523e115916656d112f81da6ffeb86e59b1f72de72fcd7ce598747d2aa7ac7834b4d4b03a3a8
   - SHA256:a3489386b92edf4693acde8a5020cca4c568f0b10e3d19cc37de475e65588019
   - SHA1:bc52350a57de84cc9d8c182996d39f1e8507d683 [weak]
   - MD5Sum:3f0e3742c2eaf39c040e050758a03da3 [weak]
   - Filesize:260196 [weak]
  Hashes of received file:
   - SHA512:e669679befec53256b89a4f799f87199c9fae662819e5bdd3b485b1365ca5758fe8a16386e1837662ef6f138f73dae486a51cffc82fa5db813caeeda60849d14
   - SHA256:28ee6a1f4ed63806a8c4333d821ce2b478dccdb0d736112bc85e7976b31ffa2a
   - SHA1:daab9e7dcba22b134f16593542c3be866db697c2 [weak]
   - MD5Sum:1885878077d7b20fe937a7c169c8dc95 [weak]
   - Filesize:259804 [weak]
  Last modification reported: Fri, 06 Oct 2017 13:37:31 +0000
Fetched 260 kB in 1s (188 kB/s)
E: Failed to fetch http://deb.theforeman.org/pool/plugins/stable/r/ruby-foreman-ansible/ruby-foreman-ansible_1.4.6-1_all.deb  Hash Sum mismatch
   Hashes of expected file:
- SHA512:a676e0f43338e95a99c4a0d3e084782ad6b7d8c00ed7adbf225b3523e115916656d112f81da6ffeb86e59b1f72de72fcd7ce598747d2aa7ac7834b4d4b03a3a8
- SHA256:a3489386b92edf4693acde8a5020cca4c568f0b10e3d19cc37de475e65588019
- SHA1:bc52350a57de84cc9d8c182996d39f1e8507d683 [weak]
- MD5Sum:3f0e3742c2eaf39c040e050758a03da3 [weak]
- Filesize:260196 [weak]
   Hashes of received file:
- SHA512:e669679befec53256b89a4f799f87199c9fae662819e5bdd3b485b1365ca5758fe8a16386e1837662ef6f138f73dae486a51cffc82fa5db813caeeda60849d14
- SHA256:28ee6a1f4ed63806a8c4333d821ce2b478dccdb0d736112bc85e7976b31ffa2a
- SHA1:daab9e7dcba22b134f16593542c3be866db697c2 [weak]
- MD5Sum:1885878077d7b20fe937a7c169c8dc95 [weak]
- Filesize:259804 [weak]
   Last modification reported: Fri, 06 Oct 2017 13:37:31 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 Systemd start for foreman-proxy failed!
journalctl log for foreman-proxy:
-- Logs begin at Wed 2019-01-30 15:39:51 CET, end at Thu 2019-01-31 10:46:55 CET. --
Jan 31 10:45:53 vmnodefor01.lab.ignum.cz systemd[1]: Stopping Foreman Proxy...
Jan 31 10:45:53 vmnodefor01.lab.ignum.cz systemd[1]: Stopped Foreman Proxy.
Jan 31 10:45:53 vmnodefor01.lab.ignum.cz systemd[1]: Starting Foreman Proxy...
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz smart-proxy[19608]: /usr/lib/ruby/vendor_ruby/smart_proxy_dynflow_core/webrick-patch.rb:3: warning: already initialized constant CIPHERS
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz smart-proxy[19608]: /usr/share/foreman-proxy/lib/webrick-patch.rb:3: warning: previous definition of CIPHERS was here
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz smart-proxy[19608]: Running Foreman Ansible Core in non-SCL context
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz smart-proxy[19608]: Errors detected on startup, see log for details. Exiting: settings ansible already registered
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Main process exited, code=exited, status=1/FAILURE
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz systemd[1]: Failed to start Foreman Proxy.
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Unit entered failed state.
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Failed with result 'exit-code'.
Jan 31 10:46:54 vmnodefor01.lab.ignum.cz systemd[1]: Starting Foreman Proxy...
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz smart-proxy[21555]: /usr/lib/ruby/vendor_ruby/smart_proxy_dynflow_core/webrick-patch.rb:3: warning: already initialized constant CIPHERS
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz smart-proxy[21555]: /usr/share/foreman-proxy/lib/webrick-patch.rb:3: warning: previous definition of CIPHERS was here
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz smart-proxy[21555]: Running Foreman Ansible Core in non-SCL context
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz smart-proxy[21555]: Errors detected on startup, see log for details. Exiting: settings ansible already registered
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Main process exited, code=exited, status=1/FAILURE
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz systemd[1]: Failed to start Foreman Proxy.
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Unit entered failed state.
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Failed with result 'exit-code'.

/usr/lib/ruby/vendor_ruby/puppet/provider/service/systemd.rb:162:in `rescue in start'
/usr/lib/ruby/vendor_ruby/puppet/provider/service/systemd.rb:159:in `start'
/usr/lib/ruby/vendor_ruby/puppet/type/service.rb:103:in `block (3 levels) in <module:Puppet>'
/usr/lib/ruby/vendor_ruby/puppet/property.rb:487:in `set'
/usr/lib/ruby/vendor_ruby/puppet/property.rb:561:in `sync'
/usr/lib/ruby/vendor_ruby/puppet/type/service.rb:114:in `sync'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:236:in `sync'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
/usr/lib/ruby/vendor_ruby/kafo/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:30:in `evaluate_with_trigger'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
/usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
/usr/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/usr/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/usr/bin/puppet:5:in `<main>'
 /Stage[main]/Foreman_proxy::Service/Service[foreman-proxy]/ensure: change from stopped to running failed: Systemd start for foreman-proxy failed!
journalctl log for foreman-proxy:
-- Logs begin at Wed 2019-01-30 15:39:51 CET, end at Thu 2019-01-31 10:46:55 CET. --
Jan 31 10:45:53 vmnodefor01.lab.ignum.cz systemd[1]: Stopping Foreman Proxy...
Jan 31 10:45:53 vmnodefor01.lab.ignum.cz systemd[1]: Stopped Foreman Proxy.
Jan 31 10:45:53 vmnodefor01.lab.ignum.cz systemd[1]: Starting Foreman Proxy...
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz smart-proxy[19608]: /usr/lib/ruby/vendor_ruby/smart_proxy_dynflow_core/webrick-patch.rb:3: warning: already initialized constant CIPHERS
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz smart-proxy[19608]: /usr/share/foreman-proxy/lib/webrick-patch.rb:3: warning: previous definition of CIPHERS was here
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz smart-proxy[19608]: Running Foreman Ansible Core in non-SCL context
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz smart-proxy[19608]: Errors detected on startup, see log for details. Exiting: settings ansible already registered
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Main process exited, code=exited, status=1/FAILURE
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz systemd[1]: Failed to start Foreman Proxy.
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Unit entered failed state.
Jan 31 10:45:54 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Failed with result 'exit-code'.
Jan 31 10:46:54 vmnodefor01.lab.ignum.cz systemd[1]: Starting Foreman Proxy...
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz smart-proxy[21555]: /usr/lib/ruby/vendor_ruby/smart_proxy_dynflow_core/webrick-patch.rb:3: warning: already initialized constant CIPHERS
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz smart-proxy[21555]: /usr/share/foreman-proxy/lib/webrick-patch.rb:3: warning: previous definition of CIPHERS was here
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz smart-proxy[21555]: Running Foreman Ansible Core in non-SCL context
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz smart-proxy[21555]: Errors detected on startup, see log for details. Exiting: settings ansible already registered
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Main process exited, code=exited, status=1/FAILURE
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz systemd[1]: Failed to start Foreman Proxy.
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Unit entered failed state.
Jan 31 10:46:55 vmnodefor01.lab.ignum.cz systemd[1]: foreman-proxy.service: Failed with result 'exit-code'.
Installing             Done                                               [100%] [................................................................................................................................]

Solved with:

sed --in-place=.bak "s/^\(require 'foreman_ansible_core'\)/# \1/" \
    /usr/lib/ruby/vendor_ruby/smart_proxy_ansible/api.rb