Giter Club home page Giter Club logo

puppetdb_foreman's Introduction

puppetdb_foreman

Code Climate Gem Version

This is a Foreman plugin to interact with PuppetDB.

It does the following:

  • Disables hosts on PuppetDB after they are deleted in Foreman.
  • Compares nodes in PuppetDB to Hosts in Foreman.
  • Creates Hosts in Foreman from PuppetDB facts.

Feel free to raise issues, ask for features, anything, in the github repository or visit the Foreman support pages.

Compatibility

Foreman Version Plugin Version
>= 1.17 ~> 4.0.0
>= 1.20 ~> 5.0.0
>= 3.1 ~> 6.0.0

Installation:

From packages

Set up the appropriate repository by following these instructions

RPM users can install the tfm-rubygem-puppetdb_foreman (el7) or rubygem-puppetdb_foreman (f24) packages.

deb users can install the ruby-puppetdb-foreman package.

From Rubygems

Add to bundler.d/Gemfile.local.rb as:

gem 'puppetdb_foreman'

then update & restart Foreman:

bundle update

service restart foreman or equivalent

Versioning

puppetdb_foreman uses Semantic Versioning 2.0.0

Usage:

Go to Administer > Settings > PuppetDB and set puppetdb_address with your PuppetDB address, puppetdb_enabled to either true or false if you want to enable or disable PuppetDB integration. Obviously you will need a PuppetDB instance at the address you provide.

Copyright:

Copyright 2013 CERN, Switzerland and various authors

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

puppetdb_foreman's People

Contributors

archanaserver avatar avgerin0s avatar cyberkov avatar derdanne avatar dlobatog avatar edestecd avatar ekohl avatar evgeni avatar fwdit avatar hjensas avatar kamils-ironin avatar laugmanuel avatar mmoll avatar netman2k avatar sathieu avatar stejskalleos avatar timogoebel avatar traylenator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppetdb_foreman's Issues

Deprecated api

2015-11-03 18:08:43,367 WARN [c.p.p.h.server] v2 query API is deprecated and will be removed in an upcoming release. Please upgrade to v3.
2015-11-03 18:08:58,769 WARN [c.p.p.command] command 'deactivate node' version 1 is deprecated, use the latest version
2015-11-03 18:08:58,865 INFO [c.p.p.command] [5e92d230-4837-44cc-acf3-e6016dd04171] [deactivate node] localhost.localdomain

Unable to delete host from puppetDB via foreman

2022-08-10T18:21:58 [I|app|689e8e6f]   Parameters: {"apiv"=>"v2", "id"=>"puppet2.fq.dn"}
2022-08-10T18:24:34 [I|app|41a796ba] Started DELETE "/hosts/puppet2.fq.dn" for nnn.nnn.nnn.nnn at 2022-08-10 18:24:34 +0100
2022-08-10T18:24:34 [I|app|41a796ba]   Parameters: {"authenticity_token"=>"fjNoqGDOU+G8rNiXA7YIlYGsnaXrA9DdqEBWLC3AnL6/UigbAIR21XFDcsBbn6NHCa/iyw3WgcxPq90AE2g7zw==", "id"=>"puppet2.fq.dn"}
2022-08-10T18:24:34 [I|aud|41a796ba] Nic::Managed (80) destroy event on name puppet2.fq.dn
2022-08-10T18:24:34 [I|aud|41a796ba] Host::Base (27) destroy event on name puppet2.fq.dn
2022-08-10T18:24:35 [I|aud|41a796ba] LookupValue (120) destroy event on match fqdn=puppet2.fq.dn
2022-08-10T18:24:35 [I|aud|41a796ba] LookupValue (121) destroy event on match fqdn=puppet2.fq.dn
2022-08-10T18:24:35 [I|aud|41a796ba] LookupValue (122) destroy event on match fqdn=puppet2.fq.dn
2022-08-10T18:24:35 [I|app|41a796ba] Deactivating node in PuppetDB: puppet2.fq.dn
2022-08-10T18:24:35 [W|app|41a796ba] Failed to deactivate node puppet2.fq.dn in PuppetDB: Failed to open TCP connection to localhost:8081 (Permission denied - connect(2) for "localhost" port 8081)
2022-08-10T18:24:35 [I|app|41a796ba] Backtrace for 'Failed to deactivate node puppet2.fq.dn in PuppetDB: Failed to open TCP connection to localhost:8081 (Permission denied - connect(2) for "localhost" port 8081)
2022-08-10T18:24:35 [W|app|41a796ba] Rolling back due to a problem: [#<Orchestration::Task:0x000055699667c730 @name="Deactivating node puppet2.fq.dn in PuppetDB", @id="Deactivating node puppet2.fq.dn in PuppetDB", @status="failed", @priority=60, @action=[#<Host::Managed id: 27, name: "puppet2.fq.dn", last_compile: nil, last_report: nil, updated_at: "2022-08-09 08:04:16", created_at: "2022-05-29 14:13:08", root_pass: nil, architecture_id: 1, operatingsystem_id: 4, ptable_id: 172, medium_id: 15, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 4, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: 1, certname: nil, image_id: nil, organization_id: 1, location_id: 2, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: "build", grub_pass: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: "PXELinux BIOS", initiated_at: "2022-05-30 15:02:51", build_errors: nil>, :delPuppetdb], @created=1660152275.160579, @timestamp=2022-08-10 17:24:35.233047143 UTC>]
2022-08-10T18:24:35 [E|app|41a796ba] Task 'Deactivating node puppet2.fq.dn in PuppetDB' *failed*```

I can connect to port 8081 on localhost

# telnet localhost 8081
Trying ::1...
Connected to localhost.
Escape character is '^]'.
^]
telnet> quit


foreman 3.3.0
katello 4.5.0
foreman_puppet 4.0.1
puppetdb_foreman 5.0.0
puppetdb 7.11.0-1
puppetdb-termini 7.11
openjdk version "1.8.0_322"
OpenJDK Runtime Environment (build 1.8.0_322-b06)
OpenJDK 64-Bit Server VM (build 25.322-b06, mixed mode)

I have even tried to delete the host using hammer but no luck. If you need any further information please let me know.

3.1.1 not starting up

2017-08-30T14:11:32 2bfa4e39 [app] [I] Completed 500 Internal Server Error in 126ms (Views: 3.3ms | ActiveRecord: 4.7ms)
2017-08-30T14:11:32 280827f6 [app] [I] Started GET "/settings" for 2a00:cb0:8002:1055:6af7:28ff:fec1:b973 at 2017-08-30 14:11:32 +0200
2017-08-30T14:11:32 280827f6 [app] [I] Processing by SettingsController#index as HTML
2017-08-30T14:11:32 280827f6 [app] [I] Current user: mmoll (administrator)
2017-08-30T14:11:32 280827f6 [app] [I]   Rendered settings/category/_email.html.erb (0.7ms)
2017-08-30T14:11:32 280827f6 [app] [I]   Rendered settings/index.html.erb within layouts/application (161.4ms)
2017-08-30T14:11:32 280827f6 [app] [W] Action failed
| NameError: uninitialized constant PuppetDB
| /usr/share/foreman/vendor/ruby/2.3.0/gems/puppetdb_foreman-3.1.1/app/models/setting/puppetdb.rb:34:in `block in default_settings'
| /usr/share/foreman/app/models/setting.rb:269:in `block (2 levels) in set'
| /usr/share/foreman/app/helpers/settings_helper.rb:7:in `value'
| /usr/share/foreman/app/views/settings/index.html.erb:30:in `block (2 levels) in _693c7dd7edb049ca322cd91a6fdc4573'
| /usr/share/foreman/app/views/settings/index.html.erb:27:in `each'
| /usr/share/foreman/app/views/settings/index.html.erb:27:in `block in _693c7dd7edb049ca322cd91a6fdc4573'
| /usr/share/foreman/app/views/settings/index.html.erb:15:in `each'
| /usr/share/foreman/app/views/settings/index.html.erb:15:in `_693c7dd7edb049ca322cd91a6fdc4573'

Import from puppetdb overwrites hosts

Hi,

it seems that i am hitting issue with importing hosts from puppetdb.

I have installed foreman, version 1.18 with puppetdb plugin 4.0 and external puppetdb 2.3.8. I was trying to import hosts from ext puppetdb to foreman.

First host import seems to run ok - i can see host in foreman host list. But second host import overwrites the first one in foreman.

Do you have any idea what can cause this ?

Thank you for reply

Feature: importing facts

I'm not sure if it's possible, but for now we run a cron job every hour to import the puppet facts into foreman using the command:

/usr/sbin/foreman-rake puppet:import:hosts_and_facts

But I guess this must be possible in a way by importing those facts directly from the puppetdb or am I wrong about this?

Disable node on rename?

Wondering if it's possible to have this plugin disable a node when it's renamed in Foreman (its old name). Sort of on the line of the DHCP, DNS functionalities that update the other services after a host is renamed.

Recently had an issue where a number of physical hosts were renamed in Foreman and then rebuilt. PuppetDB still held the old names along with all their exports -- which didn't make our monitoring system (fed from puppet) happy trying to monitor 2 separate hosts with the same IP address.

Puppetdb_dashboard_address doesnt work

Hi,

Ive just followed your instructions for enabled the plugin but i got a problem, it seems a bug. I can see the puppetdb dashboard on my foreman. On foreman settings section, puppetdb_dashboard_address variable which i setup on my settings.yml, isnt there. Any suggestions?¿

Cheers

3.1.2 fails to start - wrong number of arguments (6 for 3..5) (ArgumentError)

  • CentOS 7
  • foreman-1.11.2-1.el7

With tfm-rubygem-puppetdb_foreman-3.0.2-1 foreman starts okay but there is however no
options in the settings to set api_version of PDB.

With tfm-rubygem-puppetdb_foreman-3.1.2-1 foreman fails to start and reports.

wrong number of arguments (6 for 3..5) (ArgumentError)
  /usr/share/foreman/app/models/setting.rb:272:in `set'
  /opt/theforeman/tfm/root/usr/share/gems/gems/puppetdb_foreman-3.1.2/app/models/setting/puppetdb.rb:34:in `default_settings'
  /opt/theforeman/tfm/root/usr/share/gems/gems/puppetdb_foreman-3.1.2/app/models/setting/puppetdb.rb:43:in `block in load_defaults'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:208:in `transaction'
  /opt/theforeman/tfm/root/usr/share/gems/gems/puppetdb_foreman-3.1.2/app/models/setting/puppetdb.rb:42:in `load_defaults'
  /usr/share/foreman/config/initializers/foreman.rb:21:in `each'
  /usr/share/foreman/config/initializers/foreman.rb:21:in `<top (required)>'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `load'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `block in load'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:241:in `load'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/engine.rb:648:in `block in load_config_initializer'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications.rb:161:in `instrument'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/engine.rb:647:in `load_config_initializer'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/engine.rb:611:in `each'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `instance_exec'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `run'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:55:in `block in run_initializers'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:in `block in tsort_each'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:420:in `block (2 levels) in each_strongly_connected_component_from'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:in `each_strongly_connected_component_from'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:419:in `block in each_strongly_connected_component_from'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:44:in `each'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:44:in `tsort_each_child'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:413:in `call'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:413:in `each_strongly_connected_component_from'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in `block in each_strongly_connected_component'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `call'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each_strongly_connected_component'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in `tsort_each'
  /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:in `tsort_each'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:54:in `run_initializers'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:300:in `initialize!'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `public_send'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `method_missing'
  /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
  /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
  /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
  config.ru:3:in `block in <main>'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
  /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `eval'
  /usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `preload_app'
  /usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in `<module:App>'
  /usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/share/gems/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `<main>'

SSL_connect returned=1 errno=0 state=error: dh key too small

Hi,

I am installing Foreman 2.1 with Puppetsever 6.11 and PuppetDB 6.10. They are all on one machine which is a RedHat 8.2.

Foreman, puppetserver and PuppetDB all install fine. "puppet agent -t" is successful.

Then I install foreman puppetdb plugin:

    # gedit /etc/foreman-installer/scenarios.d/foreman-answers.yaml
        puppetdb plug in: true

    # foreman-installer --foreman-initial-admin-password=admin -i -v

The install finished fine. And I log on to Foreman console, go to Administer > Settings > PuppetDB and set puppetdb_address with my PuppetDB address.

Everything seems fine. However, when I click on Foreman console left side "Monitor" -> "PuppetDB Nodes", got error:

"Oops, we're sorry but something went wrong SSL_connect returned=1 errno=0 state=error: dh key too small"

Please advise.

Thanks,
Zaiwen

Foremn throws error when accessing puppet classes from puppetdb

OS CentOS 8.1
[root@puppetdb ~]# java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)

foreman version: 1.24.2, OS CentOS 7.7

The error in foreman:
"Oops, we're sorry but something went wrong SSL_connect returned=1 errno=0 state=error: tlsv1 alert internal error"
Foreman trace:

OpenSSL::SSL::SSLError
SSL_connect returned=1 errno=0 state=error: tlsv1 alert internal error
/opt/rh/rh-ruby25/root/usr/share/ruby/net/protocol.rb:44:in `connect_nonblock'
/opt/rh/rh-ruby25/root/usr/share/ruby/net/protocol.rb:44:in `ssl_socket_connect'
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:985:in `connect'
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:920:in `do_start'
/opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:909:in `start'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/resource.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/puppetdb_foreman-5.0.0/app/services/puppetdb_client/base.rb:51:in `get'
/opt/theforeman/tfm/root/usr/share/gems/gems/puppetdb_foreman-5.0.0/app/services/puppetdb_client/base.rb:29:in `resources'
/opt/theforeman/tfm/root/usr/share/gems/gems/puppetdb_foreman-5.0.0/app/controllers/puppetdb_foreman/nodes_controller.rb:16:in `show'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb:15:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/conditional_get.rb:25:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
/usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
/usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:68:in `block in call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `call'
/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
/usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context' 

Errors on puppetdb side:

javax.net.ssl.SSLHandshakeException: DHPublicKey does not comply to algorithm constraints
	at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1521)
	at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:528)
	at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:802)
	at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:766)
	at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
	at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:578)
	at org.eclipse.jetty.server.HttpConnection.fillRequestBuffer(HttpConnection.java:340)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:250)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:427)
	at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:321)
	at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
	at java.lang.Thread.run(Thread.java:748)
Caused by: javax.net.ssl.SSLHandshakeException: DHPublicKey does not comply to algorithm constraints
	at sun.security.ssl.DHCrypt.checkConstraints(DHCrypt.java:237)
	at sun.security.ssl.ServerHandshaker.clientKeyExchange(ServerHandshaker.java:1681)
	at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:276)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)
	at sun.security.ssl.Handshaker$1.run(Handshaker.java:970)
	at sun.security.ssl.Handshaker$1.run(Handshaker.java:967)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1459)
	at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:527)
	... 17 common frames omitted

undefined local variable or method `queue' in app/models/concerns/orchestration/puppetdb.rb

I get the follwoing produced from app/models/concerns/orchestration/puppetdb.rb when i try to delete a host in foreman.

2018-10-16T18:27:44 [I|app|] Started DELETE "/hosts/foobar.example.com" for 10.10.0.10 at 2018-10-16 18:27:44 +0100
2018-10-16T18:27:44 [I|app|d8dde] Processing by HostsController#destroy as HTML
2018-10-16T18:27:44 [I|app|d8dde]   Parameters: {"authenticity_token"=>"oKM11C2H6srdPaaabRoJtw9nBxmqFTc4GzbnDEn8ZVXqwT/Hg/PD4490Ln7HbK4gs+cNd7HRyRCbOAv5AuFXyA==", "id"=>"foobar.example.com"}
2018-10-16T18:27:44 [I|app|d8dde] Current user set to admin (admin)
2018-10-16T18:27:44 [I|aud|d8dde] destroy event for Nic::Bond with id 6145
2018-10-16T18:27:44 [I|aud|d8dde] destroy event for Nic::Managed with id 6146
2018-10-16T18:27:44 [I|aud|d8dde] destroy event for Nic::Managed with id 6144
2018-10-16T18:27:44 [I|aud|d8dde] destroy event for Nic::Managed with id 6147
2018-10-16T18:27:44 [I|aud|d8dde] destroy event for Host::Base with id 795
2018-10-16T18:27:44 [W|not|d8dde] Invalid owner for foobar.example.com, unable to send notifications
2018-10-16T18:27:44 [I|app|] Started GET "/notification_recipients" for 10.10.10.10 at 2018-10-16 18:27:44 +0100
2018-10-16T18:27:44 [I|app|8b686] Processing by NotificationRecipientsController#index as JSON
2018-10-16T18:27:44 [I|app|8b686] Current user set to admin (admin)
2018-10-16T18:27:44 [I|app|8b686] Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 4.1ms)
2018-10-16T18:27:44 [W|app|d8dde] Action failed
 | NameError: undefined local variable or method `queue' for #<Host::Managed:0x006ea85bfc9168>
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activemodel-5.1.6/lib/active_model/attribute_methods.rb:432:in `method_missing'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/auditor.rb:99:in `method_missing'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/puppetdb_foreman-4.0.0/app/models/concerns/orchestration/puppetdb.rb:13:in `queue_puppetdb_destroy'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:413:in `block in make_lambda'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:197:in `block (2 levels) in halting'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:601:in `block (2 levels) in default_terminator'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:600:in `catch'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:600:in `block in default_terminator'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:198:in `block in halting'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:507:in `block in invoke_before'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:507:in `each'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:507:in `invoke_before'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:130:in `run_callbacks'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:827:in `_run_destroy_callbacks'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/callbacks.rb:321:in `destroy'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb:303:in `block in destroy'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb:384:in `block in with_transaction_returning_status'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
 | /usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb:210:in `transaction'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb:381:in `with_transaction_returning_status'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb:303:in `destroy'
 | /usr/share/foreman/app/controllers/hosts_controller.rb:134:in `destroy'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/abstract_controller/base.rb:186:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_controller/metal/rendering.rb:30:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
 | /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/audited-4.8.0/lib/audited/sweeper.rb:14:in `around'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:135:in `run_callbacks'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/abstract_controller/callbacks.rb:19:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_controller/metal/rescue.rb:20:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/notifications.rb:166:in `block in instrument'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/notifications.rb:166:in `instrument'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activerecord-5.1.6/lib/active_record/railties/controller_runtime.rb:22:in `process_action'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/abstract_controller/base.rb:124:in `process'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-5.1.6/lib/action_view/rendering.rb:30:in `process'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_controller/metal.rb:189:in `dispatch'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_controller/metal.rb:253:in `dispatch'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/routing/route_set.rb:31:in `serve'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:33:in `each'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:33:in `serve'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/routing/route_set.rb:844:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.10/lib/apipie/static_dispatcher.rb:65:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.10/lib/apipie/extractor/recorder.rb:136:in `call'
 | /usr/share/foreman/lib/middleware/telemetry.rb:9:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.10/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/etag.rb:25:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/conditional_get.rb:38:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/head.rb:12:in `call'
 | /usr/share/foreman/lib/middleware/logging_context.rb:23:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:232:in `context'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:226:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/cookies.rb:613:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:97:in `run_callbacks'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/callbacks.rb:24:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.6/lib/rails/rack/logger.rb:36:in `call_app'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.6/lib/rails/rack/logger.rb:26:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/request_id.rb:25:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/method_override.rb:22:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/runtime.rb:22:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/executor.rb:12:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/static.rb:125:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/sendfile.rb:111:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/secure_headers-5.0.5/lib/secure_headers/middleware.rb:13:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:522:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `public_send'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `method_missing'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:68:in `block in call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `each'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `call'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/rack-2.0.5/lib/rack/handler/webrick.rb:86:in `service'
 | /usr/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
 | /usr/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
 | /usr/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
 | /usr/share/foreman/vendor/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2018-10-16T18:27:44 [I|app|d8dde]   Rendering common/500.html.erb within layouts/application
2018-10-16T18:27:44 [I|app|d8dde]   Rendered common/500.html.erb within layouts/application (2.0ms)
2018-10-16T18:27:44 [I|app|d8dde]   Rendered layouts/_application_content.html.erb (1.4ms)
2018-10-16T18:27:44 [I|app|d8dde]   Rendering layouts/base.html.erb
2018-10-16T18:27:44 [I|app|d8dde]   Rendered layouts/base.html.erb (1.9ms)
2018-10-16T18:27:44 [I|app|d8dde] Completed 500 Internal Server Error in 490ms (Views: 7.2ms | ActiveRecord: 193.0ms)

Any reason why? Or is a known bug? As its affecting my puppetdb integration as of now.

Ability to view node classes and types

We should add the ability to view information about a node/host's puppet classes and types.

The use should be able to view this for individual nodes listed under /puppetdb_foreman/nodes and for individual host's already in foreman.

Publish gem on rubygems.org

I was wondering if you had any intentions of publishing this on rubygems.org? Since foreman switched to bundler_ext, the previous method of installation using bundler with a git link doesn't seem to work anymore.

Plugin does not work with foreman 1.10.0-RC1

When using this plugin with foreman 1.10.0-RC1 foreman throws the following error when deleting a host:

NameError
undefined local variable or method `deactivate_host' for #<Host::Managed:0x007efe09dc57e0>
/opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/attribute_methods.rb:407:in `method_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods.rb:149:in `method_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:627:in `_run__565674253306644238__destroy__1561125832317975167__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_destroy_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:254:in `destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:236:in `block in destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:236:in `destroy'
/usr/share/foreman/app/controllers/hosts_controller.rb:115:in `destroy'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:649:in `block (4 levels) in _run__2204052158287813994__process_action__2386563495540612759__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7736'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in `around'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in `_callback_around_2485'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7736'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:626:in `block (3 levels) in _run__2204052158287813994__process_action__2386563495540612759__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7735'
/usr/share/foreman/app/controllers/concerns/application_shared.rb:13:in `set_timezone'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7735'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:625:in `block (2 levels) in _run__2204052158287813994__process_action__2386563495540612759__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7734'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7734'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:448:in `block in _run__2204052158287813994__process_action__2386563495540612759__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_7733'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in `around'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in `_callback_around_13'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_7733'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in `_run__2204052158287813994__process_action__2386563495540612759__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in `block in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in `instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in `process'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in `process'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:in `block in action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/head.rb:14:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/flash.rb:242:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/cookies.rb:339:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/query_cache.rb:64:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `_run__1901498099502570252__call__1561125832317975167__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:26:in `call_app'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/rack/logger.rb:16:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/static.rb:62:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in `invalidate'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in `call!'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:479:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:223:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:134:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in `block in call'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `call'
/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
/usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

Any idea or hint why this may be happening?

LICENSE and README docs missing from gem

The gem should contain the LICENSE file at a minimum, but preferably also the README.md for additional documentation. Currently it only contains app/lib etc.

Foreman 1.12 won't start after installing puppetdb_foreman plugin.

Hi,

I am trying to install the PuppetDB_Foreman Plugin on my environment but Foreman won't load if plugin is installed.

RHEL 6
Foreman 1.12
Installation:

yum install tfm-rubygem-puppetdb_foreman

Installed:
tfm-rubygem-puppetdb_foreman.noarch 0:2.0.0-1.fm1_12.el6

after running: service foreman restart I get an exception ->

Web application could not be started

some permissions were not found (ArgumentError)
/usr/share/foreman/app/models/role.rb:122:in add_permissions' /usr/share/foreman/app/models/role.rb:137:in add_permissions!'
/usr/share/foreman/app/services/foreman/plugin.rb:235:in block in role' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in block in transaction'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in within_new_transaction' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in transaction'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:220:in transaction' /usr/share/foreman/app/services/foreman/plugin.rb:233:in role'
/opt/theforeman/tfm/root/usr/share/gems/gems/puppetdb_foreman-2.0.0/lib/puppetdb_foreman/engine.rb:14:in block (2 levels) in <class:Engine>' /usr/share/foreman/app/services/foreman/plugin.rb:64:in instance_eval'
/usr/share/foreman/app/services/foreman/plugin.rb:64:in register' /opt/theforeman/tfm/root/usr/share/gems/gems/puppetdb_foreman-2.0.0/lib/puppetdb_foreman/engine.rb:9:in block in class:Engine'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in instance_exec' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in run'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in block in run_initializers' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:in block in tsort_each'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in block (2 levels) in each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:in each_strongly_connected_component_from'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in block in each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in each'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in call' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in each_strongly_connected_component'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in tsort_each' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:in tsort_each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in run_initializers' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:352:in initialize!'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in public_send' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in method_missing'
/usr/share/foreman/config/environment.rb:5:in <top (required)>' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in require'
/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in require' config.ru:3:in block in

'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/builder.rb:55:in instance_eval' /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/builder.rb:55:in initialize'
config.ru:1:in new' config.ru:1:in '
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in eval' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in preload_app'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in <module:App>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in module:PhusionPassenger'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `'
Application root
/usr/share/foreman

Any Ideas?

Thanks!

Andre

Still being maintained?

Is this still being maintained? And will there be support added for Foreman version 2+? Thanks

database columns potentially out of sync with foreman 3.4

When I attempted to setup a new Foreman(3.4.0) instance with puppetdb_foreman (v5.0.0-4). The database migration and seeding fail with a few missing columns:

  • description
  • full_name
  • encrypted
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): rake aborted!
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): ActiveModel::UnknownAttributeError: unknown attribute 'descrip
tion' for Setting::Puppetdb.
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activemodel-6.1.6.1/
lib/active_model/attribute_assignment.rb:51:in `_assign_attribute'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1
/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1
/lib/active_record/attribute_assignment.rb:13:in `each'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1
/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activemodel-6.1.6.1/
lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1
/lib/active_record/core.rb:518:in `initialize'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1
/lib/active_record/inheritance.rb:72:in `new'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1
/lib/active_record/inheritance.rb:72:in `new'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1
/lib/active_record/persistence.rb:54:in `create!'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/puppetdb_foreman-5.0
.0/app/models/setting/puppetdb.rb:40:in `block (2 levels) in load_defaults'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/puppetdb_foreman-5.0
.0/app/models/setting/puppetdb.rb:40:in `each'
2022-09-09 13:15:03 -0400 /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns (notice): /usr/share/foreman/vendor/ruby/2.7.0/gems/puppetdb_foreman-5.0
.0/app/models/setting/puppetdb.rb:40:in `block in load_defaults'

These fields appear to be removed in 20220124174632_drop_setting_fields.rb.

Can't import host to foreman

I'm trying this plugin.
My puppetdb server is version 5.2.4.
Dashboard is working and puppetdb nodes are displayed, but in this window, I can delete hosts, but I can't import them into foreman. When I try to import a host I get:

Failed to import host from PuppetDB: wrong number of arguments (given 1, expected 2)

I have foreman 1.16.0 and puppetdb plugin installed from packages (version 3.1.2-1).
My configuration is:

Foreman reports are broken since i've installed puppetdb_foreman

Hi,

Nightly cron doesn't send reports anymore since I've installed puppetdb_foreman.
Here is the output with --trace :

$ export RAILS_ENV=production; export FOREMAN_HOME=/usr/share/foreman; cd ${FOREMAN_HOME} && bundle exec /usr/bin/rake --trace reports:summarize
(in /usr/share/foreman)
rake aborted!
uninitialized constant Rake::DSL
/usr/share/foreman/vendor/ruby/1.8/gems/foreman_hooks-0.3.2/lib/foreman_hooks.rb:75:in load_missing_constant'
/usr/share/foreman/Rakefile:3
/usr/lib/ruby/1.8/rake.rb:2383:inload'
/usr/lib/ruby/1.8/rake.rb:2383:in raw_load_rakefile'
/usr/lib/ruby/1.8/rake.rb:2017:inload_rakefile'
/usr/lib/ruby/1.8/rake.rb:2068:in standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:2016:inload_rakefile'
/usr/lib/ruby/1.8/rake.rb:2000:in run'
/usr/lib/ruby/1.8/rake.rb:2068:instandard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28

Here is my environment :

I've already post an issue on https://github.com/domcleal/foreman_hooks/issues/10 but it doesn't seem to be related to foreman_hooks project.

Thanks for your help.

can't view puppetdb dashboard inside foreman, as template is missing

hi,

i get following message inside 1.17-rc2 as i try to view the puppetdb-dashboard:

Missing template puppetdb_foreman/puppetdb/index, application/index with {:locale=>[:de, :en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :rabl]}. 
Searched in: * "/usr/share/foreman/app/views" * "/usr/share/foreman/vendor/ruby/2.3.0/gems/puppetdb_foreman-4.0.0/app/views" * "/usr/share/foreman/vendor/ruby/2.3.0/gems/apipie-rails-0.5.6/app/views" 

foreman is installed on a deb9 machine.

KR
David

Unable to upgrade to foreman 3.4 with 6.0.0 version

With 6.0.0 release, i gave a new try in upgrading foreman to 3.4 version.

foreman-rake db:migrate succeeds with no errors, but running foreman-installer fails :

2022-10-26 10:44:03 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-10-26 10:44:08 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-10-26 10:44:08 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-10-26 10:44:15 [NOTICE] [configure] Starting system configuration.
2022-10-26 10:44:22 [NOTICE] [configure] 250 configuration steps out of 774 steps complete.
2022-10-26 10:44:23 [NOTICE] [configure] 500 configuration steps out of 778 steps complete.
2022-10-26 10:45:21 [ERROR ] [configure] Execution of '/usr/sbin/foreman-rake -- config -k 'puppetdb_enabled' -v 'true'' returned 1: rake aborted!
2022-10-26 10:45:21 [ERROR ] [configure] ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'Setting::Puppetdb'. This error is raised because the column 'category' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Setting.inheritance_column to use another column for that information.
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:182:in `rescue in sti_class_for'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:175:in `sti_class_for'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:259:in `find_sti_class'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:247:in `discriminate_class_for_record'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:257:in `instantiate'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `block (2 levels) in find_by_sql'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `block in each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `map'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `block in find_by_sql'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:61:in `find_by_sql'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:843:in `block in exec_queries'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:861:in `skip_query_cache_if_necessary'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:828:in `exec_queries'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:631:in `load'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:249:in `records'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:524:in `find_take'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:98:in `take'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:81:in `find_by'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:22:in `find_by'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:350:in `find_by'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/app/services/setting_registry.rb:178:in `_find_or_new_db_record'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/app/services/setting_registry.rb:82:in `set_user_value'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:111:in `block in run_key_values'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:100:in `each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:100:in `run_key_values'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:77:in `run'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:165:in `block in <top (required)>'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
2022-10-26 10:45:21 [ERROR ] [configure]
2022-10-26 10:45:21 [ERROR ] [configure] Caused by:
2022-10-26 10:45:21 [ERROR ] [configure] NameError: uninitialized constant Setting::Puppetdb
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/foreman_hooks-0.3.17/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:301:in `const_get'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:301:in `block in constantize'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:284:in `each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:284:in `inject'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:284:in `constantize'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:177:in `sti_class_for'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:259:in `find_sti_class'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:247:in `discriminate_class_for_record'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:257:in `instantiate'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `block (2 levels) in find_by_sql'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `block in each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `map'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `block in find_by_sql'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:61:in `find_by_sql'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:843:in `block in exec_queries'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:861:in `skip_query_cache_if_necessary'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:828:in `exec_queries'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:631:in `load'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:249:in `records'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:524:in `find_take'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:98:in `take'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:81:in `find_by'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:22:in `find_by'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:350:in `find_by'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/app/services/setting_registry.rb:178:in `_find_or_new_db_record'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/app/services/setting_registry.rb:82:in `set_user_value'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:111:in `block in run_key_values'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:100:in `each'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:100:in `run_key_values'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:77:in `run'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/foreman/lib/tasks/config.rake:165:in `block in <top (required)>'
2022-10-26 10:45:21 [ERROR ] [configure] /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
2022-10-26 10:45:21 [ERROR ] [configure] Tasks: TOP => config
2022-10-26 10:45:21 [ERROR ] [configure] (See full trace by running task with --trace)
2022-10-26 10:45:21 [ERROR ] [configure] /Stage[main]/Foreman::Plugin::Puppetdb/Foreman_config_entry[puppetdb_enabled]/value: change from 'false' to 'true' failed: Execution of '/usr/sbin/foreman-rake -- config -k 'puppetdb_enabled' -v 'true'' returned 1: rake aborted!
2022-10-26 10:45:21 [ERROR ] [configure] ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'Setting::Puppetdb'. This error is raised because the column 'category' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Setting.inheritance_column to use another column for that information.

rubygem-puppetdb_foreman.noarch breaks foreman-rake

I got the following:
Foreman 3.6.1 running on AlmaLinux 8.7 (CentOS 8 variant)
installed puppetdb via packages:

# rpm -qa | grep puppetdb
puppetdb-7.13.0-1.el8.noarch
puppetdb-termini-7.13.0-1.el8.noarch

puppet agent works with puppetdb.

But after installing the puppetdb-plugin for foreman with "dnf install rubygem-puppetdb_foreman.noarch", the forman-installer fails, especially foreman-rake:

2023-04-20 13:26:10 [ERROR ] [configure] '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
2023-04-20 13:26:10 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from 'notrun' to ['0'] failed: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
2023-04-20 13:26:15 [NOTICE] [configure] 1000 configuration steps out of 1244 steps complete.
2023-04-20 13:26:17 [NOTICE] [configure] System configuration has finished.

  There were errors detected during install.
  Please address the errors and re-run the installer to ensure the system is properly configured.
  Failing to do so is likely to result in broken functionality.

  The full log is at /var/log/foreman-installer/foreman.log

foreman.log:

# grep ERROR /var/log/foreman-installer/foreman.log
2023-04-20 13:25:44 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-04-20 13:25:52 [DEBUG ] [configure] -D DEFAULT_ERRORLOG="logs/error_log"
2023-04-20 13:26:10 [INFO  ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: PG::UndefinedColumn: ERROR:  column settings.category does not exist
2023-04-20 13:26:10 [INFO  ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR:  column settings.category does not exist
2023-04-20 13:26:10 [INFO  ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: PG::UndefinedColumn: ERROR:  column settings.category does not exist
2023-04-20 13:26:10 [ERROR ] [configure] '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
2023-04-20 13:26:10 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from 'notrun' to ['0'] failed: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]

foreman-rake db:migrate:status shows:

# foreman-rake db:migrate:status

database: foreman

 Status   Migration ID    Migration Name
--------------------------------------------------
   up     20090714132448  Create hosts
   up     20090714132449  Add audits table
   up     20090715143858  Create architectures
   up     20090717025820  Create media
   up     20090718060746  Create domains
   up     20090718064254  Create subnets
   up     20090720134126  Create operatingsystems
   up     20090722140138  Create models
   up     20090722141107  Create environmentsforeman puppet
   up     20090729132209  Create reports
   up     20090730152224  Create ptables
   up     20090802062223  Create puppetclassesforeman puppet
   up     20090804130144  Create parameters
   up     20090820130541  Create auth sources
   up     20090905150131  Create hostgroups
   up     20090905150132  Create hostgroups puppetclassesforeman puppet
   up     20090905155444  Add type to parameter
   up     20090907045751  Add domain to parameter
   up     20090916053824  Change host build default to false
   up     20090920043521  Add index to host
   up     20090920064156  Add index to parameters
   up     20090920065522  Add index to reports
   up     20091012135004  Create users
   up     20091016031017  Create sessions
   up     20091022054108  Add status to report
   up     20091219132338  Create lookup keys
   up     20091219132839  Create lookup values
   up     20100310080727  Add family to os
   up     20100414125652  Add releasename to os
   up     20100416124600  Create usergroups
   up     20100419151910  Add owner to hosts
   up     20100523141204  Create media operatingsystems and migrate data
   up     20100525094200  Simplify parameters
   up     20100601221000  Update os minor
   up     20100616114400  Change family in os
   up     20100625155400  Create notices
   up     20100628123400  Add internal auth
   up     20100629093200  Create roles
   up     20100701081235  Add user domains and hostgroups
   up     20100822072954  Create user facts
   up     20100823181036  Add enabled to hosts
   up     20100914092104  Add my booleans to user
   up     20101018120548  Create messages
   up     20101018120603  Create sources
   up     20101018120621  Create logs
   up     20101019122857  Add metrics to report
   up     20101019183859  Convert reports
   up     20101103150254  Add owned filter to user
   up     20101118130026  Correct media
   up     20101121080425  Create config templates
   up     20101121135521  Create template combinations
   up     20101121140000  Add environment to template combinationsforeman puppet
   up     20101122132041  Create operatingsystems config templates
   up     20101123152150  Create template kinds
   up     20101123153303  Create os default templates
   up     20101130093613  Add sub systems to subnet
   up     20101130100315  Create proxies
   up     20101202104444  Add proxy to domain
   up     20110117162722  Add host group defaults
   up     20110213104226  Create proxy features
   up     20110216101848  Change puppetmaster column
   up     20110301154453  Add managed to hosts
   up     20110327123639  Add priority to parameter
   up     20110404150043  Add media path to medium
   up     20110407091150  Add image to host
   up     20110412103238  Remove unused fields from puppet classesforeman puppet
   up     20110417102947  Add table bookmarks
   up     20110616080444  Add look up key id to puppet class
   up     20110617190131  Add sparc info to model
   up     20110619130336  Add ancestry to hostgroup
   up     20110628115422  Create settings
   up     20110712070522  Create host classforeman puppet
   up     20110801090318  Add vm defaults to hostgroup
   up     20110803114134  Add subnet and domain to host groups
   up     20111124095053  Rename changes to audited changes
   up     20111124095054  Add remote address to audits
   up     20111124095055  Rename parent to association
   up     20111205231500  Add gateway and dns to subnets
   up     20120102071633  Add from and to ranges to subnets
   up     20120110113051  Create subnet domain
   up     20120122131037  Create compute resources
   up     20120126113850  Add uuid and compute id to host
   up     20120311081257  Create nics
   up     20120313081913  Add puppet master proxy to host and host group
   up     20120502105518  Update report field to large int
   up     20120506143325  Create images
   up     20120509131302  Add cert name to host
   up     20120510113417  Create key pairs
   up     20120521142924  Add dns id to subnet
   up     20120523065531  Add image id to host
   up     20120529113900  Add user compute resources
   up     20120529115814  Add compute resources boolean to user
   up     20120607074318  Convert params to text
   up     20120612070100  Change bookmark column to text
   up     20120613082125  Rename association to associated
   up     20120621135042  Create taxonomies
   up     20120624081510  Add auditable name and associated name to audit
   up     20120624093958  Add os family to media
   up     20120624094034  Add os family to ptable
   up     20120705130038  Add attributes to compute resources
   up     20120824142048  Add some indexesforeman puppet
   up     20120905095532  Create environment classesforeman puppet
   up     20120905131841  Add lookup keys override and required
   up     20120916080843  Add lookup values count to lookup keys
   up     20120921000313  Add iam role to images
   up     20120921105349  Create tokens
   up     20121003172526  Add taxonomy ids to hosts
   up     20121011115320  Change domain character count
   up     20121015113502  Update media path limit
   up     20121018152459  Create hostgroup classesforeman puppet
   up     20121101141448  Add locations organizations
   up     20121118120028  Migrate hypervisors to compute resources
   up     20121118125341  Create taxable taxonomies
   up     20121119102104  Add my taxonomy to user
   up     20121210214810  Add subscribe to all hostgroups to users
   up     20121218084123  Change smart variable length
   up     20130109155024  Add ignore types to taxonomy
   up     20130121130826  Add digest to messages
   up     20130211160200  Add sti to hosts
   up     20130228145456  Add digest to sources
   up     20130409081924  Add label to host group
   up     20130417110127  Add sti to settings
   up     20130419145808  Add id to user hostgroup
   up     20130430150500  Add locale to users
   up     20130520161514  Add unique constraint to fact name
   up     20130523131455  Add unique constraints to fact values
   up     20130530061844  Change column lengths
   up     20130804131949  Add public to key pairs
   up     20130813105054  Change compute resource password to text
   up     20130814132531  Add ldap filter to auth sources
   up     20130908170524  Add keys
   up     20130924145800  Remove unused role fields
   up     20131014133347  Add compose flag and short name to fact name
   up     20131017142515  Allow null values on fact value
   up     20131021125612  Add type to fact name
   up     20131021152315  Change name index on fact name
   up     20131107094849  Add ancestry to fact names
   up     20131114084718  Extend user role
   up     20131114094841  Create cached user roles
   up     20131122170726  Create cached usergroup members
   up     20131125230654  Create realms
   up     20131128150357  Add admin flag to usergroup
   up     20131202120621  Create permissions
   up     20131202131847  Create filters
   up     20131202144415  Create filterings
   up     20131204174455  Add description to operatingsystem
   up     20131212125626  Add ldap avatar support
   up     20131223120945  Add userdata flag to images
   up     20131224153518  Create compute profiles
   up     20131224153743  Create compute attributes
   up     20131224154836  Add compute profile to hostgroup
   up     20140110164135  Add foreign keys to filters and filterings
   up     20140115130443  Add password to images
   up     20140123185537  Add default organization id to users
   up     20140123194519  Add default location id to users
   up     20140128123153  Add ancestry to taxonomies
   up     20140219183342  Change label to title
   up     20140219183345  Add taxonomy searches to filter
   up     20140304184854  Add provision method to hosts
   up     20140314004243  Add counter caches
   up     20140318221513  Change host managed default to false
   up     20140320000449  Add server type to auth source
   up     20140320004050  Add groups base to auth source
   up     20140325093623  Add lowerlogin to users
   up     20140407161817  Create config groupsforeman puppet
   up     20140407162007  Create config group classesforeman puppet
   up     20140407162059  Create host config groupsforeman puppet
   up     20140409031625  Create external usergroups
   up     20140410134234  Remove subscribe to all hostgroups from users
   up     20140415052549  Cleanup users properties
   up     20140415053029  Remove user join tables
   up     20140522122215  Add hidden value to parameter
   up     20140630114339  Add boot mode to subnet
   up     20140705173549  Add locked and default and vendor to config template
   up     20140707113214  Remove architecture default
   up     20140710132249  Extract nic attributes
   up     20140711142510  Add attributes to nic base
   up     20140716102950  Add managed to nics
   up     20140716140436  Change auditable name column to text
   up     20140725101621  Add primary interface to hosts
   up     20140728190218  Add ip suggestion to subnets
   up     20140805114754  Add unique index to parameter
   up     20140826104209  Add merge overrides and avoid duplicates to lookup key
   up     20140901115249  Add request uuid to audits
   up     20140902102858  Convert ipam to string
   up     20140908192300  Change nil admin users to false
   up     20140910111148  Add bond attributes to nic base
   up     20140910153654  Move host nics to interfaces
   up     20140912113254  Add password hash to operatingsystem
   up     20140912114124  Add grub password to hosts
   up     20140912145052  Add grub password to hostgroup
   up     20140915141937  Add should use puppet default to lookup value and key
   up     20140928131124  Add title to os
   up     20140928140206  Create widgets
   up     20140929073150  Create mail notifications
   up     20140929073343  Create user mail notifications
   up     20140930201523  Add mail enabled to user
   up     20141014131912  Add subscription type to mail notifications
   up     20141023114229  Add timezone to user
   up     20141112165600  Add type to parameter index
   up     20141116131324  Add mail query to user mail notification
   up     20141117093914  Add queryable to mail notification
   up     20141120140051  Remove audit user fk
   up     20141124055509  Rename smart proxy auth related settings
   up     20141217101211  Add compute attributes to nics
   up     20141225073211  Add description to taxonomies
   up     20150127085513  Set ptable layout to text
   up     20150212161904  Move description fields to text
   up     20150225131946  Change default subnet boot mode
   up     20150428070436  Add index to logs source
   up     20150428110835  Change os default password hash
   up     20150514072626  Add type to config template
   up     20150514114044  Migrate ptables to templates
   up     20150514121649  Add usergroup sync to auth sources
   up     20150521121315  Rename config template to provisioning template
   up     20150525081931  Remove duplicate tokens
   up     20150602153751  Change usergroup name to be required
   up     20150605073820  Fix template snippet flag
   up     20150606065713  Add sti to lookup keys
   up     20150612135546  Create host status
   up     20150616080015  Create core template input
   up     20150618093433  Remove unused fields from hosts
   up     20150622090115  Change reported at
   up     20150705131449  Add type to reports
   up     20150708070742  Add full name to setting
   up     20150713143226  Add unique to operatingsystems title
   up     20150714132601  Remove is param
   up     20150811170401  Add merge default to lookup key
   up     20150819105725  Add lookup value match to host and hostgroup
   up     20150827152730  Add options to core template input
   up     20150917155300  Update host status status field int
   up     20151009084350  Drop ptables
   up     20151019174035  Rename domain host count
   up     20151025120534  Add hidden value to lookup key
   up     20151104100257  Add hosts count to hostgroup
   up     20151109152507  Add host status host id index
   up     20151210143537  Add type to mail notification
   up     20160127134031  Add advanced to core template input
   up     20160201131211  Add expired logs to smart proxy
   up     20160203110216  Add default value for bookmark public field
   up     20160215143900  Add subnet domain relation constraints
   up     20160308102459  Remove permissions from roles
   up     20160315161936  Add encrypted to settings
   up     20160414063050  Add sti to subnets
   up     20160415134454  Add ipv6 to hosts
   up     20160415135858  Add ipv6 subnet
   up     20160527093031  Limit os description
   up     20160609092110  Remove nil from merge override
   up     20160616074718  Remove host counter cache
   up     20160715131352  Set role builtin default
   up     20160717125402  Unify permissions
   up     20160719081324  Change templates type default
   up     20160725142557  Add pxe loader to host
   up     20160726085358  Rename lookup value use puppet default
   up     20160727084256  Add description to user
   up     20160727142242  Add pxe loader to hostgroup
   up     20160728095626  Add description to role
   up     20160818091420  Add override flag to filter
   up     20160831121418  Rename lookup key use puppet default
   up     20160927071039  Create notification blueprints
   up     20160927071147  Create notifications
   up     20160927073233  Create notification recipients
   up     20161205142618  Delete orphaned smart class parametersforeman puppet
   up     20161227082709  Change architecture name limit
   up     20161227082721  Change usergroup name limit
   up     20170109115157  Fix lookup key auditable typeforeman puppet
   up     20170110113824  Change id value range
   up     20170118142654  Add auto increment to bigint ids
   up     20170118154134  Add type index to reports
   up     20170127094357  Add caching enabled to compute resource
   up     20170201135815  Add domain to compute resources
   up     20170209084517  Add actions to notification blueprint
   up     20170213154641  Add index reports on host id type
   up     20170214132230  Create ssh keys
   up     20170221100747  Add origin to roles
   up     20170226193446  Move subject to notifications
   up     20170228134258  Add clone info to role
   up     20170301155205  Remove widget hide
   up     20170306100129  Add message to notification
   up     20170315154334  Add report time type host index
   up     20170316142703  Add missing indexes to notification
   up     20170319131341  Add ancestry name index on fact name
   up     20170404134531  Add description to subnets
   up     20170424131346  Add description to hostgroup
   up     20170604082313  Add compute resource to hostgroup
   up     20170606115344  Change lookup key path to text
   up     20170608130132  Add use netgroups to ldap auth source
   up     20170610132326  Create personal access tokens
   up     20170622011347  Add http proxies
  down    20170717140010  Migrate puppetdb api version setting
   up     20170815130257  Add index to ssh keys
   up     20170911133318  Drop default type in templates
   up     20171016202300  Increase fact value size
   up     20171109095957  Add key type to parameters
   up     20171119094913  Add mtu to subnet
   up     20171126131104  Remove duplicate taxable taxonomies
   up     20171213161035  Add indexes on images
   up     20171225122601  Add version to auditable index
   up     20171231134017  Change vlan to int
   up     20180102082705  Add taxonomy index to hosts
   up     20180111130853  Add config reports origin
   up     20180123140634  Remove limit ldap filter
   up     20180129143410  Create jwt secrets
   up     20180208053256  Create table preferences
   up     20180216094550  Add template to subnets
   up     20180305111232  Add build errors to hosts
   up     20180312080251  Change digests limit
   up     20180424080702  Change subnet vlanid size
   up     20180613100703  Add type to token
   up     20180702102759  Remove params value limit
   up     20180705191153  Add upgrade task
   up     20180705230311  Smart proxy capabilities
   up     20180713154128  Add index on role names
   up     20180715202514  Optimize indices
   up     20180806151925  Add subnet name unique constraint
   up     20180816110716  Add httpboot do subnet
   up     20180816134832  Cast lookup key valuesforeman puppet
   up     20180820072858  Add help text to template kinds
   up     20180831115634  Add uniqueness to puppetclass nameforeman puppet
   up     20180904142922  Add nic delay to subnet
  down    20181001113836  Remove puppetdb dashboard address settingpuppetdb foreman
   up     20181023112532  Add environment puppetclass idforeman puppet
   up     20181101101145  Add index to lookup values
   up     20181224174419  Add index to environment class by lookup key and puppetclassforeman puppet
   up     20190116120705  Remove timestamps from logs
   up     20190121084601  Change compute resource password length
   up     20190225115728  Create stored values
   up     20190226182746  Create registration facets
   up     20190228160047  Add value type and resource type to template input
   up     20190510082811  Add taxonomy id taxable type indices to taxable taxonomies
   up     20190604081000  Change root pass in host
   up     20190627083110  Change token value type
   up     20190630034751  Create host facets reported data facets
   up     20190705060630  Add searchable value to parameters
   up     20190821135704  Feature unique name
   up     20190829102315  Http proxy unique name
   up     20190918170516  Add default to template inputs
   up     20190919155550  Add description to templates
   up     20191001120743  Add fields to reported data facet
   up     20191017151119  Add external ipam id to subnets
   up     20191028082812  Remove limit from root pass
   up     20200107181613  Add foreman internal table
   up     20200127103144  Ssh keys fingerprints sha1
   up     20200129123555  Add disabled to users
   up     20200205105956  Drop parameterized classes setting
   up     20200217110708  Alter session sequence to cycle
   up     20200311131527  Drop smart variable permissions
   up     20200311134414  Change match to text in lookupvalue
   up     20200318135632  Rename report templates
   up     20200324210540  Rename default variable lookup path
   up     20200326164755  Change oidc audience setting type
   up     20200402190048  Add hidden value to template input
   up     20200406113832  Drop variable lookup key
   up     20200427151946  Drop rackspace cr
   up     20200513092446  Change config chart class
   up     20200521082853  Rename cent os7 install media
   up     20200525073201  Drop puppet class id from look up key
   up     20200602155700  Drop puppet run
   up     20200615071719  Add bmc to subnet
   up     20200616134403  Remove setting enable orchestration
   up     20200625081552  Add unique index to lookup value
   up     20200709160133  Set empty filter taxonomy search nil
   up     20200720123005  Migrate puppet core typesforeman puppet
   up     20200722171017  Create host puppet facetforeman puppet
   up     20200803113531  Create hostgroup puppet facetforeman puppet
   up     20200803113803  Migrate environment to puppet facetforeman puppet
   up     20200803113903  Migrate host type in host config groupsforeman puppet
   up     20200825121733  Drop compare content host template
   up     20200908120905  Rebuild taxonomy search
   up     20200911083030  Use hash index for reports
   up     20200918223816  Update login delegation description
   up     20200921135723  Create host facets infrastructure facets
   up     20201030102020  Enlarge report status
   up     20201125113903  Migrate puppetclasses to facetsforeman puppet
   up     20201224095619  Remove ovirt use api from attr
   up     20210114143800  Nilify empty proxy credentials
   up     20210115124508  Template kind registration
   up     20210317090500  Add disks total to host facets
   up     20210317170111  Remove the remote add setting
   up     20210401124332  Drop db pending migration setting
   up     20210407104300  Downcase mac addresses
   up     20210502113529  Drop view bookmarks permission
   up     20210525144427  Enforce unique templates
   up     20210609093404  Drop override taxonomies from filter
   up     20210610131920  Restrict sendmail location
   up     20210901081438  Drop view tasks permission
   up     20210915132645  General setting to dsl
   up     20210924103241  Remove katello id from environmentsforeman puppet
   up     20210929132645  Core setting to dsl
   up     20211111115000  Drop fix db cache setting
   up     20211111125003  Drop puppetclasses direct referencesforeman puppet
   up     20211112130803  Cleanup environment from core tablesforeman puppet
   up     20220111110149  Drop require ssl smart proxies setting
   up     20220124174632  Drop setting fields
   up     20220201205305  Migrate host class permissionforeman puppet
   up     20220204155632  Rename job report template
   up     20220208134539  Rename cent os stream os
   up     20220208135305  Migrate environment ignore typeforeman puppet
   up     20220421204325  Drop environment from host and hgforeman puppet
   up     20220515130414  Drop unnecessary timestamps
   up     20220628083024  Change default value for mail enabled to user
   up     20220630104300  Fix facet audits
   up     20220809191656  Add ssl ca to http proxy
   up     20220907145552  Clean trends and foreman docker data
   up     20221010174230  Add kernel version to host facets
   up     20221017161042  Remove host power status from settings
   up     20221025151600  Add creator id to hosts
  down    20221026123754  Fix puppetdb settings category to dsl
   up     20221102134032  Add bios to host facets
   up     20221126232030  Remove category from settings

When I restart foreman (systemctl restart foreman) the WebUI is broken and shows the following error:

 Service unavailable ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system.

When I uninstall rubygem-puppetdb_foreman.noarch with "dnf remove rubygem-puppetdb_foreman.noarch" und rerun foreman-installer it works again.

Any hints or ideas what's going wrong here ?

Does it work with puppetdb 4.2.2

Hi,
I have installed in my foreman 1.13 server. After changing URLs, all I have in monitoring screen is PuppetDB (unknown version).
Is it supposed to work with puppetdb 4.2.2 server?

deleting hosts in foreman gives SSL error no matter what we change

we are currently having a problem with deleting hosts in foreman, which always leads to a

Error: Could not deactivate host on PuppetDB: SSL_connect SYSCALL returned=5 errno=0 state=unknown state

It doesnt matter what we try to change, it seems we cannot get around this error. Can someone shed some light into this and tell us

  • which ssl certificates must be used in puppetdb in /etc/puppetlabs/puppetdb/conf.d/jetty.ini
  • which is the correct URL for puppetdb_address in foreman (:8081/v2/commands ? /pdb/cmd/.. ?) Found so many different suggestions .. not sure which one is correct now
  • does the name that is being used in foreman for puppetdb play any role ? for verification or whatever it does ?

We currently run
foreman 1.14.0-1
ruby-puppetdb-foreman 2.0.0-1
puppetserver 2.7.2-1puppetlabs1
puppetdb 4.3.0-1puppetlabs1

When we run commands from the cmd, everything looks good, but of course, then foreman is out of the game, right ?

We would really appreciate if someone could help here.

regards, Oliver

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.