Hey all,
I'm having an odd sitution where puppet can't seem to connect to the puppetdb if SELInux is set to enforcing.
Here's what that looks like:
[root@puppet:~] #getenforce
Enforcing
[root@puppet:~] #puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
However if I set everything to permissive, everything's back in working order:
[root@puppet:~] #setenforce 0
[root@puppet:~] #getenforce
Permissive
[root@puppet:~] #puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Applying configuration version '1429996811'
Notice: /Stage[main]/Puppet::Service/Service[puppet]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Puppet::Service/Service[puppet]: Unscheduling refresh on Service[puppet]
Notice: Finished catalog run in 6.43 seconds
Does anyone have a guess as to why this is happening? And would anyone know the proper selinux command that would allow this to work?
Thanks.
Tim