I am getting following errors with the latest puppetlabs-apache
module. I am using Puppet 2.6.16 on CentOS 6.2 OSs and with required
dependency modules firewall (v0.0.4-80-g63fd433) and stdlib (3.0.0-27-
g4e25230) installed in the modulepath.
I have included only following class to in a node template:
class{''apache'': }
When the catalog is being fetched for the first time then I get
following error:
{{{
Could not retrieve catalog from remote server: Error 400 on SERVER:
Syntax error at ''apache::mod::dav''; expected
'']'' at /etc/puppet/
modules/apache/manifests/mod/dav_fs.pp:2
}}}
After restarting the concerned Puppet client I see a different error:
{{{
Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not find class apache::mod::dav_fs in namespaces
apache::mod::default at /etc/puppet/modules/apache/manifests/mod/
default.pp:22
}}}
Am I missing any dependencies or do I need to configure any parameters
before using this module? Appreciate all the help.
--
Thanks,
Shantanu
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Ryan Coleman
2012-Aug-24 23:24 UTC
Re: [Puppet Users] puppetlabs apache module syntax errors
Hi Shantanu, On Fri, Aug 24, 2012 at 1:52 PM, Shantanu <knowshantanu@gmail.com> wrote:> > I am getting following errors with the latest puppetlabs-apache > module. I am using Puppet 2.6.16 on CentOS 6.2 OSs and with required > dependency modules firewall (v0.0.4-80-g63fd433) and stdlib (3.0.0-27- > g4e25230) installed in the modulepath.I''m sorry that you''re hitting a problem with this module. Are you using the module from the Forge or are you using the code in development from GitHub?> > I have included only following class to in a node template: > class{''apache'': } > > > When the catalog is being fetched for the first time then I get > following error: > {{{ > Could not retrieve catalog from remote server: Error 400 on SERVER: > Syntax error at ''apache::mod::dav''; expected '']'' at /etc/puppet/ > modules/apache/manifests/mod/dav_fs.pp:2 > > }}} >FWIW, I don''t receive a parse failure like this when I apply just the apache class on a centos 6 machine using Puppet 2.6.16. Is it possible that the copy of the module you have has been modified in some way? Could you reply with the contents of /etc/puppet/modules/apache/manifests/mod/dav_fs.pp ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Aug 24, 6:24 pm, Ryan Coleman <r...@puppetlabs.com> wrote:> Hi Shantanu, > > On Fri, Aug 24, 2012 at 1:52 PM, Shantanu <knowshant...@gmail.com> wrote: > > > I am getting following errors with the latest puppetlabs-apache > > module. I am using Puppet 2.6.16 on CentOS 6.2 OSs and with required > > dependency modules firewall (v0.0.4-80-g63fd433) and stdlib (3.0.0-27- > > g4e25230) installed in the modulepath. > > I''m sorry that you''re hitting a problem with this module. Are you > using the module from the Forge or are you using the code in > development from GitHub? > > > > > I have included only following class to in a node template: > > class{''apache'': } > > > When the catalog is being fetched for the first time then I get > > following error: > > {{{ > > Could not retrieve catalog from remote server: Error 400 on SERVER: > > Syntax error at ''apache::mod::dav''; expected '']'' at /etc/puppet/ > > modules/apache/manifests/mod/dav_fs.pp:2 > > > }}} > > FWIW, I don''t receive a parse failure like this when I apply just the > apache class on a centos 6 machine using Puppet 2.6.16. Is it possible > that the copy of the module you have has been modified in some way? > Could you reply with the contents of > /etc/puppet/modules/apache/manifests/mod/dav_fs.pp ?Thanks for the reply Ryan. I haven''t made any changes after cloning this module (commit 66d5ce9ae). Following are contents of dav_fs manifest file: $ cat /etc/puppet/modules/apache/manifests/mod/dav_fs.pp class apache::mod::dav_fs { Class[apache::mod::dav] -> Class[apache::mod::dav_fs] apache::mod { ''dav_fs'': } } Let me know if you need any additional details. -- Shantanu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ryan Coleman
2012-Aug-27 18:48 UTC
Re: [Puppet Users] Re: puppetlabs apache module syntax errors
On Sun, Aug 26, 2012 at 6:22 PM, Shantanu <knowshantanu@gmail.com> wrote:> Thanks for the reply Ryan. I haven''t made any changes after cloning > this module (commit 66d5ce9ae). Following are contents of dav_fs > manifest file: > > $ cat /etc/puppet/modules/apache/manifests/mod/dav_fs.pp > class apache::mod::dav_fs { > Class[apache::mod::dav] -> Class[apache::mod::dav_fs] > apache::mod { ''dav_fs'': } > }Hi Shantanu, I did manage to replicate this. I apologize for the inconvenience! While this syntax works fine Puppet 2.7, we seem to have missed that it breaks in 2.6. Thankfully, it''s a quick fix. Just enclose the class names in single quotes. We''ll get this resolved for future users of the apache module. To fix, take this line: Class[apache::mod::dav] -> Class[apache::mod::dav_fs] Replace it with this: Class[''apache::mod::dav''] -> Class[''apache::mod::dav_fs''] Again, I''m sorry for the inconvenience! Thanks for letting us know about this. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Shantanu
2012-Sep-11 15:11 UTC
Re: [Puppet Users] Re: puppetlabs apache module syntax errors
On Monday, August 27, 2012 1:48:40 PM UTC-5, Ryan Coleman wrote:> > On Sun, Aug 26, 2012 at 6:22 PM, Shantanu <knowsh...@gmail.com<javascript:>> > wrote: > > Thanks for the reply Ryan. I haven''t made any changes after cloning > > this module (commit 66d5ce9ae). Following are contents of dav_fs > > manifest file: > > > > $ cat /etc/puppet/modules/apache/manifests/mod/dav_fs.pp > > class apache::mod::dav_fs { > > Class[apache::mod::dav] -> Class[apache::mod::dav_fs] > > apache::mod { ''dav_fs'': } > > } > > Hi Shantanu, > > I did manage to replicate this. I apologize for the inconvenience! > While this syntax works fine Puppet 2.7, we seem to have missed that > it breaks in 2.6. Thankfully, it''s a quick fix. Just enclose the class > names in single quotes. We''ll get this resolved for future users of > the apache module. > > To fix, take this line: > Class[apache::mod::dav] -> Class[apache::mod::dav_fs] > > Replace it with this: > Class[''apache::mod::dav''] -> Class[''apache::mod::dav_fs''] > > Again, I''m sorry for the inconvenience! Thanks for letting us know about > this. >Thank you for looking into the issue Ryan. Sorry for the late reply. The syntax error got fixed by putting single quotes around class name while including the class. But, then I got following error: {{{ Failed to apply catalog: Parameter name failed: Could not find resource type ''a2mod'' at /etc/puppet/modules/apache/manifests/init.pp:65 }}} I do have create_resources module installed on the server system. As a temporary workaround, I have removed mod_dir variable definition from params class to avoid a2mod resource call. I have verified that this error doesn''t occur with Puppet 2.7 version. I am planning to use Puppet 2.7 for future tests. Also, I am not sure why a2mod is being called on a CentOS system. Isn''t a2mod typically used by Debian variants? -- Thanks, Shantanu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/kSDeqVzuJjkJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.