Project

General

Profile

Actions

Bug #7517

closed

Puppet class parameter not removed from environment after an import

Added by Anthony Lapenna over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet integration
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Here is a description of my problem:

I've a Puppet class class_A and 2 environments env_A and env_B.

Here is a description of my class present in env_A AND env_B:

class class_A ($param_A) {
...
}

I want to upgrade the definition of the class in env_B only with the following:

class class_A ($param_B, $param_C) {
...
}

So I upload my new module definition to the puppetmaster and trigger an import on Foreman.

Now, if I check in Configure > Puppet classes > class_A > Smartclass parameters I can see that:

  • My new parameters param_B and param_C are present for the environment env_B only
  • The parameter param_A is still present in env_B

It is annoying because if I try to a Puppet run on a host from env_B, it can't run saying unable to locate parameter param_A.

I had to delete the param_A from my Puppet classe, which also removed the parameter from the environment env_A causing error in the puppet runs for that environment.


Related issues 4 (1 open3 closed)

Related to Foreman - Bug #2369: Paramaterized classes persist through import after parameters have been removedNew04/02/2013Actions
Has duplicate Foreman - Bug #10377: Re-importing an environment where class parameters were removed does not remove those parameters in Foreman's class signaturesDuplicate05/05/2015Actions
Has duplicate Foreman - Bug #12579: Class Parameters are not separated for different environmentsDuplicate11/24/2015Actions
Has duplicate Foreman - Bug #3086: Import puppet classes fails to update classesDuplicate09/13/2013Actions
Actions

Also available in: Atom PDF