This message was deleted.
# forge-modules
s
This message was deleted.
t
Which verson of puppet(server) Check the ouptut of
puppet facts os
on the node
a
@TheMeier agent and puppetserver are both 7.17.0 The problem I'm experiencing is running the agent on the master itself, other nodes seem to be collecting facts properly
@vchepkov @natemccurdy I'm still having an issue with my puppet master not resolving facts but I think it might be related to puppetdb. So to recap on my master only: puppet facts os - does not resolve any os facts facter os - does resolve os facts If my puppetdb is not my master, does it change the way facts are resolved, and if so, why does this only affect my master?
v
No, puppetdb is not normally involved in facts resolution, this is where facts are reported to
I don't have puppet 7 installed, but puppet 6 command would be
puppet facts show os
n
Unless maybe there’s a facts cache terminus configured on that host to pull cached facts from PuppetDB…. though why that would be causing this problem and how you even ended up in that situation, I can’t say. That’d be really odd.
a
hmmm, ok. I did remove routes.yaml and puppetdb.conf temporarily but puppet facts os then reported an inability to access the puppetdb url. I guess I must have missed something.
It does have puppetdb-termini installed
n
It said that even after removing
/etc/puppetlabs/puppet/routes.yaml
and
/etc/puppetlabs/puppet/puppetdb.conf
?
Is there anything about “terminus”’s in
/etc/puppetlabs/puppet/puppet.conf
Copy code
grep terminus /etc/puppetlabs/puppet/puppet.conf
a
I'll check when I get in the office later but I think you're onto something @natemccurdy
not sure why it would only affect the master unless it was in the masters agent config and I guess that fits right?
n
Yeah, maybe it’s in
[main]
or
[agent]
sections of puppet.conf, which would be wrong.
a
only mention of terminus is in routes.yaml
n
Anything about “fact”? Maybe just share the entire
puppet.conf
here
a
Copy code
[main]
storeconfigs = true
storeconfigs_backend = puppetdb
reports = store, puppetdb
resubmit_facts = true
#report_server = <server name>
#report_port = 8081

[agent]
pluginsync      = true
report          = true
ca_server       = <server>
certname        = <server>
server          = <server>
environment     = <env>

[server]
vardir = /opt/puppetlabs/server/data/puppetserver
logdir = /var/log/puppetlabs/puppetserver
rundir = /var/run/puppetlabs/puppetserver
pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
codedir = /etc/puppetlabs/code
classified network so had to be redacted
n
Oh,
storeconfigs
and
storeconfigs_backend
. Move those to
[server]
Also, unless you want
puppet apply
to send reports (which only applies in master-less environments), also move
reports
,
report_server
, and
report_port
to
[server]
. Note, don’t more
report
(singular), that’s in the right place.
a
Cheers @natemccurdy will give that a go.
n
I’d re-arrange things to look like this in puppet.conf, personally.
a
Is the certname superfluous ?
n
Not necessarily.
certname
defaults to the host’s FQDN, but you might want to override that.
a
Did the trick @natemccurdy Thanks heaps
👍 1
maybe I didn't read the puppetdb doco thoroughly enough
n
That, or the PuppetDB docs are wrong (which I wouldn’t rule out).
a
possibly not clear. I think they state which config file to edit but not which section. Unless it's something that should be bloody obvious
n
Nah.. if they don’t specify a section, I’d call that as the docs being wrong. Knowing which section to use is definitely not a super clear thing in general, so it’d helpful for docs to be extra explicit about that.
v
It would be a good idea to use puppet itself to manage puppet infrastructure. theforeman/puppet is a good module
d