File: setup

package info (click to toggle)
pcs 0.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,580 kB
  • sloc: python: 228,655; xml: 20,710; ruby: 13,336; makefile: 1,554; sh: 485
file content (26 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

set -e

ulimit -H -l unlimited 2>/dev/null || {
    # https://bugs.launchpad.net/bugs/1828228
    echo "test disabled for unprivileged namespaces"
    exit 77
}

cleanup () {
  service pcsd stop
  service pacemaker stop
  service corosync stop
  passwd --delete --lock hacluster
}

trap "cleanup" 0 2 3 15

echo hacluster:hacluster | chpasswd
pcs cluster auth -u hacluster -p hacluster
pcs cluster setup debian node1 --start --force

sleep 60

pcs pcsd status | grep -20 "node1: Online"