Project

General

Profile

Architecture #10823

Select system techniques and generate correct policies based on agent type

Added by François ARMAND over 1 year ago. Updated about 1 year ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Target version (plugin):
Effort required:

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).


Subtasks

Architecture #10842: Update write test for 4.1 and add generation for a nodeReleasedVincent MEMBRÉ

Associated revisions

Revision 54260842 (diff)
Added by François ARMAND over 1 year ago

Fixes #10823: Select system techniques and generate correct policies based on agent type

Revision 2da9fb24 (diff)
Added by François ARMAND over 1 year ago

Fixes #10823: Select system techniques and generate correct policies based on agent type

History

#3 Updated by François ARMAND over 1 year 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

#4 Updated by François ARMAND over 1 year 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).

#5 Updated by François ARMAND over 1 year 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

#7 Updated by François ARMAND over 1 year 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.

#10 Updated by François ARMAND over 1 year 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

#11 Updated by François ARMAND over 1 year ago

  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES

#12 Updated by François ARMAND over 1 year ago

  • Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ

#13 Updated by François ARMAND over 1 year ago

  • Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES

#14 Updated by François ARMAND over 1 year ago

  • Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ

#15 Updated by François ARMAND over 1 year ago

  • Status changed from Pending technical review to Pending release

#16 Updated by Alexis MOUSSET about 1 year ago

  • Target version changed from 4.2.0~prototype to 4.2.0~beta1

#17 Updated by Alexis MOUSSET about 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.2.0~beta1 which was released today.

Also available in: Atom PDF