Project

General

Profile

Actions

User story #2063

closed

Add a screen in administration to save configuration rules

Added by François ARMAND over 12 years ago. Updated about 12 years ago.

Status:
Released
Priority:
2
Category:
Web - Maintenance
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

We want to be able to save configuration rules to the files system, accordingly to http://www.rudder-project.org/foswiki/Development/Pi_cr_group_export_import.

That means:

  • add a sub-menu in administration screen for "Import / export policies"
  • add a button to export (archive ?) configuration rules
  • when the button is clicked, the content of /var/rudder/configuration-repository/configuration-rules is updated to the new configuration rules:
    • remove all existing configuration rules
    • add new ones
    • git add "configuration-rules" and commit

The last step raises interesting mutex question with other part of the git repository: what happens if the user request (in the OS) a git commit just after all cr were removed ? Not to grave if then, they are added back, but there is certainly interesting race conditions hiding in the mix.

Actions

Also available in: Atom PDF