Giter Site home page Giter Site logo

garutilorenzo / ansible-role-linux-gluster Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 18 KB

Ansible role used to install and configure gluster, NFS ganesha and pacemaker for HA

License: GNU General Public License v3.0

Jinja 100.00%
ansible ansible-role docker ganesha gluster glusterfs high-availability pacemaker

ansible-role-linux-gluster's Introduction

GitHub issues GitHub GitHub forks GitHub stars

Install and configure gluster in HA mode

Ansible role used to install and configure gluster, NFS ganesha and pacemaker for HA

Requirements

Install ansible, ipaddr and netaddr:

pip install -r requirements.txt

Download the role form GitHub:

ansible-galaxy install git+https://github.com/garutilorenzo/ansible-role-linux-gluster.git

Your inventory file must have the following groups:

  • gluster

Role Variables

NOTE: only replicated volume supported at the moment

This role accept this variables:

Var Required Default Desc
gluster_vip_ip yes dns Gluster VIP ip used for HA. Must be in the network subnet where gluster and pacemaker daemon are listening
hacluster_password yes dns Secrets used for hacluster user
gluster_subnet no `` If the server have multiple network interfaces, specify the subnet where the gluster and pacemaker daemon are listening.
gluster_resolv_mode no dns Determinate how nodes will be resolved, used for local testing purposes where dns is not available.
gluster_volume no example The name of the NFS volume exposed by NFS ganesha
gluster_path no /tank/ Gluster local storage directory
gluster_volume_type no replica Gluster volume type `stripe
gluster_volume_replica_count_type no 3 Gluster local storage directory

Example playbook

Here one example playbook:

- hosts: gluster
  become: yes
  remote_user: vagrant
  roles: 
    - role: ansible-role-linux-gluster

TODO

  • Support for striped and disperse volume
  • Create the FS not only the directory

ansible-role-linux-gluster's People

Contributors

garutilorenzo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ansible-role-linux-gluster's Issues

Could replace the need to supply hacluster password

I created a role similar and used the below to then not require passing the hacluster password as a var.


- name: Create random password
  ansible.builtin.set_fact:
    ha_userpass: "{{ lookup('ansible.builtin.password', '/dev/null', seed=ansible_date_time.time) }}"

- name: Change hacluster user password
  ansible.builtin.user:
    name: hacluster
    update_password: always
    password: "{{ ha_userpass | password_hash('sha512') }}"

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.