Closed UncleIS closed 6 years ago
I'm getting this same problem on the latest version of the cookbook (1.0.1). Seems to have been introduced by #166: https://github.com/sous-chefs/mongodb/pull/166/files#diff-99705ecfdc27db6ed855d20d15ca9d2bL83
Actually, this is a duplicate of #179.
Agree that this is a duplicate and can be closed unless there are details that might be useful for #179
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hello, colleagues.
I'm using
sc-mongodb::replicaset
recipe to configure a replicaset of three MongoDB servers. The first run does just fine and the RS is configured as expected, but subsequent runs fail:I searched through the cookbook and was unable to find a place where
rs_member_ips
variable would be initialized:On the other hand, the following piece of code might need correction (at least for MongoDB version 3.6.2 that I'm using):
The value of
config
variable in my case is as follows:But
rs_members
var will never match, because its structure is much simpler:At the same time, the comparison in
else
branch will also fail asconfig['members']
will also hardly match the hash thatrs_member_ips
would have contained had it been initialized.