Hello, I am testing puppet and I have the following situation. OS: Centos 5 Puppet version: 2.6.4 If I create a class to do something and I I run it in some nodes in the default manifest directories, puppet works and does the stuff for me. If I try to do use the most simple module example out there in puppet-labs or other sites, it does not give me any problem. I have a test module called basic with the structure by the book in / opt/puppet-modules/basic. As per this guide: http://docs.puppetlabs.com/guides/modules.html In puppet.conf: [master] ... ... modulepath = /etc/puppet/modules:/opt/puppet-modules In the /etc/puppet/manifests/nodes/testnode.pp node ''testnode'' inherits ''basic'' {} When I do puppet kick testnode, I get a success, I see the catalog being loaded in the client, but nothing gets delivered. So, how do I use modules, as I am pretty sure that the module is correct? Many thanks in advance :-) Guillem -- 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 Mon, Mar 7, 2011 at 10:20 AM, Guillem Liarte <guillem.liarte@googlemail.com> wrote:> Hello, > > I am testing puppet and I have the following situation. > > OS: Centos 5 > Puppet version: 2.6.4 > > > If I create a class to do something and I I run it in some nodes in > the default manifest directories, puppet works and does the stuff for > me. If I try to do use the most simple module example out there in > puppet-labs or other sites, it does not give me any problem. > > I have a test module called basic with the structure by the book in / > opt/puppet-modules/basic. > > As per this guide: > http://docs.puppetlabs.com/guides/modules.html > > > In puppet.conf: > > [master] > > ... > ... > > modulepath = /etc/puppet/modules:/opt/puppet-modules > > > In the /etc/puppet/manifests/nodes/testnode.pp > > node ''testnode'' inherits ''basic'' {}node inherits from another node. If you have a module basic and in init.pp it contains a class basic, the way to include it is: node ''testnode'' { class { basic: } } or node ''testnode'' { include basic } Nan -- 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 07/03/11 18:35, Nan Liu wrote:> On Mon, Mar 7, 2011 at 10:20 AM, Guillem Liarte > <guillem.liarte@googlemail.com> wrote: >> Hello, >> >> I am testing puppet and I have the following situation. >> >> OS: Centos 5 >> Puppet version: 2.6.4 >> >> >> If I create a class to do something and I I run it in some nodes in >> the default manifest directories, puppet works and does the stuff for >> me. If I try to do use the most simple module example out there in >> puppet-labs or other sites, it does not give me any problem. >> >> I have a test module called basic with the structure by the book in / >> opt/puppet-modules/basic. >> >> As per this guide: >> http://docs.puppetlabs.com/guides/modules.html >> >> >> In puppet.conf: >> >> [master] >> >> ... >> ... >> >> modulepath = /etc/puppet/modules:/opt/puppet-modules >> >> >> In the /etc/puppet/manifests/nodes/testnode.pp >> >> node ''testnode'' inherits ''basic'' {} > node inherits from another node. If you have a module basic and in > init.pp it contains a class basic, the way to include it is: > > node ''testnode'' { > class { basic: } > } > > or > > node ''testnode'' { > include basic > } > > NanNan, Thank you, now it does read the catalog including the module ''basic''. I now have other issues like syntax but I am now in the correct road. Thanks a lot ! :-) -- 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.