Architecture #10823
closedSelect system techniques and generate correct policies based on agent type
Description
We are addding a new kind of agent with totally different system techniques (policy generation input) and policy file format (policy generation output).
So we need to be able to configure the generation process based on the agent type (and have one generation pipeline for system technique for each agent type).
Updated by François ARMAND over 7 years ago
Work in progess here: https://github.com/fanf/rudder/commit/990001468c2e89aa31d1044dd10078ab279cea43
Updated by François ARMAND over 7 years ago
Work in progess here: https://github.com/fanf/rudder/commit/cedf9f23e2a74892c5a520d9c36726a6ea90cd00
Updated by François ARMAND over 7 years ago
For now, the ouput is:
% tree test-rudder-config-repo-2017-06-02T18:51:26.621+02:00/share-dsc-node/c8813416-316f-4307-9b6a-ca9c109a9fb0 test-rudder-config-repo-2017-06-02T18:51:26.621+02:00/share-dsc-node/c8813416-316f-4307-9b6a-ca9c109a9fb0 └── rules └── dsc ├── Create_file │ └── 1.0 │ ├── Create_file.cf │ └── rudder_reporting.cf ├── dsc-agent │ └── 1.0 │ └── some-resource.conf ├── properties.d │ └── properties.json ├── rudder_expected_reports.csv └── rudder.ps1 7 directories, 6 files
Given the "dsc-agent" technique here: https://github.com/fanf/rudder/commit/cedf9f23e2a74892c5a520d9c36726a6ea90cd00
Updated by François ARMAND over 7 years ago
You can test with:
mvn -Dtests.clean.tmp=false test -Dtest=WriteSystemTechniquesTest
The test will fail, but it will create output in: /tmp/test-rudder-config-repo-2017-06-02T18:51:26.621+02:00/share-dsc-node/c8813416-316f-4307-9b6a-ca9c109a9fb0 (with of course correct date).
Updated by François ARMAND over 7 years ago
Now, need to:
- remove rudder_expected_reports.csv
- generate system parameter file
- generate equiv of rudder-directive.cf and rudder-system-directive.cf (if needed for the second)
- add an example of one technique with both .cf and .ps1 resource, corresponding metadata.xml, and output the correct result
Updated by François ARMAND over 7 years ago
Work in progess here: https://github.com/fanf/rudder/commit/909bae91684e426a035dd255e47eeec16163afba
Updated by François ARMAND over 7 years ago
Started to do some filtering, with the current wip we have:
% tree /tmp/test-rudder-config-repo-2017-06-08T18:58:04.135+02:00/share-dsc-node/c8813416-316f-4307-9b6a-ca9c109a9fb0/rules/dsc /tmp/test-rudder-config-repo-2017-06-08T18:58:04.135+02:00/share-dsc-node/c8813416-316f-4307-9b6a-ca9c109a9fb0/rules/dsc ├── Create_file │ └── 1.0 │ ├── Create_file.cf │ └── rudder_reporting.cf ├── dsc-agent │ └── 1.0 │ └── some-resource.conf ├── properties.d │ └── properties.json ├── rudder.json └── rudder.ps1 5 directories, 6 files
So:
- no more expected_reports.csv for DSC agent,
- but a rudder.json file for them.
Updated by François ARMAND over 7 years ago
Work in progess here: https://github.com/fanf/rudder/commit/ac1351223a3e0a1f03ebb0277971080b6dca562e
Updated by François ARMAND over 7 years ago
Work in progess here: https://github.com/fanf/rudder/commit/2f2572db944a92900c4d4b87cc9deaac811fd531
Updated by François ARMAND over 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/1667
Updated by François ARMAND over 7 years ago
- Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
Updated by François ARMAND over 7 years ago
- Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
Updated by François ARMAND over 7 years ago
- Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
Updated by François ARMAND over 7 years ago
- Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
Updated by François ARMAND over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|54260842b4843ec255396c74aad72a096e293aa2.
Updated by Alexis Mousset over 7 years ago
- Target version changed from 4.2.0~prototype to 4.2.0~beta1
Updated by Alexis Mousset over 7 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.2.0~beta1 which was released today.
- 4.2.0~beta1: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/