I wanted to start a discussion on environments, based on the results of some stuff me and Volcane have been trying. I spoke to lak about the default puppet behaviour, and why I think it should be changed. I want to solicit some opinions on if other people would agree with this.
The problem is that currently clients require an awareness of the servers environment configuration if you are defining all your environments through puppet.conf. The current behaviour is as follows: * You define environment = bootstrap for puppetmaster. * You define environments = development, bootstrap for puppetmaster. * You install a brand new server with a default puppet.conf containing neither of the above variables. On the first run the client will default to environment = development, and run the wrong set of modules. If you add environment = bootstrap into puppet.conf on the client, it will fail because environments = isn't set. This is because both the client and the server must be in sync and know the information about environments. What I want to happen: 1/ When the client starts and has no environment = set, it should send no information on its environment to the server. The server should check if a client returns no information, and if so it should set the clients environment to whatever it has set for environment = under [puppetmasterd]. 2/ A client should never require knowledge of environments =. If an environment is set, it should send it to the server and the server should parse its environments = list for a match. If one is found, proceed, if not, fail. I do not think this would require any new APIs or significant development, but I am unfamilar with the internals of puppet so if anyone knows differently please let me know. If you think that it would be a mistake for the server to control this functionality, I'd like to hear your reasoning. Thanks, --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
