Project

General

Profile

Actions

Bug #14038

closed

Separated policy generation does not work correctly with Rudder DSC agent

Added by Nicolas CHARLES over 5 years ago. Updated about 5 years ago.

Status:
Released
Priority:
N/A
Category:
Plugins integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

We have several problems at stake here

  • Techniques hardcode an outputh path for DSC policy files - so files of each directives are overriding each others
    <TML name="fileTemplate.ps1">
     <OUTPATH>fileTemplate/1.0/fileTemplate.ps1</OUTPATH>
    </TML>
    
  • if we add a _RudderUniqueID (only once in the OUTPATH, otherwise it is not replaced!), the files are at the correct location, but the inputs/rudder.json is invalid
      "RUDDER_DIRECTIVES_INPUTS":[
        "Test_reporting_issue/1.0/Test_reporting_issue.ps1",
        "copyGitFile_RudderUniqueID/copyFileFromSharedFolder.ps1",
        "copyGitFile_RudderUniqueID/copyFileFromSharedFolder.ps1" 
      ],
    
  • if we drop the OUTPATH, all is fune, EXCEPT that the files are called .cf, and cannot be loaded by dsc agent
      "RUDDER_DIRECTIVES_INPUTS":[
        "Test_reporting_issue/1.0/Test_reporting_issue.ps1",
        "copyGitFile/2_3_58b4d816_9862_4cae_8120_3952c4ecf8f1/copyFileFromSharedFolder.ps1.cf",
        "copyGitFile/2_3_ef8f2e5c_21a0_42af_8c79_a1512b8d17aa/copyFileFromSharedFolder.ps1.cf" 
      ],
    

Subtasks 2 (0 open2 closed)

Bug #14040: Define default policy extension per agent typeReleasedAlexis MoussetActions
Bug #14041: Replace all RudderUniqueID in paths for inputs list and rudder.json, and correctly generate paths based on agent typeReleasedNicolas CHARLESActions

Related issues 1 (0 open1 closed)

Related to Rudder - Architecture #14058: Normalize remplacement of RudderUniqueId in paths/bundle names/templates/inputs listResolvedFrançois ARMANDActions
Actions

Also available in: Atom PDF