On Wed, May 2, 2012 at 8:18 AM, R.I.Pienaar <r...@devco.net> wrote:

>
>
> ----- Original Message -----
> > From: "Nigel Kersten" <ni...@puppetlabs.com>
> > To: puppet-users@googlegroups.com
> > Sent: Wednesday, May 2, 2012 4:10:16 PM
> > Subject: Re: [Puppet Users] Using fact to determine node environment
> >
> >
> >
> >
> > On Wed, May 2, 2012 at 4:19 AM, R.I.Pienaar < r...@devco.net > wrote:
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > > From: "John Kennedy" < skeb...@gmail.com >
> > > To: puppet-users@googlegroups.com
> > > Sent: Wednesday, May 2, 2012 11:59:49 AM
> > > Subject: [Puppet Users] Using fact to determine node environment
> > >
> > > We have a custom fact that we wrote to determine which (business)
> > > environment a specific server belongs to (test, stage, production).
> > > We want to set up puppet environments (again, test, stage, and
> > > production).
> > > Is it possible to use our custom fact to set which environment a
> > > node
> > > belongs to?
> >
> > your only option at present is to write out puppet.conf using a
> > template
> > with your fact
> >
> >
> >
> >
> > Unless something broke it recently, I ran for years with a fact that
> > returned ":environment" and didn't set it in puppet.conf at all.
>
> yes, it broke.  You'll get a mix of files from one environment and classes
> from another etc, puppet.conf is the only option now
>
>
I think you're thinking of the ENC setting the environment, not a fact
called 'environment' RI?

-- 
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.

Reply via email to