I would like to have properties (computed attributes) for data from saltstack pillars:
We structure our systems like this:
systems:
- customer: foo
project: bar
stage: p
...
- customer: foo
project: bar
stage: q
...
I would like to compute a variable "system.name" like this: "{customer}_{project}_{stage}"
.
From the above example I would get these two computes values:
- system.name = "foo_bar_p"
- system.name = "foo_bar_q"
I would be able to access system.name
just like system.customer
or system.project
.
How to get this done?