[openstack-dev] [heat][yaql] Heat map replacement options

2016-07-15 Thread Steven Hardy
Hi all, I'm trying to figure out the cleanest way to do a replacement of values in a mapping (json parameter) in a heat template, e.g: ServiceNetMap: type: json default: IronicApiNetwork: internal_api CephPublicNetwork: storage NetIpMap: type: json default:

Re: [openstack-dev] [heat][yaql] Heat map replacement options

2016-07-15 Thread Peter Razumovsky
Try this: yaql: expression:let(root => $) -> dict($root.data.service.items().select([$[0], $root.data.ip[$[1]]])) data: service: { get_param: ServiceNetMap } ip: { get_param: NetIpMap} 2016-07-15 12:25 GMT+03:00 Steven Hardy : > Hi all, > > I'm trying to figure out the cleanest way

Re: [openstack-dev] [heat][yaql] Heat map replacement options

2016-07-15 Thread Steven Hardy
On Fri, Jul 15, 2016 at 03:35:51PM +0300, Peter Razumovsky wrote: >Try this: >yaql: >  expression:let(root => $) -> >dict($root.data.service.items().select([$[0], $root.data.ip[$[1]]])) >  data: >    service: { get_param: ServiceNetMap } >    ip: { get_param: NetIpMap}

Re: [openstack-dev] [heat][yaql] Heat map replacement options

2016-07-19 Thread Steven Hardy
On Fri, Jul 15, 2016 at 10:25:39AM +0100, Steven Hardy wrote: > Hi all, > > I'm trying to figure out the cleanest way to do a replacement of values in > a mapping (json parameter) in a heat template, e.g: > > ServiceNetMap: > type: json > default: > IronicApiNetwork: internal_api

Re: [openstack-dev] [heat][yaql] Heat map replacement options

2016-07-20 Thread Zane Bitter
On 19/07/16 11:04, Steven Hardy wrote: On Fri, Jul 15, 2016 at 10:25:39AM +0100, Steven Hardy wrote: Hi all, I'm trying to figure out the cleanest way to do a replacement of values in a mapping (json parameter) in a heat template, e.g: ServiceNetMap: type: json default: IronicA