Well isn't that handy! On Fri, Dec 30, 2011 at 12:57 PM, R.I.Pienaar <r...@devco.net> wrote: > > > ----- Original Message ----- >> Thanks. >> >> On Fri, Dec 30, 2011 at 12:51 PM, Aaron Grewell >> <aaron.grew...@gmail.com> wrote: >> > You get only the host name from the agent. When I did this using a >> > YAML-based ENC I checked each environment directory in turn for a >> > file matching the hostname and just made sure to only create it in the >> > proper place. > > before calling your ENC it will write out the YAML files for each node in > the vardir, so you could load that up and get the current facts - including > the environment fact > > >> > >> > On Fri, Dec 30, 2011 at 12:29 PM, Douglas Garstang >> > <doug.garst...@gmail.com> wrote: >> >> I'm using external nodes. I wanted to break up the node files into >> >> directories based on say, the environment, dev, prod etc. Does >> >> puppet >> >> set anything besides the host name when it calls the external node >> >> script, such as the environment? Are these variables available as >> >> environment variables ? >> >> >> >> 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+unsubscr...@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+unsubscr...@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/puppet-users?hl=en. >> > >> >> >> >> -- >> Regards, >> >> Douglas Garstang >> http://www.linkedin.com/in/garstang >> Email: doug.garst...@gmail.com >> Cell: +1-805-340-5627 >> >> -- >> 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+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> >> > > -- > R.I.Pienaar > > -- > 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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.