This is my first project on github. It was inspired by this blog post and I want to thanks blog author for this.
The script has been tested on CentOS 7 running in VirtualBox
Please edit file setvars and set your own values for variables
- A list of IP addresses of your cluster
IP_LIST
- Preferable hostnames for your cluster
CLUSTER_HOSTNAME
- PCS virtual IP to be used during installation, this IP must not be in use by any other host and has to be in the same subnet as your cluster nodes
VIRTUAL_IP
- Choose a directory for your NFS share
NFS_DIR
- Set volume name for GlusterFS if needed
GLUSTER_VOLUME_NAME
- Set the password for hacluster user (user account will be created automaticaly during pcs package insyallation)
HACLUSTER_PASSWORD
- You can edit or add values to another variables if needed
Run the script on each node. Enjoy!