This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import ConfigParser | |
| import os | |
| import time | |
| import getpass | |
| def get_dump(): | |
| print "Enter user:" | |
| user = raw_input() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| BIND_NETWORK="192.168.5.0" | |
| SHARED_VIP="192.168.5.30" | |
| apt-get update | |
| apt-get install -y pacemaker ntp | |
| # Configure Corosync | |
| echo "START=yes" > /etc/default/corosync | |
| sed -i "s/bindnetaddr: 127.0.0.1/bindnetaddr: $BIND_NETWORK/g" /etc/corosync/corosync.conf |