Foreman 1.3 and Puppet 3.3 on CentOS 6

Hi all,

Recently, we started looking at using Foreman, and started with the version
of Puppet available in EPEL. Realising that this is a reasonably old
version of Puppet, I decided to give the Puppet yum repository a go, and as
such I've now got Puppet 3.3 installed.

I had a couple of issues at first getting the existing nodes to behave
properly, but that was down to me not reading the documentation correctly,
as I hadn't modified the sudoers file or the config.ru file. Having
modified those, our existing nodes seem to work fine now.

I've now come to add another node, this time with the Puppet 3.3 from the
start, and with certificate autosigning on. However, I've hit a problem, in
that I'm getting the error message "Error 400 on SERVER: failed to find
<hostname> via exec: Execution of '/etc/puppet/node.rb <hostname>' returned

  1. Of course, at this point it doesn't go any further. I've tried without
    autosigning and still get this. Running that command on the server shows
    me "No such file or directory -
    /var/lib/puppet/yaml/facts/<hostname>.yaml". The host appears in the web
    interface, but the OS, environment and model are all missing.

Any help would be greatly appreciated.

Thanks,

Martin

I seem to have answered my own problem here. Following the notes about
editing the config.ru file, I dutifully put in the --confdir line, but
didn't spot --vardir mentioned anywhere, and it wasn't set in puppet.conf.
For some reason, this led to the facts from my new nodes to appear under
/var/lib/puppet/.puppet/var, so I've set vardir to /var/lib/puppet, and now
it works.

Hope this helps anyone else who finds their way into this situation.

ยทยทยท On Friday, 22 November 2013 12:01:57 UTC, Martin Goldstone wrote: > > Hi all, > > Recently, we started looking at using Foreman, and started with the > version of Puppet available in EPEL. Realising that this is a reasonably > old version of Puppet, I decided to give the Puppet yum repository a go, > and as such I've now got Puppet 3.3 installed. > > I had a couple of issues at first getting the existing nodes to behave > properly, but that was down to me not reading the documentation correctly, > as I hadn't modified the sudoers file or the config.rufile. Having modified those, our existing nodes seem to work fine now. > > I've now come to add another node, this time with the Puppet 3.3 from the > start, and with certificate autosigning on. However, I've hit a problem, in > that I'm getting the error message "Error 400 on SERVER: failed to find > via exec: Execution of '/etc/puppet/node.rb ' returned > 1. Of course, at this point it doesn't go any further. I've tried without > autosigning and still get this. Running that command on the server shows > me "No such file or directory - > /var/lib/puppet/yaml/facts/.yaml". The host appears in the web > interface, but the OS, environment and model are all missing. > > Any help would be greatly appreciated. > > Thanks, > > Martin >