I'm attempting to use puppetlabs-apache with all my classes defined via 
Foreman (1.5.1) with Puppet 3.4.3.  Servers are all CentOS 6.5.

With puppetlabs-apache-1.0.1 when I applied both the apache class and 
apache::mod::ssl class in Foreman I received this error on the server:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
undefined method `>=' for :undef:Symbol at 
/etc/puppet/environments/production/modules/apache/manifests/mod/ssl.pp:36 
on node web01.brazos.tamu.edu
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

I found the commit that changed how "apache_version" was handled and 
deployed that and then I get:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Failed to parse template apache/mod/ssl.conf.erb:
  Filepath: /usr/lib/ruby/site_ruby/1.8/puppet/util/package.rb
  Line: 4
  Detail: private method `scan' called for nil:NilClass
 at 
/etc/puppet/environments/production/modules/apache/manifests/mod/ssl.pp:51 
on node web01.brazos.tamu.edu
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

This time the "@apache_version" variable in the template is being passed 
the to versoncmp function, producing that error.

I don't know if this is a symptom of using an ENC, or a bug in the apache 
module, but the class parameters in apache::mod::ssl reference the apache 
class and despite the class being defined, the variables are all 'undef'.

I also ran into this same issue when I applied the apache::mod::wsgi class:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Invalid relationship: File[wsgi.conf] { before => File[undef] }, because 
File[undef] doesn't seem to be in the catalog
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

In that case the fix was easier, just add "include ::apache" to the top of 
the class.

Thanks
- Trey

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f1d69f13-7a11-40cf-b5ab-0f33e8e6038f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to