edelight / chef-mongodb

MongoDB Chef cookbook
https://community.opscode.com/cookbooks/mongodb
Apache License 2.0
363 stars 3 forks source link

Adds ability to use ipaddress instead of fqdn in replicaset #356

Open kri5 opened 10 years ago

kri5 commented 10 years ago

This PR adds the ability to use ip address by specifying an attribute [:mongodb][:use_ip_address] instead of the fqdn for replicaset creation.

jamesonjlee commented 9 years ago

wouldn't it be better if you just changed rs_member to the ipaddresses if the flag is set to true further above?

kri5 commented 9 years ago

@jamesonjlee do you mean here https://github.com/kri5/chef-mongodb/blob/0565aca19b653350758f10277dbc7fd91d44753f/libraries/mongodb.rb#L73 ?