[Puppet-dev] Re: Setting environments in 0.25

2009-10-30 Thread Luke Kanies
On Oct 29, 2009, at 10:59 AM, Thomas Bellman wrote: > > Ohad Levy wrote: > >> On Thu, Oct 29, 2009 at 8:17 AM, Luke Kanies > > wrote: >> >>Sorry - what I mean is, does the environment for a given host >> need to >>change frequently from one value to another? E.

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Ohad Levy
On Thu, Oct 29, 2009 at 8:17 AM, Luke Kanies wrote: > > Sorry - what I mean is, does the environment for a given host need to > change frequently from one value to another? E.g., do hosts pop in > and out of testing? > I'm not sure how other people are handing it, but when we follow dev-->test-

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Luke Kanies
On Oct 28, 2009, at 4:22 PM, Nigel Kersten wrote: > > On Wed, Oct 28, 2009 at 4:14 PM, Luke Kanies wrote: >> >> On Oct 28, 2009, at 11:45 AM, Nigel Kersten wrote: >> >>> >>> On Wed, Oct 28, 2009 at 11:38 AM, Luke Kanies >>> wrote: On Oct 28, 2009, at 11:31 AM, Nigel Kersten wrote: >>>

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Nigel Kersten
On Wed, Oct 28, 2009 at 4:14 PM, Luke Kanies wrote: > > On Oct 28, 2009, at 11:45 AM, Nigel Kersten wrote: > >> >> On Wed, Oct 28, 2009 at 11:38 AM, Luke Kanies >> wrote: >>> >>> On Oct 28, 2009, at 11:31 AM, Nigel Kersten wrote: >>> [...] > That I see.  If you're just downloading facts from

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Luke Kanies
On Oct 28, 2009, at 11:45 AM, Nigel Kersten wrote: > > On Wed, Oct 28, 2009 at 11:38 AM, Luke Kanies > wrote: >> >> On Oct 28, 2009, at 11:31 AM, Nigel Kersten wrote: >> [...] That I see. If you're just downloading facts from the server to set the environment, though, how is

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Ian Ward Comfort
On 28 Oct 2009, at 11:28 AM, Luke Kanies wrote: > Someone just proposed a good solution on the ticket: Telling the > server what the client thinks its environment should be, and giving > the server the ability to override it either way. So the server is > always authoritative, but it can ch

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Nigel Kersten
On Wed, Oct 28, 2009 at 11:38 AM, Luke Kanies wrote: > > On Oct 28, 2009, at 11:31 AM, Nigel Kersten wrote: > [...] >>> That I see.  If you're just downloading facts from the server to set >>> the environment, though, how is that fundamentally different from the >>> server owning what environment

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Luke Kanies
On Oct 28, 2009, at 11:31 AM, Nigel Kersten wrote: [...] >> That I see. If you're just downloading facts from the server to set >> the environment, though, how is that fundamentally different from the >> server owning what environment the client belongs to? > > The facts look at local configurati

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Nigel Kersten
On Wed, Oct 28, 2009 at 11:28 AM, Luke Kanies wrote: > > On Oct 28, 2009, at 7:35 AM, Nigel Kersten wrote: > >> >> On Tue, Oct 27, 2009 at 10:03 PM, Luke Kanies >> wrote: >>> >>> On Oct 27, 2009, at 4:58 PM, Nigel Kersten wrote: >>> On Tue, Oct 27, 2009 at 4:32 PM, Luke Kanies wr

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Luke Kanies
On Oct 28, 2009, at 7:35 AM, Nigel Kersten wrote: > > On Tue, Oct 27, 2009 at 10:03 PM, Luke Kanies > wrote: >> >> On Oct 27, 2009, at 4:58 PM, Nigel Kersten wrote: >> >>> >>> On Tue, Oct 27, 2009 at 4:32 PM, Luke Kanies >>> wrote: On Oct 27, 2009, at 3:09 PM, Markus Roberts wrote

[Puppet-dev] Re: Setting environments in 0.25

2009-10-28 Thread Nigel Kersten
On Tue, Oct 27, 2009 at 10:03 PM, Luke Kanies wrote: > > On Oct 27, 2009, at 4:58 PM, Nigel Kersten wrote: > >> >> On Tue, Oct 27, 2009 at 4:32 PM, Luke Kanies wrote: >>> >>> On Oct 27, 2009, at 3:09 PM, Markus Roberts wrote: >>> So one thought, what if there were one (and only one) place t

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Luke Kanies
On Oct 27, 2009, at 5:01 PM, R.I.Pienaar wrote: > > hello, > > - "Luke Kanies" wrote: > >> On Oct 27, 2009, at 4:37 PM, Markus Roberts wrote: >> For instance, I know Volcane has mentioned that the reason he overrides environments on clients is because it's the only way he can

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Luke Kanies
On Oct 27, 2009, at 4:58 PM, Nigel Kersten wrote: > > On Tue, Oct 27, 2009 at 4:32 PM, Luke Kanies wrote: >> >> On Oct 27, 2009, at 3:09 PM, Markus Roberts wrote: >> >>> So one thought, what if there were one (and only one) place to get >>> the environment but the value could optionally be an ex

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread R.I.Pienaar
hello, - "Luke Kanies" wrote: > On Oct 27, 2009, at 4:37 PM, Markus Roberts wrote: > > > > For instance, I know Volcane has mentioned that the reason he > > > overrides environments on clients is because it's the only way he > > > can force ordering. > > > > As in having proto-environments

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Nigel Kersten
On Tue, Oct 27, 2009 at 4:32 PM, Luke Kanies wrote: > > On Oct 27, 2009, at 3:09 PM, Markus Roberts wrote: > >> So one thought, what if there were one (and only one) place to get >> the environment but the value could optionally be an expression/ >> lambda/special token of some sort that would pu

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Markus Roberts
Agreed. On Tue, Oct 27, 2009 at 4:42 PM, Luke Kanies wrote: > > On Oct 27, 2009, at 4:37 PM, Markus Roberts wrote: > > > > For instance, I know Volcane has mentioned that the reason he > > > overrides environments on clients is because it's the only way he > > > can force ordering. > > > > As in

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Luke Kanies
On Oct 27, 2009, at 4:37 PM, Markus Roberts wrote: > > For instance, I know Volcane has mentioned that the reason he > > overrides environments on clients is because it's the only way he > > can force ordering. > > As in having proto-environments that you sequentially pass through > on the way

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Markus Roberts
> For instance, I know Volcane has mentioned that the reason he > overrides environments on clients is because it's the only way he > can force ordering. As in having proto-environments that you sequentially pass through on the way to the final environment (no skipping stages!) or am I missing the

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Markus Roberts
> 1. The environment comes from the client's conf file, unless > > overridden by the command line. Normally, this is a literal string > > value, but it could be one of several special values such as > > "!!FACT[fact name]" or "!!NODE_TOOL" or some such. If one of these is > > used the appropriate

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Luke Kanies
On Oct 27, 2009, at 3:09 PM, Markus Roberts wrote: > So one thought, what if there were one (and only one) place to get > the environment but the value could optionally be an expression/ > lambda/special token of some sort that would pull the value from > some other (specified) location? > >

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread R.I.Pienaar
- "Markus Roberts" wrote: > > So one thought, what if there were one (and only one) place to get > the > > environment but the value could optionally be an > > expression/lambda/special token of some sort that would pull the > value > > from some other (specified) location? > > > > That get

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Markus Roberts
> > So one thought, what if there were one (and only one) place to get the > > environment but the value could optionally be an > > expression/lambda/special token of some sort that would pull the value > > from some other (specified) location? > > > > That gets rid of the whole issue of what-trump

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread R.I.Pienaar
hey, - "Markus Roberts" wrote: > So one thought, what if there were one (and only one) place to get the > environment but the value could optionally be an > expression/lambda/special token of some sort that would pull the value > from some other (specified) location? > > That gets rid of t

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Markus Roberts
So one thought, what if there were one (and only one) place to get the environment but the value could optionally be an expression/lambda/special token of some sort that would pull the value from some other (specified) location? That gets rid of the whole issue of what-trumps-what, or at least sid

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread R.I.Pienaar
> How would the command line work relative to external nodes? > > 1) command line > 2) external nodes > 3) facts > 4) config file > 5) server-side default > > ? > > This is, um, heinous and hideous. Do we really need that much > flexibility in how people use environments? Is there some way

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Peter Meier
> How would the command line work relative to external nodes? as Paul outlined, we might want to force environments, as clients shouldn't be able to switch into a different environment and we don't have any possiblility to restrict access to environment. So I think it should rather be this way:

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Luke Kanies
On Oct 27, 2009, at 8:26 AM, Nigel Kersten wrote: > > On Tue, Oct 27, 2009 at 1:11 AM, Ohad Levy wrote: >> On Tue, Oct 27, 2009 at 4:00 PM, R.I.Pienaar wrote: >>> >>> How was it in 0.24? I think the most sane priority order is: >>> >>> - external nodes >>> - facts >>> - config file >>> >> +1 >

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Nigel Kersten
On Tue, Oct 27, 2009 at 1:11 AM, Ohad Levy wrote: > On Tue, Oct 27, 2009 at 4:00 PM, R.I.Pienaar wrote: >> >> How was it in 0.24? I think the most sane priority order is: >> >> - external nodes >> - facts >> - config file >> > +1 So this all seems related to this bug of mine: http://projects.re

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread Ohad Levy
On Tue, Oct 27, 2009 at 4:00 PM, R.I.Pienaar wrote: > > How was it in 0.24? I think the most sane priority order is: > > - external nodes > - facts > - config file > > +1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[Puppet-dev] Re: Setting environments in 0.25

2009-10-27 Thread R.I.Pienaar
hello, - "Luke Kanies" wrote: > * Change the default environment on the client to a special "ask > >> the > server" environment. Clients that specified an environment in > >> their > configuration or on the command line would use that environment. > Clients that did not

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread Luke Kanies
On Oct 26, 2009, at 4:06 PM, Paul Lathrop wrote: > > On Mon, Oct 26, 2009 at 11:34 AM, Markus Roberts > wrote: >> We have a ticket open (#2748) over a change in behaviour between >> 0.24.x and >> 0.25.x. >> >> In 0.24.x, the environment specified in the client's configuration >> file >> coul

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread Luke Kanies
On Oct 26, 2009, at 12:16 PM, R.I.Pienaar wrote: > > hello, > > - "Luke Kanies" wrote: > >> On Oct 26, 2009, at 11:40 AM, R.I.Pienaar wrote: >> >>> >>> hello, >>> >>> - "Markus Roberts" wrote: >>> * Sites that need this functionality can set up a starting environment for

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread Paul Lathrop
On Mon, Oct 26, 2009 at 11:34 AM, Markus Roberts wrote: > We have a ticket open (#2748) over a change in behaviour between 0.24.x and > 0.25.x. > > In 0.24.x, the environment specified in the client's configuration file > could be overridden by the server using the external_nodes information. > >

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread Nigel Kersten
On Mon, Oct 26, 2009 at 3:07 PM, Markus Roberts wrote: > I'm not sure I follow how setting the environment with a fact works (the > nuts and bolts that is; I understand the idea in the abstract).  Could > someone elucidate? You don't define it in the conf file, and you simply create a fact that

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread Markus Roberts
I'm not sure I follow how setting the environment with a fact works (the nuts and bolts that is; I understand the idea in the abstract). Could someone elucidate? -- Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread Nigel Kersten
On Mon, Oct 26, 2009 at 12:16 PM, R.I.Pienaar wrote: > > hello, > > - "Luke Kanies" wrote: > >> On Oct 26, 2009, at 11:40 AM, R.I.Pienaar wrote: >> >> > >> > hello, >> > >> > - "Markus Roberts" wrote: >> > >> >> * Sites that need this functionality can set up a starting >> >> environmen

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread R.I.Pienaar
hello, - "Luke Kanies" wrote: > On Oct 26, 2009, at 11:40 AM, R.I.Pienaar wrote: > > > > > hello, > > > > - "Markus Roberts" wrote: > > > >> * Sites that need this functionality can set up a starting > >> environment > >> for nodes that only pushes the configuration file, and the >

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread Luke Kanies
On Oct 26, 2009, at 11:40 AM, R.I.Pienaar wrote: > > hello, > > - "Markus Roberts" wrote: > >> * Sites that need this functionality can set up a starting >> environment >> for nodes that only pushes the configuration file, and the >> configuration file can be a template filled in with the

[Puppet-dev] Re: Setting environments in 0.25

2009-10-26 Thread R.I.Pienaar
hello, - "Markus Roberts" wrote: > * Sites that need this functionality can set up a starting environment > for nodes that only pushes the configuration file, and the > configuration file can be a template filled in with the appropriate > external_node parameters. This will require an extra