User story #7402
closedAdd a <FILE> tag in metadata.xml to allow simple file copy into techniques
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")
Updated by Vincent MEMBRÉ over 9 years ago
- Related to User story #7377: Adapt rudderify script to use <FILE> in the generated metadata.xml added
Updated by François ARMAND over 9 years ago
- Related to User story #7376: Authorize both path relative to technique and to config-repos in technique metadata.xml descriptor added
Updated by François ARMAND over 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder/pull/967
Updated by François ARMAND over 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Updated by Benoît PECCATTE over 9 years ago
- Related to User story #7432: Don't copy files of local/50_techniques on the nodes added