GithubHelp home page GithubHelp logo

tleguern / ansible.ha-cluster-pacemaker-qdevice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from olipou/ansible.ha-cluster-pacemaker-qdevice

0.0 0.0 0.0 19 KB

ansible role for HA pacemaker qdevice (Debian10)

License: GNU General Public License v3.0

ansible.ha-cluster-pacemaker-qdevice's Introduction

ha-cluster-pacemaker-qdevice

Role for a basic configuring quorum device on pacemaker cluster ( Debian 10). This role complements the role https://github.com/OndrejHome/ansible.ha-cluster-pacemaker

This role can configure following aspects of pacemaker cluster:

  • install needed packages
  • create and configure users and groups for running quorum device
  • authorize qorum device on each pacemaker nodes
  • create or update qorum device cluster configuration (check allowed_qdevice_changes)

Requirements

This role depend on role ondrejhome.pcs-modules-2. You need a cluster fully configured to add your qdevice see : https://github.com/OndrejHome/ansible.ha-cluster-pacemaker.

Role tested on Debian 10.8 with ansible 2.10

Role Variables

  • user used for authorizing cluster nodes

    cluster_user: 'hacluster'
    
  • password for user used for authorizing cluster nodes

    cluster_user_pass: 'testtest'
    
  • group to which cluster user belongs (should be 'haclient')

    cluster_group: 'haclient'
    
  • enable qdevice on boot on normal

    cluster_enable_service: true
    
  • Whether to add hosts to /etc/hosts. By default an entry for the hostname given by cluster_hostname_fact is added for each host to /etc/hosts. This can be disabled by setting cluster_etc_hosts to false.

    cluster_etc_hosts: true
    
  • To set your quorum device use the value true.

    cluster_node_is_arbiter: false
    
  • Allow update quorum device setting (server qorum device or qdevice_algorithm).

    qdevice_allowed_change: none
    
  • algorithm use by the cluster.

    qdevice_algorithm: 'ffsplit'
    

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: cluster
  roles:
    - ha-cluster-pacemaker-qdevice

  qdevice variable to set:
    qdevice_allowed_change: none
    qdevice_algorithm: 'ffsplit'
    cluster_node_is_arbiter: true

License

GPLv3

Author Information

To get in touch with author you can create a issue on github when requesting some feature.

ansible.ha-cluster-pacemaker-qdevice's People

Contributors

olipou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.