Mailing List Archive

openstack-ansible variable overwrite question
I have deployed OSA and all good but having small issue in following file.

# cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini

[linux_bridge]
physical_interface_mappings = flat:eth12,vlan:br-vlan

I WANT TO CHANGE IT TO FOLLWOING

physical_interface_mappings = vlan:br-vlan


I have overwrite variable in following file like this.

# cat /etc/openstack_deploy/user_variables.yml

neutron_linuxbridge_agent_ini_overrides:
linux_bridge:
physical_interface_mappings = vlan:br-vlan


after re-run playbook it updated file with following format, am i
missing something here?

[DEFAULT]
linux_bridge = physical_interface_mappings = vlan:br-vlan

[linux_bridge]
physical_interface_mappings = flat:eth12,vlan:br-vlan

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: openstack-ansible variable overwrite question [ In reply to ]
On Sun, Jul 1, 2018 at 6:14 PM, Satish Patel <satish.txt@gmail.com> wrote:
> I have deployed OSA and all good but having small issue in following file.
>
> # cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini
>
> [linux_bridge]
> physical_interface_mappings = flat:eth12,vlan:br-vlan
>
> I WANT TO CHANGE IT TO FOLLWOING
>
> physical_interface_mappings = vlan:br-vlan
>
>
> I have overwrite variable in following file like this.
>
> # cat /etc/openstack_deploy/user_variables.yml
>
> neutron_linuxbridge_agent_ini_overrides:
> linux_bridge:
> physical_interface_mappings = vlan:br-vlan

It's a YAML structure, you want this:

neutron_linuxbridge_agent_ini_overrides:
linux_bridge:
physical_interface_mappings: vlan:br-vlan

>
> after re-run playbook it updated file with following format, am i
> missing something here?
>
> [DEFAULT]
> linux_bridge = physical_interface_mappings = vlan:br-vlan
>
> [linux_bridge]
> physical_interface_mappings = flat:eth12,vlan:br-vlan
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack@lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack



--
Mohammed Naser — vexxhost
-----------------------------------------------------
D. 514-316-8872
D. 800-910-1726 ext. 200
E. mnaser@vexxhost.com
W. http://vexxhost.com

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: openstack-ansible variable overwrite question [ In reply to ]
Damnn it... you are right... it works now..

Thanks

On Sun, Jul 1, 2018 at 7:09 PM, Mohammed Naser <mnaser@vexxhost.com> wrote:
> On Sun, Jul 1, 2018 at 6:14 PM, Satish Patel <satish.txt@gmail.com> wrote:
>> I have deployed OSA and all good but having small issue in following file.
>>
>> # cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini
>>
>> [linux_bridge]
>> physical_interface_mappings = flat:eth12,vlan:br-vlan
>>
>> I WANT TO CHANGE IT TO FOLLWOING
>>
>> physical_interface_mappings = vlan:br-vlan
>>
>>
>> I have overwrite variable in following file like this.
>>
>> # cat /etc/openstack_deploy/user_variables.yml
>>
>> neutron_linuxbridge_agent_ini_overrides:
>> linux_bridge:
>> physical_interface_mappings = vlan:br-vlan
>
> It's a YAML structure, you want this:
>
> neutron_linuxbridge_agent_ini_overrides:
> linux_bridge:
> physical_interface_mappings: vlan:br-vlan
>
>>
>> after re-run playbook it updated file with following format, am i
>> missing something here?
>>
>> [DEFAULT]
>> linux_bridge = physical_interface_mappings = vlan:br-vlan
>>
>> [linux_bridge]
>> physical_interface_mappings = flat:eth12,vlan:br-vlan
>>
>> _______________________________________________
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to : openstack@lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
>
> --
> Mohammed Naser — vexxhost
> -----------------------------------------------------
> D. 514-316-8872
> D. 800-910-1726 ext. 200
> E. mnaser@vexxhost.com
> W. http://vexxhost.com

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack