<div dir="ltr">I see.<div><br></div><div>Perhaps it will be better if you can provide an error msg shared on pastebin?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Alexandros Soumplis <<a href="mailto:soumplis@admin.grnet.gr">soumplis@admin.grnet.gr</a>> 於 2021年3月27日 週六 下午2:56寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi Eddie,</p>
<p>If I define them in the hostname it works perfectly fine. I
cannot use the globals.yml because there are different bridges per
group (ex. control plane servers do not the provide network
bridges).<br>
</p>
<p>The problem with the host approach is that it makes the inventory
file very difficult to parse with external scripts. If the typical
ansible :vars section worked as expected it would make any parsing
much easier with crudini :)</p>
<p><br>
</p>
<p>a.</p>
<p><br>
</p>
<p><br>
</p>
<div>On 27/3/21 1:11 π.μ., Eddie Yen wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Alexandros,
<div><br>
</div>
<div>In the [compute] area, it's correct.</div>
<div>But for define what physical interface should be use for
each </div>
<div>nodes, you should set like below:</div>
<div><br>
</div>
<div>[compute]</div>
<div>comp[1:5] neutron_external_interface=bond0.100,bond.101</div>
<div><br>
</div>
<div>And I'm not sure if "neutron_bridge_name" can be set
behind </div>
<div>hostname. For me I usually put into globals.yml.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Alexandros Soumplis <<a href="mailto:soumplis@admin.grnet.gr" target="_blank">soumplis@admin.grnet.gr</a>>
於 2021年3月27日 週六 上午1:49寫道:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
all,<br>
<br>
I am trying to define a couple of variables in the inventory
file for a <br>
specific group and I do something like the following in the
inventory:<br>
<br>
(...)<br>
[compute]<br>
comp[1:5]<br>
<br>
[compute:vars]<br>
neutron_external_interface=bond0.100, bond0.101<br>
neutron_bridge_name=br-ex,br-ex2<br>
<br>
(...)<br>
<br>
This is a valid ansible setup, however with kolla-ansible
these <br>
variables are totally ignored. Any suggestion ?<br>
<br>
<br>
a.<br>
<br>
<br>
<br>
</blockquote>
</div>
</blockquote>
</div>
</blockquote></div>