OK - installed Puppet (it’ll be on all clients anyway come production
rollout) and checked the statuses in puppet.yml and puppetca.yml. They
look disabled already to me, but now Puppet is installed, I get a longer
pause, still a failure, but less information:
[root@laptop.local ~]# cat /etc/foreman-proxy/settings.d/puppet.yml
:enabled: false
valid providers:
puppetrun (for puppetrun/kick, deprecated in Puppet 3)
mcollective (uses mco puppet)
puppetssh (run puppet over ssh)
salt (uses salt puppet.run)
customrun (calls a custom command with args)
#:puppet_provider: puppetrun
Customrun command details
Set :customrun_cmd to the full path of the script you want to run,
instead of /bin/false
:customrun_cmd: /bin/false
Set :customrun_args to any args you want to pass to your custom
script. The hostname of the
system to run against will be appended after the custom commands.
:customrun_args: -ay -f -s
:puppet_conf: /etc/puppet/puppet.conf
whether to use sudo before the ssh command
:puppetssh_sudo: false
the command which will be sent to the host
:puppetssh_command: /usr/bin/puppet agent --onetime --no-usecacheonfailure
With which user should the proxy connect
#:puppetssh_user: root
#:puppetssh_keyfile: /etc/foreman-proxy/id_rsa
Which user to invoke sudo as to run puppet commands
#:puppet_user: root
[root@laptop.local ~]# cat /etc/foreman-proxy/settings.d/puppetca.yml
:enabled: false
#:ssldir: /var/lib/puppet/ssl
#:puppetdir: /etc/puppet
#:puppetca_use_sudo: true
#:sudo_command: /usr/bin/sudo
[root@laptop.local ~]# rpm -qa | grep puppet
puppet-3.6.2-1.el7.noarch
[root@laptop.local ~]# systemctl start foreman-proxy.service
Job for foreman-proxy.service failed. See ‘systemctl status
foreman-proxy.service’ and ‘journalctl -xn’ for details.
[root@laptop.local ~]# systemctl status foreman-proxy.service
foreman-proxy.service - Foreman Proxy
Loaded: loaded (/usr/lib/systemd/system/foreman-proxy.service; enabled)
Active: failed (Result: exit-code) since Tue 2014-07-01 09:35:08
BST; 21s ago
Process: 6068 ExecStart=/usr/share/foreman-proxy/bin/smart-proxy
(code=exited, status=1/FAILURE)
Jul 01 09:35:08 laptop.local systemd[1]: foreman-proxy.service: control
process exited, code=exited status=1
Jul 01 09:35:08 laptop.local systemd[1]: Failed to start Foreman Proxy.
Jul 01 09:35:08 laptop.local systemd[1]: Unit foreman-proxy.service
entered failed state.
[root@laptop.local ~]# journalctl -xn
– Logs begin at Mon 2014-06-30 20:13:02 BST, end at Tue 2014-07-01
09:35:21 BST. –
Jul 01 09:33:33 laptop.local systemd[1]: foreman-proxy.service: control
process exited, code=exited status=1
Jul 01 09:33:33 laptop.local systemd[1]: Failed to start Foreman Proxy.
– Subject: Unit foreman-proxy.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit foreman-proxy.service has failed.
– The result is failed.
Jul 01 09:33:33 laptop.local systemd[1]: Unit foreman-proxy.service
entered failed state.
Jul 01 09:34:57 laptop.local dnsmasq-dhcp[3064]: DHCPREQUEST(virbr0)
192.168.122.129 52:54:00:00:00:02
Jul 01 09:34:57 laptop.local dnsmasq-dhcp[3064]: DHCPACK(virbr0)
192.168.122.129 52:54:00:00:00:02 foreman
Jul 01 09:35:07 laptop.local systemd[1]: Starting Foreman Proxy…
– Subject: Unit foreman-proxy.service has begun with start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit foreman-proxy.service has begun starting up.
Jul 01 09:35:08 laptop.local systemd[1]: foreman-proxy.service: control
process exited, code=exited status=1
Jul 01 09:35:08 laptop.local systemd[1]: Failed to start Foreman Proxy.
– Subject: Unit foreman-proxy.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit foreman-proxy.service has failed.
– The result is failed.
Jul 01 09:35:08 laptop.local systemd[1]: Unit foreman-proxy.service
entered failed state.
Jul 01 09:35:21 laptop.local puppet-agent[5842]: Could not request
certificate: getaddrinfo: Name or service not known
[root@laptop.local ~]# cat /var/log/foreman-proxy/proxy.log
Logfile created on 2014-06-30 21:05:04 +0100 by logger.rb/41954
E, [2014-07-01T09:30:17.043551 #5377] ERROR – : Both http and https are
disabled, unable to start.
E, [2014-07-01T09:33:33.282286 #5900] ERROR – : Both http and https are
disabled, unable to start.
E, [2014-07-01T09:35:08.776432 #6068] ERROR – : Both http and https are
disabled, unable to start.
[root@laptop.local ~]#
systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: active (running) since Mon 2014-06-30 20:13:31 BST; 13h ago
Main PID: 1752 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic:
0 B/sec"
CGroup: /system.slice/httpd.service
├─1752 /usr/sbin/httpd -DFOREGROUND
├─2736 /usr/sbin/httpd -DFOREGROUND
├─2737 /usr/sbin/httpd -DFOREGROUND
├─2738 /usr/sbin/httpd -DFOREGROUND
├─2739 /usr/sbin/httpd -DFOREGROUND
└─2740 /usr/sbin/httpd -DFOREGROUND
Jun 30 20:13:31 laptop.local httpd[1752]: AH00557: httpd:
apr_sockaddr_info_get() failed for laptop.local
Jun 30 20:13:31 laptop.local httpd[1752]: AH00558: httpd: Could not
reliably determine the server’s fully qualified domain name, using
127.0.0.1. Set the 'Serv…his message
Jun 30 20:13:31 laptop.local systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@laptop.local ~]#
Is this a failure to recognise that httpd is running?
Cheers
D
On Tuesday, 1 July 2014 09:18:10 UTC+1, Dominic Cleal wrote:
On 01/07/14 09:05, Duncan Innes wrote:
> Sorry - I had seen this, but thought it was in the clip I pasted
earlier.
>
> Jul 01 08:20:05 laptop.local systemd[1]: Starting Foreman Proxy...
> Jul 01 08:20:05 laptop.local smart-proxy[31648]:
> /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in
`require':
> cannot load such file -- puppet (LoadError)
Ah okay, so our foreman-proxy package doesn't depend on Puppet as
it's a
soft dependency. I think we'll change this in the future and use
sub-packages so we can use hard dependencies as the 1.6 proxy is
modular.
You can either disable the Puppet and Puppet CA modules under
/etc/foreman-proxy/settings.d/, or install Puppet.
--
Dominic Cleal
Red Hat Engineering
–
You received this message because you are subscribed to the Google
Groups “foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-dev+unsubscribe@googlegroups.com
mailto:foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.