Project

General

Profile

Actions

User story #3848

closed

Technique "Generic Variable definition": Allow empty values

Added by Olivier Mauras over 11 years ago. Updated over 9 years ago.

Status:
Released
Priority:
2
Category:
Techniques
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Use case:
content of a file enforced - default for all groups:
toto
tata
${generic_variable_definition.GROUP1_ONLY}
${generic_variable_definition.GROUP2_ONLY}
${generic_variable_definition.GROUP3_ONLY}

Default Generic CFEngine variable definition contains:
GROUP1_ONLY=""
GROUP2_ONLY=""
GROUP3_ONLY=""

group1 Generic CFEngine variable definition contains:
GROUP1_ONLY="tutu"

group2 Generic CFEngine variable definition contains:
GROUP2_ONLY="tztz"

and so on...

This gives a better flexibility in the rules applied to group. If you have a group that contains all your nodes on which you apply the default variables definition, you can just apply per group variables definition with lower priority while still using only one "content file enforcement".


Subtasks 1 (0 open1 closed)

User story #4469: Allow empty variable and make them overridable in generic variable techniquesReleasedJonathan CLARKE2014-02-13Actions
Actions #2

Updated by Vincent MEMBRÉ over 11 years ago

  • Assignee set to Matthieu CERDA

I don't know if we have to handle the empty values in genericVariable technique, I think we forced people to add a value.

Maybe we should add a checkbox to handle empty values ?

A workaround for now, would be to use parameter with an empty value (need to validate that this is correctly working, but it's worth trying)

Jon, Matthieu, Nico, what do you think of handling empty variables in that Technique ?

Actions #3

Updated by Jonathan CLARKE about 11 years ago

  • Status changed from New to Discussion
  • Assignee changed from Matthieu CERDA to Jonathan CLARKE
Actions #4

Updated by Vincent MEMBRÉ almost 11 years ago

  • Assignee changed from Jonathan CLARKE to Vincent MEMBRÉ
  • Priority changed from N/A to 2
  • Target version set to 2.6.11

A pull request has been openend by Olivier: https://github.com/Normation/rudder-techniques/pull/168

I'll rebase it on 2.6 branch!

Actions #5

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.6.11 to 2.6.12
Actions #6

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.6.12 to 2.6.11
Actions #7

Updated by Vincent MEMBRÉ over 10 years ago

  • Subject changed from Technique enhancement proposal: Allow empty values in generic variables technique to Technique "Generic Variable definition": Allow empty values
Actions #8

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from Discussion to 12
Actions #9

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from 12 to Pending release
Actions #10

Updated by Vincent MEMBRÉ over 10 years ago

  • Project changed from Rudder to 24
  • Category deleted (Techniques)
Actions #11

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.6.11, which was released today.
Check out:

Actions #12

Updated by Benoît PECCATTE over 9 years ago

  • Project changed from 24 to Rudder
  • Category set to Techniques
Actions

Also available in: Atom PDF