foreman-installer fails with puppetserver from Puppet 5
Running foreman-installer on a Foreman machine / smart proxy running PuppetServer from the Puppet 5 distribution results in the exception:
puppetserver: Exception in thread "main" java.lang.IllegalArgumentException: service :puppetlabs.trapperkeeper.services.metrics.metrics-service/metrics-webservice does not appear in configuration
on puppetserver startup, effectively preventing puppetserver startup.
Seems like the configuration files have been borked.
This hack fixes it:
mv /etc/puppetlabs/puppetserver/conf.d /etc/puppetlabs/puppetserver/conf.d.old yum reinstall puppetserver
#4 Updated by Oliver Freyermuth over 4 years ago
That patch was fast! Please excuse my ignorance - the PR seems to be for "puppet-puppet". Is that puppet-module also what foreman installer is using inside naturally?
In case the testing request is for me: What's the easiest way to get a nightly including the PR (or should I just wait for now)?
Cheers and many thanks,
#5 Updated by Anonymous over 4 years ago
It is the puppet module included with foreman-installer. Use "nightly" instead of "1.15" for the Foreman repositories, than you can apply the patch of the PR to /usr/share/foreman-installer/modules/puppet
Before running the installer for the first time, make sure the "puppet strings" face works, this will probably require to install some gems into the Puppet Ruby environment, see https://github.com/puppetlabs/puppet-strings
It might be well the case that more changes in other Foreman components will be required to get everything working in all setups and there's no timeline for that (just to adjust the expectations...).
#6 Updated by Oliver Freyermuth over 4 years ago
Sadly, after this foreman-installer also complains about kafo:
/usr/share/gems/gems/kafo-2.0.0/lib/kafo/puppet_module.rb:69:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/puppet/manifests/init.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)
Maybe it's easier to have this (seemingly non-breaking) change in the next point release, i.e. 1.15.2, and not only the 1.16-nightlies, or does this violate release policies?
Since foreman appears to run just fine (apart from the environment filter bug) with puppet5 apart from this, this would get the "fix" to the end-user faster.
#9 Updated by Anonymous over 4 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset puppet-puppet|94ff77740a27d458ce1444db016645ab763cba42.