Skip to content

Commit 6b985ec

Browse files
sarah-olson-mongodbSarah Olson
andauthored
Docs 14623 (#512)
* DOCS-14623: Update rs.initiate examples * DOCS-14623: Update additional rs.initiate examples Co-authored-by: Sarah Olson <[email protected]>
1 parent bfd5003 commit 6b985ec

5 files changed

+5
-5
lines changed

source/includes/steps-deploy-replica-set-with-auth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ action:
122122
code: |
123123
rs.initiate(
124124
{
125-
_id : <replicaSetName>,
125+
_id : "myReplSet",
126126
members: [
127127
{ _id : 0, host : "mongo1.example.net:27017" },
128128
{ _id : 1, host : "mongo2.example.net:27017" },

source/includes/steps-deploy-sharded-cluster-config-server-noauth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ action:
111111
code: |
112112
rs.initiate(
113113
{
114-
_id: "<replSetName>",
114+
_id: "myReplSet",
115115
configsvr: true,
116116
members: [
117117
{ _id : 0, host : "cfg1.example.net:27019" },

source/includes/steps-deploy-sharded-cluster-config-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ action:
8181
code: |
8282
rs.initiate(
8383
{
84-
_id: "<replSetName>",
84+
_id: "myReplSet",
8585
configsvr: true,
8686
members: [
8787
{ _id : 0, host : "cfg1.example.net:27019" },

source/includes/steps-deploy-sharded-cluster-shard-replica-noauth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ action:
9090
code: |
9191
rs.initiate(
9292
{
93-
_id : <replicaSetName>,
93+
_id : "myReplSet",
9494
members: [
9595
{ _id : 0, host : "s1-mongo1.example.net:27018" },
9696
{ _id : 1, host : "s1-mongo2.example.net:27018" },

source/includes/steps-deploy-sharded-cluster-shard-replica.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ action:
6666
code: |
6767
rs.initiate(
6868
{
69-
_id : <replicaSetName>,
69+
_id : "myReplSet",
7070
members: [
7171
{ _id : 0, host : "s1-mongo1.example.net:27018" },
7272
{ _id : 1, host : "s1-mongo2.example.net:27018" },

0 commit comments

Comments
 (0)