Feature #1636
closedArray support in host YAML
Description
We need a way to put arrays in a nodes yaml with foreman. Without the ability to add something like this it makes it difficult to migrate with an already large base of puppet modules.
parameters:
foo:
- bar
- baz
Updated by Ken Coar over 11 years ago
Actually, almost any printable type, not just YAML.
I suggest considering adding an IMT (Internet Media Type) selection pulldown next to the parameter value field, with a default value of 'text/plain'. Adding IMTs to the list (such as 'application/yaml', which should be built into Foreman by default IMHO) would be a good area for extensibility plugins. The value of the selection would control how the input field should be interpreted and converted for storage.
Updated by Dominic Cleal over 11 years ago
- Status changed from New to Feedback
The parameterised class feature has some support for different data types built in, so you can define a parameter as containing YAML and then Foreman validates the contents of the field. This allows you to pass complex data types into Puppet.