- From: Mark Selby <
>
- To: "
" <
>
- Subject: [chef] JSON Role files, attributes, and variable interpolation
- Date: Tue, 30 Dec 2014 10:41:15 -0800
I use JSON based role files and for better or worse use them often for attribute definition.
I have recently tried to perform variable interpolation like this
"default_attributes": {
"foo": {
"server": "extra.#{node['fqdn']}"
}
I was not surprised that this DID NOT work and that I got 'extra.#{node['fqdn']}' rather than an interpolated string.
Is there any way to interpolate in JSON role files?
Thanks
- [chef] JSON Role files, attributes, and variable interpolation, Mark Selby, 12/30/2014
Archive powered by MHonArc 2.6.16.