On Tue, Jan 18, 2011 at 7:16 PM, Bostjan Skufca <
bostjan.skufca.w...@gmail.com> wrote:

> > I work around this by setting a variable in the node definition if I
> > want the client to use an environment other than production by default.
> > My puppet client class then uses this variable value as the environment
> > value in the clients puppet.conf (via a template)
>
> This is my current setup too, btw I use two puppet instances which
> manage each other (and one manages everything else too). This way it
> is way harder to lock yourself out of automation.
>
> But I want to set it on master for various reasons (mainly security
> and node separation, various environments for various clients (not
> puppet clients, but company clients) which should not be able to see
> other client's stuff by just changing the environment manually).
>

if you use an external node classifier, you can set it there.

http://docs.puppetlabs.com/guides/external_nodes.html


> Tnx,
> b.
>
>
>
>
> On 19 jan., 04:08, Michael Knox <michael.knox...@gmail.com> wrote:
> > On 19/01/11 1:41 PM, Bostjan Skufca wrote:> Hi again!
> >
> > > Is there any way to override client-specified environment in puppet
> > > master? I would like my puppetmaster node definition to set the real
> > > environment the node is in.
> >
> > I don't think there is directly ...
> >
> > I work around this by setting a variable in the node definition if I
> > want the client to use an environment other than production by default.
> > My puppet client class then uses this variable value as the environment
> > value in the clients puppet.conf (via a template)
> >
> > There's been a bit of discussion on this ...  a quick search didn't show
> > up a ticket though ... my foo's probably failing me today.
>
> --
> 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<puppet-users%2bunsubscr...@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.

Reply via email to