Class parameter default value changed on all environments

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

  1. {
  2. "id": 86,
    
  3. "name": "test_module1",
    
  4. "created_at": "2014-03-19T12:01:34Z",
    
  5. "updated_at": "2014-03-19T12:01:34Z",
    
  6. "smart_variables":
    
  7. [
    
  8. ],
    
  9. "smart_class_parameters":
    
  10. [
    
  11.     {
    
  12.         "parameter": "test_version",
    
  13.         "id": 266
    
  14.     }
    
  15. ],
    
  16. "environments":
    
  17. [
    
  18.     {
    
  19.         "name": "development",
    
  20.         "id": 4
    
  21.     },
    
  22.     {
    
  23.         "name": "production",
    
  24.         "id": 1
    
  25.     }
    
  26. ],
    
  27. "":
    
  28. [
    
  29. ]
    
  30. }