Architecture #13622
closedAdd a flag library to store persistent context on the agents
Description
This lib will be part of 20_cfe_basics.
It will allow storing a persisting database of flags that will be usable in the agents. Flags are somehow like persistent conditions but:
- They have no expiration date
- They are kept when resetting agent state
This will allow use cases like executing a command only once on a system.
The storage format will be a json file containing:
{ "flag_name_1": { "created": "20181008-...." }, "flag_name_2": { "created": "20181008-...." } }
The file is by default in /var/rudder/agent-data/flags.json
, and configurable in ncf.conf
.
This library should provide methods to:
- Load the flags into a variable
- Reserve a flag (set the persistent class, fails of already present)
- Set a flag
- (Get a flag)
- (Unset a flag)
Updated by Alexis Mousset about 6 years ago
- Project changed from Rudder to 41
- Category set to Generic methods
Updated by Alexis Mousset about 6 years ago
- Status changed from New to In progress
Updated by Alexis Mousset about 6 years ago
Work in progess here: https://github.com/amousset/ncf/commit/310cd2d9b3b0b5e78a8528f6175aab45e3ff54ff
Updated by Alexis Mousset about 6 years ago
Work in progess here: https://github.com/amousset/ncf/commit/e28bdf0538b8d3c963974901e74dc3a92eb35dae
Updated by Alexis Mousset about 6 years ago
Work in progess here: https://github.com/amousset/ncf/commit/0d381431d97c1c1b6091daf2ca30aa0d357b1197
Updated by Alexis Mousset about 6 years ago
Work in progess here: https://github.com/amousset/ncf/commit/8c71954fb759c79e026e7b7b46e9527b1f9a8be3
Updated by Alexis Mousset about 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Alexis Mousset to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/ncf/pull/847
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.3.5 to 4.3.6
Updated by Alexis Mousset about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset commit:5aac1ee3474058a3a0243bb473b12e62cead6fa0.
Updated by Alexis Mousset about 6 years ago
Applied in changeset commit:5e744cb8898d97592499301f12864e13a2d0007c.
Updated by Alexis Mousset about 6 years ago
- Subject changed from Add a flag library to Add a flag library to store persistent context on the agents
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending release to Released
Updated by Alexis Mousset over 2 years ago
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods