Project

General

Profile

Actions

Bug #6610

closed

Unconfigured puppetdb_foreman doesn't show error messages

Added by Daniel Lobato Garcia almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

An user has puppetdb_foreman installed, but not configured:

http://fpaste.org/118050/14054166/

Puppetdb_foreman will fail to get the SETTINGS[:puppetdb] and therefore host deletion will be stopped. https://github.com/theforeman/puppetdb_foreman/blob/master/app/models/puppetdb_foreman/host_extensions.rb#L25

Solution:

Make puppetdb_foreman show an error on the UI on host deletion. To avoid restarting the application, make this a configurable setting in the UI, not in the yaml file.
Also update puppetdb_foreman to make it register with Foreman instead of load it as an old plugin. This will require rebuilding gems/rpms/debs that included a sample settings.yaml.

Actions

Also available in: Atom PDF