Hello everyone,
I'm a new Forman user and in a front of an incomprehension.
I'm working with 2 different environments, in both environment I've the
same puppet module, with the same class name but with a different class
parameter value:
···
------------------------
Production:
Test_module1:
class test ( $test_version="v1" ) {
}
Development:
Test_module1:
class test ( $test_version=“v2” ) {
}
When I use Foreman to override the parameter value, my default value is
changed on all environment.
How can I manage my class parameter by environment ?
I would like to change my parameter in development environment without
impacted my production, is it possible ?
Thanks a lot for you help!
Cheers
Greg
Sorry,
My environment is the following
RELEASE: Red Hat Enterprise Linux Server release 6.5 (Santiago)
FOREMAN: 1.4.0
RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
PUPPET: 3.4.2
Just for complementary information,
When I ask to the REST API, my parameter ID is the same for all
environments.
is it a normal status ?
https://puppetsrv/api/v2/puppetclasses/86
- {
-
"id": 86,
-
"name": "test_module1",
-
"created_at": "2014-03-19T12:01:34Z",
-
"updated_at": "2014-03-19T12:01:34Z",
-
"smart_variables":
-
[
-
],
-
"smart_class_parameters":
-
[
-
{
-
"parameter": "test_version",
-
"id": 266
-
}
-
],
-
"environments":
-
[
-
{
-
"name": "development",
-
"id": 4
-
},
-
{
-
"name": "production",
-
"id": 1
-
}
-
],
-
"":
-
[
-
]
- }