Hello Group!
I have installed and am using foreman (with puppet) on linux servers.
The puppetmaster is installed on a Linux Debian server as well. I have
installed according to the documentation by running "foreman-installer",
which worked great!
However, that has the effect that I don't understand all the internals,
since it all got up set automatically. I am especially curious about the
exact interaction with puppet…
Well, now I am trying to track down an issue, and that missing knowledge
about the internals is screwing that up.
I have the effect that for some changes (but not all of them!) I am only
getting rudimentary reports. It's dependent on the change, not on the node
it gets deployed on. All The Info Level stuff is missing, and the notice
which contains the diff. I do get the notice about the old and new file md5
sums though.
Now I'd like to dive into the configuration and log files to figure out
what is going wrong. But I don't even find a proper starting point:
/var/log/puppet/masterhttp.log is empty, puppet has no other log files
/var/log/foreman/production.log is very detailed, but I can not see any
problems reported when such a report happens. Log entries:
2016-06-21T08:36:09 [app] [I] Started POST "/api/reports" for <ip> at
2016-06-21 08:36:09 +0200
2016-06-21T08:36:09 [app] [I] Processing by
Api::V2::ReportsController#create as JSON
2016-06-21T08:36:09 [app] [I] Parameters: {"report"=>"[FILTERED]",
"apiv"=>"v2"}
2016-06-21T08:36:09 [app] [I] processing report for <host>
2016-06-21T08:36:09 [app] [I] Imported report for <host> in 0.04 seconds
This all looks fine to me. But what does foreman actually DO? How is this
structured, where are the reports saved on disk, which configuration files
are used, …
I have the feeling I am completely casting about in the dark here.
So, is there any documentation that explains how this stuff works? The
foreman documentation doesn't lose a single word about it as far as I can
find. And I have no idea how much puppet documentation is applicable.
I read that reports should be stored in /var/lib/puppet/reports/. (vardir
appears to be set to /var/lib/puppet, according to /etc/puppet/puppet.conf)
But there are only reports from the time of setting the server up in there,
so it's apparently not used.
"/etc/init.d/puppetmaster status" says that puppetmaster is not running,
though everything is working fine, which is just an example that I have no
idea how this stuff is organized and set up.
So, can someone throw me a bone here and point me to documentation
explaining the big picture here? Either that, or try to answer the concrete
questions I have asked.