Deleted scripts/create-cluster.sh.
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Tue, 1 Oct 2024 19:47:02 +0000 (21:47 +0200)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Tue, 1 Oct 2024 19:47:02 +0000 (21:47 +0200)
scripts/create-cluster.sh [deleted file]

diff --git a/scripts/create-cluster.sh b/scripts/create-cluster.sh
deleted file mode 100755 (executable)
index ca3033e..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-set -x
-
-
-echo "The following commands should have been run on both nodes."
-echo "  systemctl enable pcsd"
-echo "  systemctl start pcsd"
-echo "  systemctl disable lxc"
-echo "  systemctl stop lxc"
-echo "  passwd hacluster"
-read -p "Press enter if they have been run on both nodes."
-
-pcs cluster status
-
-read -p "Press enter to stop and destroy the existing cluster"
-
-pcs cluster stop --all
-pcs cluster destroy --all
-
-sleep 5
-
-pcs host auth vhost1 addr=10.228.93.1 -u hacluster -p Passw@rd01
-pcs host auth vhost2 addr=10.228.93.2 -u hacluster -p Passw@rd01
-
-pcs cluster setup lxc-cluster --start --enable \
-    vhost1 addr=10.228.93.1 addr=172.16.131.221 addr=172.16.132.221 \
-    vhost2 addr=10.228.93.2 addr=172.16.131.222 addr=172.16.132.222
-
-CLUSTER_NODES_STARTED=0
-while [ $CLUSTER_NODES_STARTED -lt 2 ]
-do
-    sleep 5
-    pcs cluster status
-    CLUSTER_NODES_STARTED=$(pcs cluster status | grep ': Online' | grep -w -e vhost1 -e vhost2 | wc -l)
-done
-
-pcs property set maintenance-mode=true
-
-pcs resource create lxc-fs ocf:heartbeat:Filesystem \
-    device=/dev/mapper/lxc directory=/lxc fstype=ext4
-pcs resource create lxc-service systemd:lxc
-
-pcs resource group add lxc-group \
-    lxc-fs \
-    lxc-service