sateesh
2012-Feb-03 08:19 UTC
[Puppet Users] Include the class of modules in master manifest
Hi, How to include the class of module in the manifests. Please find below the details of file location. The puppet location is /etc/puppet/ In that location I have manifests and modules folder. In modules, I have module "abc" in which I have xyz manifest. xyz has following code located in /etc/puppet/modules/abc/manifests/ xyz.pp: class abc::xyz{ ...code here... } now I want to include the abc::xyz class in the root manifests file located in /etc/puppet/manifests/site.pp. I am able to include the statement "include abc", but when I try to include "include abc::xyz", I am getting "Could not find class abc::xyz" error when I run the command "puppet apply --verbose site.pp" Please let me know how to include that class in site.pp. Thanks in advance, Sateesh B. -- 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.
sateesh
2012-Feb-03 09:08 UTC
[Puppet Users] Re: Include the class of modules in master manifest
Got it. Solved the problem. On Feb 3, 1:19 pm, sateesh <bbalasate...@gmail.com> wrote:> Hi, > > How to include the class of module in the manifests. Please find below > the details of file location. The puppet location is /etc/puppet/ > > In that location I have manifests and modules folder. > In modules, I have module "abc" in which I have xyz manifest. > xyz has following code located in /etc/puppet/modules/abc/manifests/ > xyz.pp: > > class abc::xyz{ > ...code here... > > } > > now I want to include the abc::xyz class in the root manifests file > located in /etc/puppet/manifests/site.pp. > > I am able to include the statement "include abc", but when I try to > include "include abc::xyz", I am getting "Could not find class > abc::xyz" error when I run the command "puppet apply --verbose > site.pp" > > Please let me know how to include that class in site.pp. > > Thanks in advance, > Sateesh B.-- 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.
Dan White
2012-Feb-03 13:17 UTC
Re: [Puppet Users] Re: Include the class of modules in master manifest
How, please ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) ----- sateesh <bbalasateesh@gmail.com> wrote:> Got it. Solved the problem. > > On Feb 3, 1:19 pm, sateesh <bbalasate...@gmail.com> wrote: > > Hi, > > > > How to include the class of module in the manifests. Please find below > > the details of file location. The puppet location is /etc/puppet/ > > > > In that location I have manifests and modules folder. > > In modules, I have module "abc" in which I have xyz manifest. > > xyz has following code located in /etc/puppet/modules/abc/manifests/ > > xyz.pp: > > > > class abc::xyz{ > > ...code here... > > > > } > > > > now I want to include the abc::xyz class in the root manifests file > > located in /etc/puppet/manifests/site.pp. > > > > I am able to include the statement "include abc", but when I try to > > include "include abc::xyz", I am getting "Could not find class > > abc::xyz" error when I run the command "puppet apply --verbose > > site.pp" > > > > Please let me know how to include that class in site.pp. > > > > Thanks in advance, > > Sateesh B. > > -- > 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. >-- 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.