Puppet classes cloned with git in different environments

Hello ! Lets say i want to use 2 environments : production and development
development is a git clone of production
if i modify a class named "ntp" in the dev environment adding a new class
parameter for example, i do a new import from foreman, it says it updates
the env environment BUT modification is also effective in prod environment.
In the puppet class view in foreman, there is still only on line saying
"ntp" class belongs to both environments, and when i edit i see my new
class parameter.
I didn't commit to prod, so in prod env this new class parameter doesn't
exist
How can i handle this in foreman plz ?

Check out r10k: https://github.com/adrienthebo/r10k

Also check out: http://nvie.com/posts/a-successful-git-branching-model/

ยทยทยท On Friday, May 23, 2014 11:40:34 AM UTC-4, Alexandre Barth wrote: > > Hello ! Lets say i want to use 2 environments : production and development > development is a git clone of production > if i modify a class named "ntp" in the dev environment adding a new class > parameter for example, i do a new import from foreman, it says it updates > the env environment BUT modification is also effective in prod environment. > In the puppet class view in foreman, there is still only on line saying > "ntp" class belongs to both environments, and when i edit i see my new > class parameter. > I didn't commit to prod, so in prod env this new class parameter doesn't > exist > How can i handle this in foreman plz ? >