Foreman 1.10 Hostgroup puppet classes no sent to the server

Hi,

I recently upgraded my Foreman to 1.10 and when I build a new host (VMware)
and apply the hostgroup I can see all Puppet classes there(attached screen
shot), but after the installation is over none of these classes are passed
to the new server.

When checking the catalog file I can’t see any Class, also I if I will
assign new Puppet class not from the hostgroup it won’t work either.

[root@il-eddie-lp1 ~]# cat
/var/lib/puppet/client_data/catalog/il-eddie-lp1.imperva.local.json
{"metadata":{"api_version":1},"data":{"name":"il-eddie-lp1.imperva.local","tags":["settings"],"resources":[{"title":"main","type":"Stage","tags":["main","stage"],"exported":false},{"title":"Settings","type":"Class","tags":["class","settings"],"exported":false},{"title":"Main","type":"Class","tags":["class","main"],"parameters":{"name":"main"},"exported":false}],"classes":["settings"],"edges":[{"source":"Stage[main]","target":"Class[Settings]"},{"source":"Stage[main]","target":"Class[Main]"}],"environment":"production","version":1452011776},"document_type":"Catalog"}

Please assist.

Thank,
EddieM

Check Foreman's own YAML output passed to Puppet by navigating to the
host page and clicking the YAML button, and also try running
/etc/puppet/node.rb il-eddie-lp1.imperva.local on the Puppet master to
see if the class is listed.

Check that Foreman lists those classes in the same Puppet environment as
the host under the Configure > Classes page.

··· On 05/01/16 16:51, Eddie Mashayev wrote: > Hi, > > I recently upgraded my Foreman to 1.10 and when I build a new host > (VMware) and apply the hostgroup I can see all Puppet classes > there(attached screen shot), but after the installation is over none of > these classes are passed to the new server. > > When checking the catalog file I *can’t* see any Class, also I if I will > assign new Puppet class not from the hostgroup it won’t work either.


Dominic Cleal
dominic@cleal.org

Hi,

I've checked it few time today. sometimes it installs with the Puppet
classes and sometimes it doesn't, very strange behavior.

In YAML I *can't see *the hostgroup at all, i'm making the same
installation with the same parameters second time and it's working. another
installation it might not work again.

In successful installation I see hostgroup: New Server/CentOS6
Bad installation I don't see *hostgroup *at all. Look like it doesn't
inherit the hostgroup, also if i will sign Puppet class manually it
won't reflect on the host.

The same when running /etc/puppet/node.rb <server name>

Thanks,
EddieM

··· On Wednesday, January 6, 2016 at 10:01:10 AM UTC+2, Dominic Cleal wrote: > > On 05/01/16 16:51, Eddie Mashayev wrote: > > Hi, > > > > I recently upgraded my Foreman to 1.10 and when I build a new host > > (VMware) and apply the hostgroup I can see all Puppet classes > > there(attached screen shot), but after the installation is over none of > > these classes are passed to the new server. > > > > When checking the catalog file I *can’t* see any Class, also I if I will > > assign new Puppet class not from the hostgroup it won’t work either. > > Check Foreman's own YAML output passed to Puppet by navigating to the > host page and clicking the YAML button, and also try running > `/etc/puppet/node.rb il-eddie-lp1.imperva.local` on the Puppet master to > see if the class is listed. > > Check that Foreman lists those classes in the same Puppet environment as > the host under the Configure > Classes page. > > -- > Dominic Cleal > dom...@cleal.org >