Skip to content

ulodciv/cluster_deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deploy_cluster:

  • easily deploy corosync/pacemaker clusters
  • automate deploying clusters in a replicable manner
  • functionally test Pacemaker Resource Agents by making it easier to write close-to-real-life tests

The tool includes classes that deploy clusters with highly-available Postgresql using a multi-state Pacemaker resource agent.

There are some unit tests and functional tests, but more tests are needed to confirm the RA works properly in most scenarios. This tool makes it easier to write such functional tests.

Requirements

  • Linux or Windows as the VM host

  • Python >= 3.6 with module Paramiko:

    python -m pip install paramiko
    
  • VirtualBox

  • pgha.py

Usage

  1. Set up a VirtualBox VM that has:

    • CentOS/RHEL 7, Debian 9, or Ubuntu Zesty
    • SELinux disabled
    • VirtualBox guest additions
    • Postgresql 9.6 or 10
    • pcs enabled (disable corosync and pacemaker services)
    • Enable root account (when using Ubuntu)
  2. Export the VM as an OVA file

  3. Update the JSON cluster file as needed (config/pgha_cluster.json)

    • Set the path to pgha.py
    • Set hosts and IP addresses
    • ...
  4. Deploy the cluster:

    python src/pgha_deployer.py config/pgha_cluster.json
    

About

Automate clusters deployment: deploy clusters quickly and reliably in a replicable manner.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages