I am using environments to manage my modules. I am using manifests out of the manifestdir as well, per environment. So my config for my development environment looks like this: [development] modulepath = /usr/share/puppet/development/modules manifestdir = /usr/share/puppet/development/manifests I have several manifests in the manifestdir that define classes which subsequently are used by classes in several of my modules. However, when the puppetmaster tries to pull everything during a run, it cannot find the classes defined in the manifests in my manifestdir, when referenced by the manifests in my modules. Maybe I misunderstood the purpose of the manifestdir, but it is certainly not behaving the way I expected. My understanding is that all manifests (in manifestdir and in modules) are evaluated and everything at the top level of the manifest is bound to puppet''s global namespace for that run. If the manifests in the manifestdir are not included in that evaluation then I definitely need to reorganize my manifests. My preference is to use the manifestdir the way I have it set up. Thanks. -eric -- 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.
Jeff McCune
2010-Nov-05 19:49 UTC
Re: [Puppet Users] trouble using manifests out of manifestdir
Eric, I recommend defining classes inside of modules rather than manifestdir. The two settings pertaining to environments are manifest and modulepath, I do not believe manifestdir is customizable per environment. Hope thus helps. -- Jeff McCune - (+1-503-208-4484) On Nov 5, 2010, at 10:33 AM, Eric Snow <esnow@verio.net> wrote:> I am using environments to manage my modules. I am using manifests > out of the manifestdir as well, per environment. So my config for my > development environment looks like this: > > [development] > modulepath = /usr/share/puppet/development/modules > manifestdir = /usr/share/puppet/development/manifests > > I have several manifests in the manifestdir that define classes which > subsequently are used by classes in several of my modules. However, > when the puppetmaster tries to pull everything during a run, it cannot > find the classes defined in the manifests in my manifestdir, when > referenced by the manifests in my modules. > > Maybe I misunderstood the purpose of the manifestdir, but it is > certainly not behaving the way I expected. My understanding is that > all manifests (in manifestdir and in modules) are evaluated and > everything at the top level of the manifest is bound to puppet''s > global namespace for that run. If the manifests in the manifestdir > are not included in that evaluation then I definitely need to > reorganize my manifests. My preference is to use the manifestdir the > way I have it set up. Thanks. > > -eric > > -- > 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.
Eric Snow
2010-Nov-05 20:33 UTC
[Puppet Users] Re: trouble using manifests out of manifestdir
Jeff, Thanks for the advice. What is the manifestdir setting for? -eric On Nov 5, 1:49 pm, Jeff McCune <j...@puppetlabs.com> wrote:> Eric, > > I recommend defining classes inside of modules rather than > manifestdir. The two settings pertaining to environments are manifest > and modulepath, I do not believe manifestdir is customizable per > environment. > > Hope thus helps. > > -- > Jeff McCune - (+1-503-208-4484) > > On Nov 5, 2010, at 10:33 AM, Eric Snow <es...@verio.net> wrote: > > > > > > > > > I am using environments to manage my modules. I am using manifests > > out of the manifestdir as well, per environment. So my config for my > > development environment looks like this: > > > [development] > > modulepath = /usr/share/puppet/development/modules > > manifestdir = /usr/share/puppet/development/manifests > > > I have several manifests in the manifestdir that define classes which > > subsequently are used by classes in several of my modules. However, > > when the puppetmaster tries to pull everything during a run, it cannot > > find the classes defined in the manifests in my manifestdir, when > > referenced by the manifests in my modules. > > > Maybe I misunderstood the purpose of the manifestdir, but it is > > certainly not behaving the way I expected. My understanding is that > > all manifests (in manifestdir and in modules) are evaluated and > > everything at the top level of the manifest is bound to puppet''s > > global namespace for that run. If the manifests in the manifestdir > > are not included in that evaluation then I definitely need to > > reorganize my manifests. My preference is to use the manifestdir the > > way I have it set up. Thanks. > > > -eric > > > -- > > 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 athttp://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.
Jeff McCune
2010-Nov-06 19:37 UTC
Re: [Puppet Users] Re: trouble using manifests out of manifestdir
On Nov 5, 2010, at 1:33 PM, Eric Snow wrote:> Jeff, > > Thanks for the advice. What is the manifestdir setting for?manifestdir has been around for quite some time, before we even had modules in Puppet. It''s where classes were kept at the time. From my experiences, the community and vast majority of puppet users have switched to maintaining classes in modules and the modulepath rather than classes in manifestdir. Similarly, the manifest setting is intended for node classification and not for declaring classes. An alternative is to use an external node classifier. Hope this information helps, -Jeff -- 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.
Jeff McCune
2010-Nov-06 19:58 UTC
Re: [Puppet Users] Re: trouble using manifests out of manifestdir
On Nov 5, 2010, at 1:33 PM, Eric Snow wrote:> Jeff, > > Thanks for the advice. What is the manifestdir setting for?manifestdir has been around for quite some time, before we even had modules in Puppet. It''s where classes were kept at the time. From my experiences, the community and vast majority of puppet users have switched to maintaining classes in modules and the modulepath rather than classes in manifestdir. Similarly, the manifest setting is intended for node classification and not for declaring classes. An alternative is to use an external node classifier. Hope this information helps, -Jeff -- 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.
Nigel Kersten
2010-Nov-06 20:58 UTC
Re: [Puppet Users] Re: trouble using manifests out of manifestdir
On Sat, Nov 6, 2010 at 12:37 PM, Jeff McCune <jeff@puppetlabs.com> wrote:> On Nov 5, 2010, at 1:33 PM, Eric Snow wrote: > > > Jeff, > > > > Thanks for the advice. What is the manifestdir setting for? > > manifestdir has been around for quite some time, before we even had modules > in Puppet. It''s where classes were kept at the time. From my experiences, > the community and vast majority of puppet users have switched to maintaining > classes in modules and the modulepath rather than classes in manifestdir. > > Similarly, the manifest setting is intended for node classification and not > for declaring classes. An alternative is to use an external node classifier. >It is counter-intuitive that the setting appears to be accepted, but has no effect. I filed http://projects.puppetlabs.com/issues/5218 to try and emit warnings when people use config settings in environment blocks that aren''t going to have any effect.> > Hope this information helps, > -Jeff > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten - Puppet Labs - http://www.puppetlabs.com -- 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.