Bug #2895

Parameters added to a class do not get added when running an import via rake

Added by Jason Montleon over 4 years ago. Updated over 4 years ago.

Status:Closed
Priority:High
Assigned To:Dominic Cleal
Category:Puppet integration
Target version:Sprint 16
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-
Release1.3.1Release relationshipAuto

Description

Have a test class like and import it into foreman:
class base ( $test = true, $othertest = false ) {

}

Add a parameter:
class base ( $test = true, $othertest = false, $otherothertest = true ) {

}

Run an import:
[root@s02 ~]# cd /usr/share/foreman
[root@s02 foreman]# RAILS_ENV=production /usr/bin/ruby193-rake puppet:import:puppet_classes
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
Evaluating possible changes to your installation
No changes detected

But go into the UI and import and get:
development Update: base

Associated revisions

Revision bb9d0a07
Added by Dominic Cleal over 4 years ago

fixes #2895 - apply updates to environments on puppet class import

Revision 736c890d
Added by Dominic Cleal over 4 years ago

fixes #2895 - apply updates to environments on puppet class import

(cherry picked from commit bb9d0a07f751203c216eb3e0d18b832d4b7a5da0)

History

#1 Updated by Dominic Cleal over 4 years ago

  • Subject changed from Parameters added to a class do not get added when running an import via fron to Parameters added to a class do not get added when running an import via rake
  • Category set to Puppet integration

#2 Updated by Dominic Cleal over 4 years ago

  • Status changed from New to Assigned
  • Assigned To set to Dominic Cleal

The rake task only seems to take 'new' and 'obsolete' environments, not updated ones.

#3 Updated by Dominic Cleal over 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Target version set to Sprint 16

#4 Updated by Dominic Cleal over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Dominic Cleal over 4 years ago

  • Release set to 1.3.1

Also available in: Atom PDF