ha-cluster-rgmanager

ha-cluster-rgmanager

Role for configuring basic rgmanager high-availability cluster on CentOS/RHEL 5/6 systems.

ROLE RETIREMENT NOTICE

As the 'rgmanager' is not developed for long time no new development is planned for this role.

Last time the functionality of role was tested (2022-09-27) with following parameters:

  • CentOS 7.9 host running Ansible 2.4
  • against CentOS 6.10 machines to create cluster
  • against RHEL 6.10 machines to create cluster

Requirements

RHEL: It is expected that machines will already be registered and subscribed for access to 'High Availability' or 'Resilient storage' channels. CentOS 5.xx: requires installation of python-simplejson.x86_64 package prior to ansible run.

Role Variables

  • user and group for ricci daemon (for most deployments doesn't need changing except password)

    cluster_user: 'ricci'
    
    cluster_user_pass: 'testtest'
    
    cluster_group: 'ricci'
    
  • name of the cluster

    cluster_name: 'rgmanager'
    
  • configuration of firewall for clustering, NOTE this replaces iptables configuration file!

    cluster_firewall: true
    
  • enable cluster on boot

    cluster_enable_service: true
    
  • configure cluster with fence_xvm fencing device ? This will copy /etc/cluster/fence_xvm.key to nodes and add fencing devices to cluster NOTE: you need to define 'vm_name' in the inventory for each cluster node

    cluster_configure_fence_xvm: true
    
  • use custom multicast address for cluster communication (by default cluster generates multicast address based on cluster ID)

    multicast_address: '239.192.1.2'
    
  • (RHEL only) enable the repositories containint packages needed

    enable_repos: true
    
  • (RHEL only) enable the extended update (EUS) repositories containint packages ne eded

    enable_eus_repos: false
    
  • (RHEL only) enable Beta repositories containint packages needed

    enable_beta_repos: false
    
  • (RHEL only) type of enable repositories

    • ha - High-Availability
    • rs - Resilient Storage
    repos_type: 'ha'
    
  • Cluster transport protocol. Available options are 'udp' (UDP multicast) and 'udpu' (UDP unicast).

    cluster_transport: 'udp'
    

Example Playbook

Example playbook for creating cluster named 'test1' enabled on boot, with fence_xvm and firewall settings

- hosts: servers
  roles:
     - { role: 'ondrejhome.ha-cluster-rgmanager', cluster_name: 'test1' }

Example for creating cluster named 'test2' without configuring firewalling and without fence_xvm. For cluster to get properly authorize it is expected that firewall is already configured or disabled.

- hosts: servers
  roles:
     - { role: 'ondrejhome.ha-cluster-rgmanager', cluster_name: 'test2', cluster_firewall: false, cluster_configure_fence_xvm: false }

Inventory file example for CentOS/RHEL.

[cluster-el]
192.168.22.21 vm_name=fastvm-centos-6.10-21
192.168.22.22 vm_name=fastvm-centos-6.10-22

License

GPLv3

Author Information

To get in touch with author you can use email ondrej-xa2iel8u@famera.cz or create a issue on github.

About

rgmanager basic cluster role with fence_xvm

Install
ansible-galaxy install OndrejHome/ansible.ha-cluster-rgmanager
GitHub repository
License
gpl-3.0
Downloads
65