Project

General

Profile

Actions

User story #7402

closed

Add a <FILE> tag in metadata.xml to allow simple file copy into techniques

Added by François ARMAND about 9 years ago. Updated almost 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Web - Config management
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

We need to be able to directly copy files into a techniques, like for templates, but without using stringtemplate parser on them.

The exact spec will be:

<FILES>
<FILE name="file.txt"><OUTPATH>foo/bar/other-name.txt</OUTPATH></FILE>
<FILE name="RUDDER_CONFIGURATION_REPOSITORY/some/absolute/file.txt"><OUTPATH>foo/bar/some-name.txt</OUTPATH></FILE>
</FILES>

- name is mandatory. It's the path to file to copy, either relative to the technique directory (i.e, at the same level as metadata.xml) or absolute from the configuration repository directory if it starts with RUDDER_CONFIGURATION_REPOSITORY (and yes, if fobids the use case where you want to have a sub-directory named RUDDER_CONFIGURATION_REPOSITORY under the technique directory - I'm sure one will find other way to do it if really needed :). The file will be taken from git, at the same git revision as other tehniques files.

- OUTPATH is optionnal. If not specified, the file will be copied into the target node promises at the same place than other files for the technique, with the same name. If specified, you have to give a path+name, where path is relative to the directory for agent promises on the node (i.e, if you want to put the file in the technique directory, you need to use "techniqueName/new-file-name.txt")


Subtasks 1 (0 open1 closed)

Bug #7429: Files added with the <FILE> tag in rudderify are not included in the input listReleasedFrançois ARMAND2015-11-22Actions

Related issues 3 (0 open3 closed)

Related to Rudder - User story #7377: Adapt rudderify script to use <FILE> in the generated metadata.xmlReleasedBenoît PECCATTEActions
Related to Rudder - User story #7376: Authorize both path relative to technique and to config-repos in technique metadata.xml descriptorReleasedNicolas CHARLES2015-11-24Actions
Related to Rudder - User story #7432: Don't copy files of local/50_techniques on the nodesReleasedBenoît PECCATTE2015-11-24Actions
Actions

Also available in: Atom PDF