<div dir="ltr">Hi all.<div>I'm starting to resolve the todo at these line[1]. To solve this I think to hardcoded the role in the file, for example:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><i>$swift_proxies = get_nodes_hash_by_roles($network_metadata, ['primary-swift-proxy', 'swift-proxy']) ? {</i></div><div><i>    true => get_nodes_hash_by_roles($network_metadata, ['primary-swift-proxy', 'swift-proxy']),</i></div><div><i>    false => get_nodes_hash_by_roles($network_metadata, ['primary-controller', 'controller']),</i></div><div><i>}</i></div></blockquote><br>Is this the right way or do you suggest something more clean?<div><br></div><div>Thanks<br><div><br></div><div>[1] <a href="https://github.com/openstack/fuel-library/blob/master/deployment/puppet/osnailyfacter/modular/globals/globals.pp#L236:L242">https://github.com/openstack/fuel-library/blob/master/deployment/puppet/osnailyfacter/modular/globals/globals.pp#L236:L242</a><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">========================================================
<br>Daniel Depaoli <br><div>CREATE-NET Research Center
<br>Smart Infrastructures Area
<br>Junior Research Engineer
<br>======================================================== <br></div></div></div>
</div></div></div>