steps_database_wrangler 1.84 KB
Newer Older
Matteo Melli's avatar
Matteo Melli committed
1
export steps=(
2 3 4 5 6 7 8 9 10
function:get-rid-of-could-not-change-directory-to-message
file:scripts/01_preflight/050_configuration_checks/110-check-repmgr-state.sh
file:scripts/01_preflight/050_configuration_checks/111-check-replication-topology.sh
file:scripts/02_failover/060_go/p03/050-create-tombstone-table.sh
file:scripts/02_failover/060_go/p03/051-check-gcp-replication-delay.sh
file:scripts/02_failover/060_go/p04/040-disable-chef.sh
file:scripts/02_failover/060_go/p04/041-disable-consul.sh
file:scripts/02_failover/060_go/p04/042-disable-automatic-failover.sh
file:scripts/02_failover/060_go/p04/043-reset-automatic-failover-state.sh
11
file:scripts/02_failover/060_go/p04/050-convert-azure-master-to-headless-standby.sh
12 13 14 15 16 17 18 19
file:scripts/02_failover/060_go/p04/051-check-azure-master-is-standby.sh
file:scripts/02_failover/060_go/p04/052-check-gcp-nodes-has-same-azure-lsn.sh
file:scripts/02_failover/060_go/p04/060-perform-gcp-candidate-master-promote.sh
file:scripts/02_failover/060_go/p04/061-check-gcp-candidate-master-is-master.sh
file:scripts/02_failover/060_go/p04/070-enable-automatic-failover-on-gcp-only.sh
file:scripts/02_failover/060_go/p04/071-check-repmgr-master.sh
file:scripts/02_failover/060_go/p04/072-enable-consul-on-gcp-only.sh
file:scripts/02_failover/060_go/p04/073-check-pgbouncer-node-in-gcp.sh
20
file:scripts/02_failover/060_go/p04/074-convert-azure-master-to-standby-of-gcp.sh
21
function:restore-could-not-change-directory-to-message
Matteo Melli's avatar
Matteo Melli committed
22 23
)

24
function get-rid-of-could-not-change-directory-to-message(){
25
  for host in "${AZURE_HOSTS[@]}" "${GCP_HOSTS[@]}"
26
  do
27 28
    echo "$host: chmod o+x \$HOME"
    ssh_remote "$host" bash -c '"chmod o+x \"$HOME\""'
Matteo Melli's avatar
Matteo Melli committed
29
  done
Matteo Melli's avatar
Matteo Melli committed
30
}
Matteo Melli's avatar
Matteo Melli committed
31

32
function restore-could-not-change-directory-to-message(){
33
  for host in "${AZURE_HOSTS[@]}" "${GCP_HOSTS[@]}"
34
  do
35 36
    echo "$host: chmod o-x \$HOME"
    ssh_remote "$host" bash -c '"chmod o-x \"$HOME\""'
37 38
  done
}