-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from github/merge-upstream-ob
Merge upstream ob
- Loading branch information
Showing
12 changed files
with
86 additions
and
78 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,12 @@ | ||
#!/bin/bash | ||
|
||
# Install orchestrator | ||
rpm -i /tmp/orchestrator-release/orchestrator*.rpm | ||
/sbin/chkconfig orchestrator on | ||
cp /usr/local/orchestrator/orchestrator-sample.conf.json /etc/orchestrator.conf.json | ||
/sbin/service orchestrator start | ||
|
||
echo '* * * * * root /usr/bin/orchestrator -c discover -i db1' > /etc/cron.d/orchestrator-discovery | ||
|
||
# Discover instances | ||
/usr/bin/orchestrator -c discover -i localhost |
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,18 +1,8 @@ | ||
if [[ -e /etc/redhat-release ]]; then | ||
sudo rm -rf /etc/my.cnf | ||
sudo cp /orchestrator/vagrant/db1-my.cnf /etc/my.cnf | ||
sudo service mysql start | ||
elif [[ -e /etc/debian_version ]]; then | ||
if [[ -e /etc/debian_version ]]; then | ||
sudo cp /orchestrator/vagrant/db1-my.cnf /etc/mysql/my.cnf | ||
sudo /etc/init.d/mysql restart | ||
|
||
sudo cat <<-EOF >> /root/.my.cnf | ||
[client] | ||
user = root | ||
password = vagrant | ||
EOF | ||
fi | ||
|
||
/usr/bin/mysql -uroot -ss -e 'GRANT REPLICATION SLAVE ON *.* TO "repl"@"192.168.57.%" IDENTIFIED BY "vagrant_repl"' | ||
/usr/bin/mysql -uroot -ss -e 'CHANGE MASTER TO MASTER_HOST="192.168.57.202", MASTER_USER="repl", MASTER_PASSWORD="vagrant_repl"' | ||
/usr/bin/mysql -uroot -ss -e 'CHANGE MASTER TO MASTER_HOST="192.168.57.202", MASTER_USER="repl", MASTER_PASSWORD="vagrant_repl", MASTER_CONNECT_RETRY=10, MASTER_RETRY_COUNT=36' | ||
/usr/bin/mysql -uroot -ss -e 'START SLAVE' |
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,18 +1,8 @@ | ||
if [[ -e /etc/redhat-release ]]; then | ||
sudo rm -rf /etc/my.cnf | ||
sudo cp /orchestrator/vagrant/db2-my.cnf /etc/my.cnf | ||
sudo service mysql start | ||
elif [[ -e /etc/debian_version ]]; then | ||
sudo cp /orchestrator/vagrant/db2-my.cnf /etc/mysql/my.cnf | ||
if [[ -e /etc/debian_version ]]; then | ||
sudo cp /orchestrator/vagrant/db1-my.cnf /etc/mysql/my.cnf | ||
sudo /etc/init.d/mysql restart | ||
|
||
sudo cat <<-EOF >> /root/.my.cnf | ||
[client] | ||
user = root | ||
password = vagrant | ||
EOF | ||
fi | ||
|
||
/usr/bin/mysql -uroot -ss -e 'GRANT REPLICATION SLAVE ON *.* TO "repl"@"192.168.57.%" IDENTIFIED BY "vagrant_repl"' | ||
/usr/bin/mysql -uroot -ss -e 'CHANGE MASTER TO MASTER_HOST="192.168.57.201", MASTER_USER="repl", MASTER_PASSWORD="vagrant_repl"' | ||
/usr/bin/mysql -uroot -ss -e 'CHANGE MASTER TO MASTER_HOST="192.168.57.201", MASTER_USER="repl", MASTER_PASSWORD="vagrant_repl", MASTER_CONNECT_RETRY=10, MASTER_RETRY_COUNT=36' | ||
/usr/bin/mysql -uroot -ss -e 'START SLAVE' |
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,18 +1,8 @@ | ||
if [[ -e /etc/redhat-release ]]; then | ||
sudo rm -rf /etc/my.cnf | ||
sudo cp /orchestrator/vagrant/db3-my.cnf /etc/my.cnf | ||
sudo service mysql start | ||
elif [[ -e /etc/debian_version ]]; then | ||
sudo cp /orchestrator/vagrant/db3-my.cnf /etc/mysql/my.cnf | ||
if [[ -e /etc/debian_version ]]; then | ||
sudo cp /orchestrator/vagrant/db1-my.cnf /etc/mysql/my.cnf | ||
sudo /etc/init.d/mysql restart | ||
|
||
sudo cat <<-EOF >> /root/.my.cnf | ||
[client] | ||
user = root | ||
password = vagrant | ||
EOF | ||
fi | ||
|
||
/usr/bin/mysql -uroot -ss -e 'GRANT REPLICATION SLAVE ON *.* TO "repl"@"192.168.57.%" IDENTIFIED BY "vagrant_repl"' | ||
/usr/bin/mysql -uroot -ss -e 'CHANGE MASTER TO MASTER_HOST="192.168.57.201", MASTER_USER="repl", MASTER_PASSWORD="vagrant_repl"' | ||
/usr/bin/mysql -uroot -ss -e 'CHANGE MASTER TO MASTER_HOST="192.168.57.201", MASTER_USER="repl", MASTER_PASSWORD="vagrant_repl", MASTER_CONNECT_RETRY=10, MASTER_RETRY_COUNT=36' | ||
/usr/bin/mysql -uroot -ss -e 'START SLAVE' |
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,18 +1,8 @@ | ||
if [[ -e /etc/redhat-release ]]; then | ||
sudo rm -rf /etc/my.cnf | ||
sudo cp /orchestrator/vagrant/db4-my.cnf /etc/my.cnf | ||
sudo service mysql start | ||
elif [[ -e /etc/debian_version ]]; then | ||
sudo cp /orchestrator/vagrant/db4-my.cnf /etc/mysql/my.cnf | ||
if [[ -e /etc/debian_version ]]; then | ||
sudo cp /orchestrator/vagrant/db1-my.cnf /etc/mysql/my.cnf | ||
sudo /etc/init.d/mysql restart | ||
|
||
sudo cat <<-EOF >> /root/.my.cnf | ||
[client] | ||
user = root | ||
password = vagrant | ||
EOF | ||
fi | ||
|
||
/usr/bin/mysql -uroot -ss -e 'GRANT REPLICATION SLAVE ON *.* TO "repl"@"192.168.57.%" IDENTIFIED BY "vagrant_repl"' | ||
/usr/bin/mysql -uroot -ss -e 'CHANGE MASTER TO MASTER_HOST="192.168.57.202", MASTER_USER="repl", MASTER_PASSWORD="vagrant_repl"' | ||
/usr/bin/mysql -uroot -ss -e 'CHANGE MASTER TO MASTER_HOST="192.168.57.202", MASTER_USER="repl", MASTER_PASSWORD="vagrant_repl", MASTER_CONNECT_RETRY=10, MASTER_RETRY_COUNT=36' | ||
/usr/bin/mysql -uroot -ss -e 'START SLAVE' |
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