tazend / ansible-role-mmmodules

ansible modules for IBM Spectrum Scale file systems

Home Page:https://galaxy.ansible.com/idiv_biodiversity/mmmodules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Role: mmmodules

Ansible modules for IBM Spectrum Scale (formerly GPFS) file systems.

Table of Contents

Requirements

  • Ansible 2+

Role Variables

None.

Dependencies

None.

Module Usage

There's a bit of a chicken and egg situation going on, because some commands can only be run if everything is set up. So, assuming that one filer is already up and running, we can use one as delegate:

- name: find our delegate
  set_fact:
    mmdelegate: '{{ groups.filer | random }}'

This can then be used with the modules if required:

- name: add node
  mmnode:
    name: node007
  delegate_to: '{{ mmdelegate }}'

- name: add to nodeclass
  mmnodeclass:
    node: node007
    nodeclass: compute
  delegate_to: '{{ mmdelegate }}'

- name: set license
  mmlicense:
    node: node007
    license: client
  delegate_to: '{{ mmdelegate }}'

Configuration can be done for node classes:

- name: small pagepool for compute
  mmconfig:
    node: compute
    key: pagepool
    value: 4G
  run_once: yes

- name: fat pagepool for filer
  mmconfig:
    node: filer
    key: pagepool
    value: 256G
  run_once: yes

Example Playbook

Add to requirements.yml:

---

- src: idiv-biodiversity.mmmodules

...

Download:

$ ansible-galaxy install -r requirements.yml

Top-Level Playbook

Write a top-level playbook:

---

- name: file server
  hosts: filer

  roles:
    - role: idiv-biodiversity.mmmodules

...

Role Dependency

Define the role dependency in meta/main.yml:

---

dependencies:

  - role: idiv-biodiversity.mmmodules

...

License

MIT

Author Information

This role was created in 2022 by Christian Krause aka wookietreiber at GitHub, HPC cluster systems administrator at the German Centre for Integrative Biodiversity Research (iDiv).

About

ansible modules for IBM Spectrum Scale file systems

https://galaxy.ansible.com/idiv_biodiversity/mmmodules

License:MIT License


Languages

Language:Python 100.0%