Added mongoid template and trying sleep to give mongo a moment to startup before configuring the replicaset