I'm using hiera with a YAML backend to manage my Puppet configuration and I'd like to append some values to an array.
I have a configuration file which looks a bit like this:
---
some_config:
- one
- two
- three
some_more_config:
- one
- two
- three
- four
Where some_more_config
is always a superset of some_config
.
I'd like to improve this file to remove the duplication but I haven't figured out whether it's possible or what the syntax would be:
---
some_config:
- one
- two
- three
some_more_config:
- "%{::some_config}"
- four
In words rather than code, some_more_config
is the entire contents of some_config
plus one additional value.