Project

General

Profile

Actions

User story #12614

closed

Add scripts to help migrate techniques to rudder server command

User story #12614: Add scripts to help migrate techniques to rudder server command

Added by Félix DALLIDET almost 8 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Update the technique migration script to only use rudder API calls, previous version is defined here: https://github.com/amousset/rudder-agent/commit/5db7a1cdbee317dc4579a96de2f226a4ee0106c1.

A script to replace a directive by another one in each rule could be useful when upgrading techniques.

Updated by Félix DALLIDET almost 8 years ago Actions #1

  • Target version changed from Ideas (not version specific) to 4.1.12

Updated by Félix DALLIDET almost 8 years ago Actions #2

  • Status changed from New to In progress

Updated by Félix DALLIDET almost 8 years ago Actions #3

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-agent/pull/174

Updated by Félix DALLIDET almost 8 years ago Actions #4

  • Target version changed from 4.1.12 to 4.3.2

Updated by Félix DALLIDET almost 8 years ago Actions #5

  • Pull Request changed from https://github.com/Normation/rudder-agent/pull/174 to https://github.com/Normation/rudder-agent/pull/175

Updated by Félix DALLIDET almost 8 years ago Actions #6

  • Status changed from Pending technical review to Pending release

Updated by Félix DALLIDET over 7 years ago Actions #7

  • Subject changed from Update the technique migration script to Add scripts to help migrate techniques
2 bash scripts where added to automate the technique migration:
  • rudder directive replace [-iIvdq] [-c] -o <old-directive-id> -n <new-directive>
    Will replace in all the rules the directive <old-directive-id> by <new-directive-id>. Options -v is for verbose mode and -c to disable the colored output.
  • rudder technique migrate [-iIcvd] -n technique_name [target_technique_version]
    Will migrate all the directives based on the technique <technique_name> in the version [target_technique_version]. This is equivalent to a manual migration via the interface.
    If no [target_technique_version] is given it will look for the latest available one.

/!\ The scripts are minimalist and will only raise an error when the actions fail and not execute any kind of tests to ensure that the changes are coherent.

Updated by Vincent MEMBRÉ over 7 years ago Actions #8

  • Subject changed from Add scripts to help migrate techniques to Add scripts to help migrate techniques to rudder server command

Updated by Vincent MEMBRÉ over 7 years ago Actions #9

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.2 which was released today.

Actions

Also available in: PDF Atom