Last active
November 3, 2019 14:13
-
-
Save AnoopAlias/fdbd91554134038f11d6a7986f90e060 to your computer and use it in GitHub Desktop.
upgrade-autom8n-4.9-to-4.10.sh
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
# Do on master | |
yum -y --enablerepo=ndeploy upgrade *nDeploy* gnusys-monitoring | |
rm -f /opt/nDeploy/conf/XTENDWEB_MAXSCALE_SETUP_LOCK_DO_NOT_REMOVE | |
ansible -i /opt/nDeploy/conf/nDeploy-cluster/hosts ndeployslaves -a "yum -y --enablerepo=ndeploy upgrade *nDeploy* gnusys-monitoring" | |
ansible -i /opt/nDeploy/conf/nDeploy-cluster/hosts ndeployslaves -a "rm -f /opt/nDeploy/conf/XTENDWEB_MAXSCALE_SETUP_LOCK_DO_NOT_REMOVE" | |
cp -p /opt/nDeploy/conf/nDeploy-cluster/hosts /opt/nDeploy/conf/nDeploy-cluster/hosts.orig | |
/opt/nDeploy/scripts/ini2yaml < /opt/nDeploy/conf/nDeploy-cluster/hosts > /opt/nDeploy/conf/nDeploy-cluster/hosts.yaml | |
cp -p /opt/nDeploy/conf/nDeploy-cluster/hosts.yaml /opt/nDeploy/conf/nDeploy-cluster/hosts | |
cd /opt/nDeploy/conf/nDeploy-cluster | |
ansible-playbook -i ./hosts cluster.yml | |
nginx -t # Ensure Nginx Syntax validity | |
ansible -i /opt/nDeploy/conf/nDeploy-cluster/hosts ndeployslaves -a "nginx -t" # Ensure Nginx Syntax validity | |
systemctl restart maxscale nginx | |
ansible -i /opt/nDeploy/conf/nDeploy-cluster/hosts ndeployslaves -a "systemctl restart maxscale nginx" | |
/opt/nDeploy/scripts/fix_csync2_configsync.sh | |
maxctrl list servers | |
ansible -i /opt/nDeploy/conf/nDeploy-cluster/hosts ndeployslaves -a "maxctrl list servers" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment