Hi all.
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:

*$swift_proxies = get_nodes_hash_by_roles($network_metadata,
['primary-swift-proxy', 'swift-proxy']) ? {*
*    true => get_nodes_hash_by_roles($network_metadata,
['primary-swift-proxy', 'swift-proxy']),*
*    false => get_nodes_hash_by_roles($network_metadata,
['primary-controller', 'controller']),*
*}*


Is this the right way or do you suggest something more clean?

Thanks

[1]
https://github.com/openstack/fuel-library/blob/master/deployment/puppet/osnailyfacter/modular/globals/globals.pp#L236:L242

-- 
========================================================
Daniel Depaoli
CREATE-NET Research Center
Smart Infrastructures Area
Junior Research Engineer
========================================================
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to