User story #8720
closed
User story #6733: Allow Node properties to be used in directives and ncf techniques
Generate a json file containing node properties for each node
Added by François ARMAND over 8 years ago.
Updated over 8 years ago.
Category:
Web - Config management
Description
This is from Rudder web app point of view. We need to give the node everything so that he can work.
More preciselly, it means:
- for each node, create a JSON file that will be transfered to the node along with its policies,
- the file is: /var/rudder/share/123456-7890-xxxxx/rules/properties.d/node-properties.json
- the file contains a top level namespace ("node-properties"), and one key/value for each node property: { "node-properties" : { "key1": "value1", "key2": "value2" } }
- if the node doesn't have any properties, the file is generated and is { "node-properties" : {} }
- Category set to Web - Config management
- Assignee set to François ARMAND
- Priority changed from N/A to 2
- Target version set to 3.1.12
- Status changed from New to In progress
- Description updated (diff)
- Status changed from In progress to New
It is better if all the json files are in a sub-repertory so that the parsing is a no brainer.
The directory name is just a proposed name.
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Status changed from New to In progress
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/1139
- Description updated (diff)
Shouldn't the name of the file be: 020-node-properties.json ?
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Post-merge comment:
- yes the name would be better with a prefix since there are overriding rules for the properties based on an alphanumeric sort on the file names
- The file is /var/rudder/share/123456-7890-xxxxx/rules/cfengine-community/properties.d/node-properties.json and not /var/rudder/share/123456-7890-xxxxx/rules/properties.d/node-properties.json
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.1.12 and 3.2.5 which were released today.
Also available in: Atom
PDF