Changes to make replicaset work with OpsWorks