Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Running foreman as puppet console

$
0
0
We are setting up foreman to run as puppet console for reporting and ENC, now we are facing two problems... - Puppet is not able upload facts to foreman - Smart class parameters are not working as expected. The instruction we have been following is https://theforeman.org/manuals/1.13/index.html#3.5.5FactsandtheENC . And as far as we understand, the ENC script will convert agent facts to foreman format and upload it to foreman web. However it looks like this ENC only look for a client fact yaml file under /$puppetdir/yaml/facts/$certname.yaml .. which does not exist on master at all ... so no facts are uploaded to foreman. if SETTINGS[:facts] req = generate_fact_request certname, "#{puppetdir}/yaml/facts/#{certname}.yaml" upload_facts(certname, req) end How to rewrite ENC to generate new agent facts during each agent run and upload them to foreman properly? Besides, is there anyway to integrate Hiera and Foreman ENC, current setup will only load nodes definitions from hiera files, nothing configured with foreman host group and smart class parameters will apply on selected nodes.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>