Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
upgrade-autom8n-4.9-to-4.10.sh
# 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
You can’t perform that action at this time.