Project

General

Profile

Bug #2895

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

Added by Jason Montleon about 5 years ago. Updated 3 months ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Puppet integration
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

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 (diff)
Added by Dominic Cleal about 5 years ago

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

Revision 736c890d (diff)
Added by Dominic Cleal almost 5 years ago

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

(cherry picked from commit bb9d0a07f751203c216eb3e0d18b832d4b7a5da0)

History

#1 Updated by Dominic Cleal about 5 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 about 5 years ago

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

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

#3 Updated by Dominic Cleal about 5 years ago

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

#4 Updated by Dominic Cleal about 5 years ago

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

#5 Updated by Dominic Cleal about 5 years ago

  • Legacy Backlogs Release (now unused) set to 1

Also available in: Atom PDF