Duncan Innes
2015-07-31 16:40:08 UTC
I'm upgrading a Foreman server to 1.8 at work, so am also upgrading the
foreman-proxy installs on the 4 Puppet servers we have on the network.
Not sure if these were ever working properly as there are errors every time
I try to list the certificates from Foreman's Smart Proxy page.
I get:
Warning!
ERF12-5356 [ProxyAPI::ProxyException]: Unable to get PuppetCA certificates
([RestClient::NotAcceptable]: 406 Not Acceptable) for proxy
https://puppet.example.com:8443/puppet/ca
in the browser, and
D, [2015-07-31T17:07:32.387228 #5662] DEBUG -- : verifying remote client
192.168.0.1 against trusted_hosts puppet.example.com
D, [2015-07-31T17:07:32.391611 #5662] DEBUG -- : Found puppetca at
/usr/bin/puppet
D, [2015-07-31T17:07:32.392552 #5662] DEBUG -- : Found sudo at /usr/bin/sudo
D, [2015-07-31T17:07:32.392725 #5662] DEBUG -- : Executing /usr/bin/sudo -S
/usr/bin/puppet cert --ssldir /var/lib/puppet/ssl --list --all
W, [2015-07-31T17:07:32.476678 #5662] WARN -- : Failed to run puppetca:
E, [2015-07-31T17:07:32.477272 #5662] ERROR -- : Failed to list
certificates: Execution of puppetca failed, check log files
10.97.227.95 - - [31/Jul/2015 17:07:32] "GET HTTP/1.1" 406 74 0.0916
D, [2015-07-31T17:07:32.645011 #5662] DEBUG -- : verifying remote client
192.168.0.1 against trusted_hosts puppet.example.com
D, [2015-07-31T17:07:32.646037 #5662] DEBUG -- : Found puppetca at
/usr/bin/puppet
D, [2015-07-31T17:07:32.646235 #5662] DEBUG -- : Found sudo at /usr/bin/sudo
D, [2015-07-31T17:07:32.647429 #5662] DEBUG -- : Executing /usr/bin/sudo -S
/usr/bin/puppet cert --ssldir /var/lib/puppet/ssl --list --all
W, [2015-07-31T17:07:32.715052 #5662] WARN -- : Failed to run puppetca:
E, [2015-07-31T17:07:32.715733 #5662] ERROR -- : Failed to list
certificates: Execution of puppetca failed, check log files
10.97.227.95 - - [31/Jul/2015 17:07:32] "GET HTTP/1.1" 406 74 0.0721
in /var/log/foreman-proxy/proxy.log
We use an IPA service to manage sudo access though, so I'm not as certain
that the rule is in place properly. How can I test the rule is in place?
I can run the sudo command above as my own user and get the expected
results. Whenever I su to the foreman-proxy user, it asks me for passwords
when I try the above sudo commands.
Duncan
foreman-proxy installs on the 4 Puppet servers we have on the network.
Not sure if these were ever working properly as there are errors every time
I try to list the certificates from Foreman's Smart Proxy page.
I get:
Warning!
ERF12-5356 [ProxyAPI::ProxyException]: Unable to get PuppetCA certificates
([RestClient::NotAcceptable]: 406 Not Acceptable) for proxy
https://puppet.example.com:8443/puppet/ca
in the browser, and
D, [2015-07-31T17:07:32.387228 #5662] DEBUG -- : verifying remote client
192.168.0.1 against trusted_hosts puppet.example.com
D, [2015-07-31T17:07:32.391611 #5662] DEBUG -- : Found puppetca at
/usr/bin/puppet
D, [2015-07-31T17:07:32.392552 #5662] DEBUG -- : Found sudo at /usr/bin/sudo
D, [2015-07-31T17:07:32.392725 #5662] DEBUG -- : Executing /usr/bin/sudo -S
/usr/bin/puppet cert --ssldir /var/lib/puppet/ssl --list --all
W, [2015-07-31T17:07:32.476678 #5662] WARN -- : Failed to run puppetca:
E, [2015-07-31T17:07:32.477272 #5662] ERROR -- : Failed to list
certificates: Execution of puppetca failed, check log files
10.97.227.95 - - [31/Jul/2015 17:07:32] "GET HTTP/1.1" 406 74 0.0916
D, [2015-07-31T17:07:32.645011 #5662] DEBUG -- : verifying remote client
192.168.0.1 against trusted_hosts puppet.example.com
D, [2015-07-31T17:07:32.646037 #5662] DEBUG -- : Found puppetca at
/usr/bin/puppet
D, [2015-07-31T17:07:32.646235 #5662] DEBUG -- : Found sudo at /usr/bin/sudo
D, [2015-07-31T17:07:32.647429 #5662] DEBUG -- : Executing /usr/bin/sudo -S
/usr/bin/puppet cert --ssldir /var/lib/puppet/ssl --list --all
W, [2015-07-31T17:07:32.715052 #5662] WARN -- : Failed to run puppetca:
E, [2015-07-31T17:07:32.715733 #5662] ERROR -- : Failed to list
certificates: Execution of puppetca failed, check log files
10.97.227.95 - - [31/Jul/2015 17:07:32] "GET HTTP/1.1" 406 74 0.0721
in /var/log/foreman-proxy/proxy.log
We use an IPA service to manage sudo access though, so I'm not as certain
that the rule is in place properly. How can I test the rule is in place?
I can run the sudo command above as my own user and get the expected
results. Whenever I su to the foreman-proxy user, it asks me for passwords
when I try the above sudo commands.
Duncan
--
You received this message because you are subscribed to the Google Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+***@googlegroups.com.
To post to this group, send email to foreman-***@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+***@googlegroups.com.
To post to this group, send email to foreman-***@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.