-
Notifications
You must be signed in to change notification settings - Fork 70
/
playbook_remote_mount.yml
29 lines (26 loc) · 1.55 KB
/
playbook_remote_mount.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
#
# samples/playbook_remote_mount.yml
#
# Playbook sample for deploying IBM Spectrum Scale (GPFS) cluster with Remote_Mount
# enabled. Additional variables need to be defined for this, it is recommended
# to use Ansible group variables for this purpose:
# https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#assigning-a-variable-to-many-machines-group-variables
- hosts: cluster01
collections:
- ibm.spectrum_scale
vars:
scale_remotemount_client_gui_username: admin
scale_remotemount_client_gui_password: Admin@GUI
scale_remotemount_client_gui_hostname: 10.10.10.10
scale_remotemount_storage_gui_username: admin
scale_remotemount_storage_gui_password: Admin@GUI
scale_remotemount_storage_gui_hostname: 10.10.10.20
scale_remotemount_filesystem_name:
- { scale_remotemount_client_filesystem_name: "fs2", scale_remotemount_client_remotemount_path: "/gpfs/fs2", scale_remotemount_storage_filesystem_name: "gpfs01", } # Minimum variables
- { scale_remotemount_client_filesystem_name: "fs3", scale_remotemount_client_remotemount_path: "/gpfs/fs3", scale_remotemount_storage_filesystem_name: "gpfs02", scale_remotemount_client_mount_priority: '2', scale_remotemount_access_mount_attributes: "rw", scale_remotemount_client_mount_fs: "yes" }
roles:
- remotemount_configure
# If Accessing/Client Cluster don't have GUI,
# Then change wee need to add variable scale_remotemount_client_no_gui: true and ansible "hosts" need to point to one of the Scale client cluster node
# See also playbook remote_mount_cli.yml