sous-chefs / sc-mongodb

Development repository for the sc-mongodb cookbook
https://supermarket.chef.io/cookbooks/sc-mongodb
Apache License 2.0
75 stars 92 forks source link

Do not force the use of FQDN in replica set configuration #164

Open mateusduboli opened 7 years ago

mateusduboli commented 7 years ago

In the replica set definition function, after it creates the replica set, if you do a consecutive run of chef-client in the instance, the script then tries to convert the mongo IPs into FQDNs, which in my case destroys the replica set.

To reproduce the error, just run a the sc-mongo::replicaset recipe with node['mongodb']['use_ip_address'] twice and check rs.conf() in mongo, and the hosts will be changed.

github-actions[bot] commented 3 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.