Project

General

Profile

Actions

User story #9078

closed

Create a file template technique

Added by Benoît PECCATTE over 7 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
UX impact:
Suggestion strength:
User visibility:
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


Subtasks 1 (0 open1 closed)

User story #11142: filetemplate technique posthookReleasedBenoît PECCATTEActions

Related issues 1 (0 open1 closed)

Has duplicate Rudder - User story #4896: Add a new Technique: Template applicationRejectedActions
Actions #1

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #2

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #3

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #4

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.17 to 3.1.18
Actions #5

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.18 to 3.1.19
Actions #6

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.19 to 3.1.20
Actions #7

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 3.1.20 to 3.1.21
Actions #8

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 3.1.21 to 3.1.22
Actions #9

Updated by Félix DALLIDET almost 7 years ago

  • Assignee set to Félix DALLIDET

Benoît PECCATTE wrote:

The technique would:
- take a template from shared-files

I am working on a technique taking a raw input template or a local template file to expand it on a given location

- put it in a standard place on the agent

Template files can be anywhere but the path asked for is relative to /var/rudder/configuration-repository/repository/shared-files/

- expand it with a given templating system

supporting Mustache and Jinja2

- change the file's permission

Change the permissions of the destination conf file generated

- have a post-modification hook

post-hook started when the generated file is different from what the expansion expected or when its permissions are changed

TODO:
Raise an error when the raw input exceed 16K char, make an option for the posthook to be persistant

Actions #10

Updated by Félix DALLIDET almost 7 years ago

  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1169
Actions #11

Updated by Félix DALLIDET almost 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
Actions #12

Updated by Félix DALLIDET almost 7 years ago

  • Target version changed from 3.1.22 to 4.1.6
Actions #13

Updated by Félix DALLIDET almost 7 years ago

  • Pull Request changed from https://github.com/Normation/rudder-techniques/pull/1174 to https://github.com/Normation/rudder-techniques/pull/1175
Actions #14

Updated by Félix DALLIDET almost 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #15

Updated by Vincent MEMBRÉ over 6 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.

Actions #16

Updated by Benoît PECCATTE about 6 years ago

  • Has duplicate User story #4896: Add a new Technique: Template application added
Actions

Also available in: Atom PDF