You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puppet.debug"Checking replicaset member #{host} ..."
156
-
status=rs_status(host)
157
-
raisePuppet::Error,"Can't configure replicaset #{name}, host #{host} is not supposed to be part of a replicaset."ifstatus.key?('errmsg') && status['errmsg'] == 'not running with --replSet'
raisePuppet::Error,"Can't configure replicaset #{name}, host #{host} is already part of another replicaset."ifstatus['set'] != name
165
+
166
+
# This node is alive and supposed to be a member of our set
167
+
Puppet.debug"Host #{host} is available for replset #{status['set']}"
168
+
alive.push(member)
169
+
elsifstatus.key?('info')
170
+
Puppet.debug"Host #{host} is alive but unconfigured: #{status['info']}"
171
+
alive.push(member)
172
+
end
173
+
rescuePuppet::ExecutionFailure=>e
174
+
raisePuppet::Error,"Can't configure replicaset #{name}, host #{host} is not supposed to be part of a replicaset."ife.message =~ %r{not running with --replSet}
0 commit comments