I used to go with yaml 'anchors' like Giuseppe. +1 for bundle-config flag
since that is a cleaner approach IMO.
It would be great if we can pass a single value as well e.g juju deploy
./bundle.yaml test-charm.admin-ip=172.31.81.203


--
Junaid

On Sat, Sep 16, 2017 at 12:22 PM, Patrizio Bassi <patrizio.ba...@gmail.com>
wrote:

> +1 from my side.
>
> At the moment i have 3 bundles, dev, qa and prod which differ only by IPs
> and unit number
> It would be great to have a dynamic filled bundle :)
>
> Patrizio
>
> 2017-09-16 9:02 GMT+02:00 Giuseppe Attardi <giuseppe.atta...@garr.it>:
>
>>
>> > On 15 set 2017, at 16:46, Rick Harding <rick.hard...@canonical.com>
>> wrote:
>> >
>> > On Fri, Sep 15, 2017 at 10:33 AM Giuseppe Attardi <
>> giuseppe.atta...@garr.it> wrote:
>> > Is it possible to use variables in the bundle defined in the
>> bundle-config?
>> >
>> > Not currently no, there's no string substitution in there. Are you
>> looking for model specific data to make it in? Or some other input?
>>
>> What we do in our bundles is this:
>>
>> variables:
>>   network-space-pub: &network_space_pub  space-pub
>>   …
>>
>> services:
>>   keystone:
>>     bindings:
>>       public: *network_space_pub
>>      …
>>   openstack-dashboard:
>>     bindings:
>>       shared-db: *network_space_os_mgmt
>>       cluster: *network_space_os_mgmt
>>       website: *network_space_pub
>>
>> It would be nice to place these variable definitions in the bundle-config
>> file.
>>
>> —
>>
>>
>>
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/juju
>>
>
>
>
> --
>
> Patrizio Bassi
> www.patriziobassi.it
> http://piazzadelpopolo.patriziobassi.it
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
> an/listinfo/juju
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to