Actions
User story #9078
closedCreate a file template technique
Effort required:
Name check:
Fix check:
Regression:
Description
The technique would:
- take a template from shared-files
- put it in a stabdard place on the agent
- expand it with a given templating system
- change the file's permission
- have a post-modification hook
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.14 to 3.1.15
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.15 to 3.1.16
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.16 to 3.1.17
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.17 to 3.1.18
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.18 to 3.1.19
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.19 to 3.1.20
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.20 to 3.1.21
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.21 to 3.1.22
Updated by Félix DALLIDET over 7 years ago
- Assignee set to Félix DALLIDET
Benoît PECCATTE wrote:
I am working on a technique taking a raw input template or a local template file to expand it on a given locationThe technique would:
- take a template from shared-files
Template files can be anywhere but the path asked for is relative to /var/rudder/configuration-repository/repository/shared-files/- put it in a standard place on the agent
supporting Mustache and Jinja2- expand it with a given templating system
Change the permissions of the destination conf file generated- change the file's permission
post-hook started when the generated file is different from what the expansion expected or when its permissions are changed- have a post-modification hook
TODO:
Raise an error when the raw input exceed 16K char, make an option for the posthook to be persistant
Updated by Félix DALLIDET over 7 years ago
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1169
Updated by Félix DALLIDET over 7 years ago
- Status changed from New to Pending technical review
- Assignee changed from Félix DALLIDET to Benoît PECCATTE
- Pull Request changed from https://github.com/Normation/rudder-techniques/pull/1169 to https://github.com/Normation/rudder-techniques/pull/1174
Updated by Félix DALLIDET over 7 years ago
- Target version changed from 3.1.22 to 4.1.6
Updated by Félix DALLIDET over 7 years ago
- Pull Request changed from https://github.com/Normation/rudder-techniques/pull/1174 to https://github.com/Normation/rudder-techniques/pull/1175
Updated by Félix DALLIDET over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|fee26c9fd8f4f1435e9bb816314a2f648a673a96.
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.1.6 and 4.2.0~beta3 which were released today.
- 4.1.6: Announce Changelog
- 4.2.0~beta3: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/
Updated by Benoît PECCATTE almost 7 years ago
- Has duplicate User story #4896: Add a new Technique: Template application added
Actions