Douglas Garstang
2011-Feb-22 22:57 UTC
[Puppet Users] Puppet 2.6 and extlookup... and environments
I just incorporated environments into my puppet... On the server... [main] ... [pax] manifest = /etc/puppet/env/pax_prod/manifests/site.pp modulepath = /etc/puppet/env/pax_prod/modules [fre] manifest = /etc/puppet/env/fre_prod/manifests/site.pp modulepath = /etc/puppet/env/fre_prod/modules [agent] ... and I changed the environment to be pax_prod on the client accordingly. However, when puppet encounters this: $ns_primary = extlookup("ns_primary", "", "default_${domain}") it doesn''t give $ns_primary a value. The file was previously in the directory /etc/puppet/manifests/extdata, but now with the environments it''s been moved to /etc/puppet/env/pax_prod/manifests/extdata. Do I have to do anything special? Doug. -- 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.
Joe McDonagh
2011-Feb-23 14:29 UTC
Re: [Puppet Users] Puppet 2.6 and extlookup... and environments
You have to edit the environment''s site.pp to point to the new extdata folder. On 02/22/2011 05:57 PM, Douglas Garstang wrote:> I just incorporated environments into my puppet... > > On the server... > > [main] > ... > > [pax] > manifest = /etc/puppet/env/pax_prod/manifests/site.pp > modulepath = /etc/puppet/env/pax_prod/modules > > [fre] > manifest = /etc/puppet/env/fre_prod/manifests/site.pp > modulepath = /etc/puppet/env/fre_prod/modules > > [agent] > ... > > and I changed the environment to be pax_prod on the client > accordingly. However, when puppet encounters this: > > $ns_primary = extlookup("ns_primary", "", "default_${domain}") > > it doesn''t give $ns_primary a value. The file was previously in the > directory /etc/puppet/manifests/extdata, but now with the environments > it''s been moved to /etc/puppet/env/pax_prod/manifests/extdata. > > Do I have to do anything special? > > Doug. > > > > > -- > 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.-- Joe McDonagh AIM: YoosingYoonickz IRC: joe-mac on freenode "When the going gets weird, the weird turn pro." -- 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.