Project

General

Profile

Actions

User story #2066

closed

CFEngine should use a file repository to store all backup copies of edited/copied files

Added by Jonathan CLARKE over 12 years ago. Updated about 9 years ago.

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

Description

See http://cfengine.com/manuals/cf3-reference.html#default_005frepository-in-agent. We should set this by default in our policy, to use /var/rudder/modified-files.

To make this the most efficient possible, please also check that our copy_from and edit_defaults bodies have copy_backup and edit_backup set to "timestamp" ( not just "true" ). See http://cfengine.com/manuals/cf3-reference.html#edit_005fdefaults-in-files.

This combination will cause any files that are edited to first be saved - for example, if modifying /etc/sudoers today, the original will be saved in something like /var/rudder/modified-files/_etc_sudoers.cfsaved.20111122134500.

Actions #1

Updated by Nicolas CHARLES over 12 years ago

  • Status changed from 2 to Pending technical review
  • % Done changed from 0 to 100

Applied in changeset commit:d18899b8eb63e12be543283d0412f031b5f65b64.

Actions #2

Updated by Jonathan CLARKE over 12 years ago

  • Status changed from Pending technical review to In progress

Technical review: looks good to me for main PT, but initial promises need updating too.

Actions #3

Updated by Nicolas CHARLES over 12 years ago

  • Status changed from In progress to Pending technical review

Applied in changeset commit:a0299e112bb3e9ced92b285f4f42ebfbd27c9ded.

Actions #4

Updated by Jonathan CLARKE over 12 years ago

  • Status changed from Pending technical review to 10
Actions #5

Updated by Jonathan CLARKE over 12 years ago

  • Status changed from 10 to Released
Actions #6

Updated by Benoît PECCATTE about 9 years ago

  • Category changed from 14 to Web - Config management
Actions

Also available in: Atom PDF