Foreman 1.3.1 not importing Puppet classes

HI,

have a puppetmaster (puppet-server-3.3.2) and nodes working fine.
all nodes are pooling these classes ok.

can't import any puppet classes to Foreman:

[root@puppet ]# ls -la /etc/puppet/manifests/classes/
total 28
drwxr-xr-x 2 puppet puppet 4096 Dec 8 16:18 .
drwxr-xr-x 3 puppet puppet 4096 Dec 8 16:03 …
-rw-r–r-- 1 puppet puppet 244 Dec 5 14:07 AppDynamics.pp
-rw-r–r-- 1 puppet puppet 199 Dec 5 18:14 services.pp
-rw-r–r-- 1 puppet puppet 239 Dec 5 14:29 sshkeys.pp
-rw-r–r-- 1 puppet puppet 488 Dec 5 13:51 sudo.pp
-rw-r–r-- 1 puppet puppet 833 Dec 5 13:29 users.pp

These classes are working with puppet agents, but Foreman is not importing
them…

i noticed Foreman does importing Modules… but when trying to import
classes i get:
"No changes to your environments detected"

I tried to get the classes with curl but they are empty:

curl https://puppet:8443/puppet/environments -k
["development","production"]

curl https://puppet:8443/puppet/environments/production/*classes* -k
[ ]

also tried to manually create classes which also didn't work.

Attached a Foreman-Debug file

is there a workaround to import puppet-server classes ?

foreman-debug-Zpx7K.tar.xz (11.1 KB)

Foreman needs the classes to be in modules and not just plain manifest
files.

See http://docs.puppetlabs.com/learning/modules1.html for an
introduction to this.

A "sudo" class would then be placed under
/etc/puppet/environments/production/modules/sudo/manifests/init.pp as
per the modulepath defined in /etc/puppet/puppet.conf.

··· On 08/12/13 14:45, imneo wrote: > HI, > > have a puppetmaster (puppet-server-3.3.2) and nodes working fine. > all nodes are pooling these classes ok. > > can't import any puppet classes to Foreman: > > [root@puppet ]# ls -la /etc/puppet/manifests/classes/ > total 28 > drwxr-xr-x 2 puppet puppet 4096 Dec 8 16:18 . > drwxr-xr-x 3 puppet puppet 4096 Dec 8 16:03 .. > -rw-r--r-- 1 puppet puppet 244 Dec 5 14:07 AppDynamics.pp > -rw-r--r-- 1 puppet puppet 199 Dec 5 18:14 services.pp > -rw-r--r-- 1 puppet puppet 239 Dec 5 14:29 sshkeys.pp > -rw-r--r-- 1 puppet puppet 488 Dec 5 13:51 sudo.pp > -rw-r--r-- 1 puppet puppet 833 Dec 5 13:29 users.pp > > These classes are working with puppet agents, but Foreman is not > importing them... > > i noticed Foreman does importing Modules... but when trying to import > classes i get: > "No changes to your environments detected"


Dominic Cleal
Red Hat Engineering