Ansible modules for IBM Spectrum Scale (formerly GPFS) file systems.
- Ansible 2.4
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
---
# requirements.yml
roles:
- name: idiv_biodiversity.mmmodules
src: https://github.com/idiv-biodiversity/ansible-role-mmmodules
version: vX.Y.Z
...
Write a top-level playbook:
---
- name: file server
hosts: filer
roles:
- role: idiv_biodiversity.mmmodules
...
Define the role dependency in meta/main.yml
:
---
dependencies:
- role: idiv_biodiversity.mmmodules
...
MIT
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).