Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Fixes for fresh install #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion migrator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3

import datetime
import os
Expand Down
5 changes: 4 additions & 1 deletion postgresql-cluster-setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

PG01="172.28.33.11"
PG02="172.28.33.12"
Expand Down Expand Up @@ -198,6 +198,9 @@ service {
}
EOF

# Make sure pacemaker starts on boot (Corosync's start priority is 19 so set pacemaker higher)
sudo update-rc.d pacemaker defaults 20 01

# start corosync / pacemaker
service corosync start
# TODO: check output of corosync-cfgtool -s says "no faults"
Expand Down
6 changes: 5 additions & 1 deletion tmux-session.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -eu

Expand All @@ -23,6 +23,10 @@ function setup-session() {
}

if [ "$ARG" == "start" ]; then
if ! vagrant box list | grep -q "^ubuntu/trusty64" ; then
echo "Installing ubuntu/trusty64 box..."
vagrant box add ubuntu/trusty64
fi
(tmux new-session -d -s pg -n cluster && setup-session) || tmux attach -t pg
elif [ "$ARG" == "stop" ]; then
echo "Stopping all VMs..."
Expand Down