It still does not work on envs with single mongo node because we're getting empty array here:
https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/osnailyfacter/modular/roles/mongo_primary.pp#L16
It's happenning because with single mongo node we have no 'mongo' roles, only one 'primary-mongo' role. If I understand correctly, we're supposed to get an array of all mongo nodes (primary-mongo and mongo roles) there.
It still does not work on envs with single mongo node because we're getting empty array here:
https:/ /github. com/stackforge/ fuel-library/ blob/master/ deployment/ puppet/ osnailyfacter/ modular/ roles/mongo_ primary. pp#L16
It's happenning because with single mongo node we have no 'mongo' roles, only one 'primary-mongo' role. If I understand correctly, we're supposed to get an array of all mongo nodes (primary-mongo and mongo roles) there.