<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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 class="moz-cite-prefix">On 27/3/21 1:11 π.μ., Eddie Yen wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHZFSBqbTAux5ULO3Adj6CbVe+YaLKkDPs=J2_ef4f-==gPa1Q@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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" moz-do-not-send="true">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>
</body>
</html>