Actions
User story #3117
closedImplement an "expert technique" that let use the power of cfengine
Pull Request:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:
Description
We could really benefit from an "expert" technique, for expert only, that would allow for special or complex computation, like executing CFEngine special functions
For instance, if we are on a fairly complex infrastructure where each nodes have a "paired" system, where they send files every night, and the pair is based on the last bytes of the ip address, there is currently no way to deal with it easily, except create groups based on the last bytes of the ip address, define a directive based on generic variable definition for each with the last byte of the address within, and then create a many rules as there are bytes...
An more common solution would be to be able to define a variable based on
lastnode("$(sys.ipv4)", ".")
and use this variable in a more generic directive and rule I'm not sute of what should be allowed :
- everything : every type of text as a right hand side; but I'm not really fine with that
- only some special function, in a dropdown list, and the user would have to define the content of the function
Actions