hello, ----- "Luke Kanies" <[email protected]> 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 specify an environment would request it > from > >> the > >>>> server, imposing a small overhead only for machines that needed > >> it. > >>>> This would require a somewhat larger code change. > >>> > >>> Even nicer. I assume we can then specify on the server the > default > >>> environment that all unconfigured nodes would end up in? This > would > >>> be very nice indeed. > >> > >> Yes. The "somewhat larger" code change part, though, is both more > >> code and decent bit more complexity - having values vary based on > >> client vs. server is annoyingly complicated. > > > > > > But it isn't really different behavior from what we had in 0.24.x so > > > I think there's an expectation. I can see how it's a pain code wise > > > though. > > I'ts more of a pain data-flow-wise than code, I think. In talking it > > over with Markus today it became clear how, um, unclear the whole "who > > owns the environment" thing really is. > > 0.24 was relatively straightforward in this area if you only did > simple things, but it was complicated enough that if you did anything > > weird than I think it quickly turned into craziness. > > >>> Keeping in mind that it is also very desirable to be able to set > the > >>> environment via a fact. > >> > >> Hmm. Using facts complicates things even further, because it's > >> another way for the client to specify the environment. Why do you > >> want to be able to do that? > > > > machines know where they are and in what environment they are, it > > seems a logical extension. I've never seen this documented as > > something that should work, but always been glad it does :) > > > > I think Nigel use this method extensively as well, and it does work > > > with 0.25.1rc2 > > Who should win between facts and external nodes? How was it in 0.24? I think the most sane priority order is: - external nodes - facts - config file -- R.I.Pienaar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
