-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cws
committed
Jun 12, 2016
1 parent
a801d44
commit 8533701
Showing
9 changed files
with
58 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
NODES=$1 && [ -z "${1}" ] && NODES="3" || true | ||
|
||
echo | ||
echo "Please supply some important configuration parameters below:" | ||
echo "============================================================" | ||
read -p "SSH user for cluster access [root]: " SSHUSER | ||
[ -z "$SSHUSER" ] && SSHUSER="root" || true | ||
read -p "SSH port for cluster access [22]: " SSHPORT | ||
[ -z "$SSHPORT" ] && SSHPORT="22" || true | ||
read -p "Root directory for your mongodb data [/data]: " BASEDIR | ||
[ -z "$BASEDIR" ] && BASEDIR="/data" || true | ||
read -p "Number of nodes for your shard [${NODES}]: " CFGNODES | ||
[ -z "$CFGNODES" ] && CFGNODES=$NODES || true | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
volumes: | ||
- name: db-cfg | ||
hostPath: | ||
path: /enc/mongodb/db-cfg | ||
path: __BASEDIR__/mongodb/db-cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
- name: db-rs__RSNUM__ | ||
hostPath: | ||
path: /enc/mongodb/db-rs__RSNUM__ | ||
path: __BASEDIR__/mongodb/db-rs__RSNUM__ |