I'm very new to foreman and puppet so please bear with me.
Foreman is running on CentOS 6.5, version 1.5.
I've provisioned a ubuntu 14.04 host from PXE boot, configured host groups,
created a new puppet environment (Engineering_Desktops), and added the
suggested NTP puppet module from the quick start guide. Works great.
I then try to install a puppet module like
filepush https://forge.puppetlabs.com/dominickaiser/filepush
[root@puppetmaster modules]# puppet module install -i
/etc/puppet/environments/Engineering_Desktops/modules dominickaiser/filepush
and after adding the puppet class to my hosts hostgroup the host gives 400
errors like:
root@dell-ubuntu# puppet agent -t
Notice: Using less secure serialization of reports and query parameters for
compatibility
Notice: with older puppet master. To remove this notice, please upgrade
your master(s)
Notice: to Puppet 3.3 or newer.
Notice: See http://links.puppetlabs.com/deprecate_yaml_on_network for more
information.
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not find class ct-filepush for dell-ubuntu.domain.name on node dell-ubuntu.domain.name
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
The files are listed in the correct environment module dir:
[root@puppetmaster modules]# pwd
/etc/puppet/environments/Engineering_Desktops/modules
[root@puppetmaster modules]# ll
total 28
drwxr-xr-x. 6 root root 4096 May 22 12:29 apt
drwxr-xr-x. 6 root root 4096 Apr 12 2013 filepush
drwxr-xr-x. 5 root root 4096 May 22 12:29 ldap
drwxr-xr-x. 6 root root 4096 May 22 12:29 ntp
drwxr-xr-x. 5 root root 4096 May 22 13:28 puppet-nsswitch
drwxr-xr-x. 7 root root 4096 May 22 13:29 puppet-pam
drwxr-xr-x. 6 root root 4096 May 22 12:29 stdlib
I've had this issue with every module in that list other than NTP, and I'm
not sure how to troubleshoot this.
I think this error might be a bug in the filepush module you're using here.
Puppet's become more strict about the layout of modules and permitted
class + module names over time for a number of (good) reasons. The
class name shouldn't contain a hyphen
(docs-archive/puppet/3 at main · puppetlabs/docs-archive · GitHub)
and the module name must match the class name ("filepush" versus
"ct-filepush").
Try editing init.pp and call it "filepush" instead of "ct-filepush",
import it into Foreman again and then apply that "filepush" class instead.
···
--
Dominic Cleal
Red Hat Engineering
On 23/05/14 00:52, Steve Dainard wrote:
I’m very new to foreman and puppet so please bear with me.
Foreman is running on CentOS 6.5, version 1.5.
I’ve provisioned a ubuntu 14.04 host from PXE boot, configured host
groups, created a new puppet environment (Engineering_Desktops), and
added the suggested NTP puppet module from the quick start guide. Works
great.
I then try to install a puppet module like
filepush dominickaiser/filepush · A module to push files · Puppet Forge
[root@puppetmaster modules]# puppet module install -i
/etc/puppet/environments/Engineering_Desktops/modules dominickaiser/filepush
and after adding the puppet class to my hosts hostgroup the host gives
400 errors like:
root@dell-ubuntu# puppet agent -t
Notice: Using less secure serialization of reports and query parameters
for compatibility
Notice: with older puppet master. To remove this notice, please upgrade
your master(s)
Notice: to Puppet 3.3 or newer.
Notice: See docs-archive/puppet/3.8 at main · puppetlabs/docs-archive · GitHub for
more information.
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class ct-filepush for dell-ubuntu.domain.name on
node dell-ubuntu.domain.name
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
The files are listed in the correct environment module dir:
[root@puppetmaster modules]# pwd
/etc/puppet/environments/Engineering_Desktops/modules
[root@puppetmaster modules]# ll
total 28
drwxr-xr-x. 6 root root 4096 May 22 12:29 apt
drwxr-xr-x. 6 root root 4096 Apr 12 2013 filepush
drwxr-xr-x. 5 root root 4096 May 22 12:29 ldap
drwxr-xr-x. 6 root root 4096 May 22 12:29 ntp
drwxr-xr-x. 5 root root 4096 May 22 13:28 puppet-nsswitch
drwxr-xr-x. 7 root root 4096 May 22 13:29 puppet-pam
drwxr-xr-x. 6 root root 4096 May 22 12:29 stdlib
I’ve had this issue with every module in that list other than NTP, and
I’m not sure how to troubleshoot this.