mmmodules

Ansible Role: mmmodules

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

Table of Contents

Requirements

  • Ansible 2.4

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

Dependencies

---

# requirements.yml

roles:

  - name: idiv_biodiversity.mmmodules
    src: https://github.com/idiv-biodiversity/ansible-role-mmmodules
    version: vX.Y.Z

...

Example Playbook

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

modules for IBM Spectrum Scale

Install
ansible-galaxy install idiv-biodiversity/ansible-role-mmmodules
GitHub repository
License
mit
Downloads
1482