InfoScale™ Installation, Upgrade, and Configuration Using Ansible - Linux
- Section I. InfoScale Ansible playbooks
- Section II. InfoScale Ansible end to end workflow / solution
Ansible modules for configuring InfoScale
Use the following Ansible modules in your playbooks to configure Arctera InfoScale product components. Refer to the following table for a list of modules, along with a sample playbook, used for each of the configuration-related operations:
Table: Component configuration-related operations
Operation | Required modules | Sample playbook |
|---|---|---|
Component configuration |
Example: sfcfsha_config sfha_config | Sample playbook - YAML ---
- hosts: cpicluster11
gather_facts: false
any_errors_fatal: true
tasks:
- name: Facters
veritas_infoscale:
module: site_facters
release_matrix_path: <URL>
register: facts
- name: Configure Enterprise
veritas_infoscale:
module: sfcfsha_config
cluster_name: clust_cpi9
cluster_uuid: c7c2d65e-058f-11e8-a32c-c094107f3b61
product_version: '7.4.2'
license: 'ENTERPRISE'
method: ethernet
enable_lgf: 1
seednode: dl380g10-09-vm7
state: present
private_link: eth1,eth2
low_priority_link: eth0
mtu: 1100
eo_compliant_logging: on
facters: "{{ ansible_play_hosts_all|
map('extract',hostvars, ['facts','infoscale_facts'])
| select()|list }}"Sample playbook - JSON [
{
"hosts": "cpicluster11",
"gather_facts": false,
"any_errors_fatal": true,
"tasks": [
{
"name": "Facters",
"veritas_infoscale": {
"module": "site_facters",
"release_matrix_path": "<URL>",
},
"register": "facts"
},
{
"name": "Configure Enterprise",
"veritas_infoscale": {
"module": "sfcfsha_config",
"cluster_name": "clust_cpi9",
"cluster_uuid":
"c7c2d65e-058f-11e8-a32c-c094107f3b61",
"product_version": "7.4.2",
"license": "ENTERPRISE",
"method": "ethernet",
"enable_lgf": 1,
"seednode": "dl380g10-09-vm7",
"state": "present",
"private_link": "eth1,eth2",
"low_priority_link": "eth0",
"mtu": 1100,
"eo_compliant_logging": "on",
"facters": "{{ ansible_play_hosts_all
|map('extract', hostvars, 'facts','infoscale_facts'])
| select()|list }}"
}
}
]
}
] Sample playbook - YAML ---
- hosts: cluster-47-48-49
gather_facts: false
any_errors_fatal: true
tasks:
- name: Facters
veritas_infoscale:
module: site_facters
release_matrix_path: <URL>
register: facts
- name: Configure SFCFS
veritas_infoscale:
module: sfcfsha_config
cluster_name: sfcfs_cluster_40_42
cluster_uuid:
product_version: '7.4.2'
method: ethernet
seednode: dl380g10-12-kvm-42
license: STORAGE
state: present
private_link: eth1,eth2
udp_link: null
low_priority_link: eth0
tcp_link: null
enable_lgf: 1
eo_compliant_logging: on
facters: "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}" Sample playbook - JSON [
{
"hosts": "cluster-47-48-49",
"gather_facts": false,
"any_errors_fatal": true,
"tasks": [
{
"name": "Facters",
"veritas_infoscale": {
"module": "site_facters",
"release_matrix_path": "<URL>",
},
"register": "facts"
},
{
"name": "Configure SFCFS",
"veritas_infoscale": {
"module": "sfcfsha_config",
"cluster_name": "sfcfs_cluster_40_42",
"cluster_uuid": null,
"product_version": "7.4.2",
"method": "ethernet",
"seednode": "dl380g10-12-kvm-42",
"license": "STORAGE",
"state": "present",
"private_link": "eth1,eth2",
"udp_link": null,
"low_priority_link": "eth0",
"tcp_link": null,
"enable_lgf": 1,
"eo_compliant_logging": "on",
"facters": "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}"
}
}
]
}
] Sample playbook - YAML ---
- hosts: cpicluster11
gather_facts: true
any_errors_fatal: true
tasks:
- name: Facters
veritas_infoscale:
module: site_facters
release_matrix_path: <URL>
register: facts
- name: Configure Enterprise
veritas_infoscale:
module: sfha_config
cluster_name: clust_cpi9
cluster_uuid: c7c2d65e-058f-11e8-a32c-c094107f3b61
product_version: '7.4.2'
license: 'ENTERPRISE'
method: ethernet
enable_lgf: 1
seednode: dl380g10-09-vm7
state: present
private_link: eth1,eth2
low_priority_link: eth0
mtu: 1100
eo_compliant_logging: on
facters: "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}"Sample playbook - JSON [
{
"hosts": "cpicluster11",
"gather_facts": false,
"any_errors_fatal": true,
"tasks": [
{
"name": "Facters",
"veritas_infoscale": {
"module": "site_facters",
"release_matrix_path": "<URL>",
},
"register": "facts"
},
{
"name": "Configure Enterprise",
"veritas_infoscale": {
"module": "sfha_config",
"cluster_name": "clust_cpi9",
"cluster_uuid":
"c7c2d65e-058f-11e8-a32c-c094107f3b61",
"product_version": "7.4.2",
"license": "ENTERPRISE",
"method": "ethernet",
"enable_lgf": 1,
"seednode": "dl380g10-09-vm7",
"state": "present",
"private_link": "eth1,eth2",
"low_priority_link": "eth0",
"mtu": 1100,
"eo_compliant_logging": "on",
"facters": "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}"
}
}
]
}
] Sample playbook - YAML ---
- hosts: cpicluster11
gather_facts: true
any_errors_fatal: true
tasks:
- name: Facters
veritas_infoscale:
module: site_facters
release_matrix_path: <URL>
register: facts
- name: Configure Enterprise
veritas_infoscale:
module: vcs_config
cluster_name: clust_cpi9
cluster_uuid: c7c2d65e-058f-11e8-a32c-c094107f3b61
product_version: '7.4.2'
license: 'ENTERPRISE'
method: ethernet
enable_lgf: 1
seednode: dl380g10-09-vm7
state: present
private_link: eth1,eth2
low_priority_link: eth0
mtu: 1100
eo_compliant_logging: on
facters: "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}"Sample playbook - JSON [
{
"hosts": "cpicluster11",
"gather_facts": false,
"any_errors_fatal": true,
"tasks": [
{
"name": "Facters",
"veritas_infoscale": {
"module": "site_facters",
"release_matrix_path": "<URL>",
},
"register": "facts"
},
{
"name": "Configure Enterprise",
"veritas_infoscale": {
"module": "vcs_config",
"cluster_name": "clust_cpi9",
"cluster_uuid":
"c7c2d65e-058f-11e8-a32c-c094107f3b61",
"product_version": "7.4.2",
"license": "ENTERPRISE",
"method": "ethernet",
"enable_lgf": 1,
"seednode": "dl380g10-09-vm7",
"state": "present",
"private_link": "eth1,eth2",
"low_priority_link": "eth0",
"mtu": 1100,
"eo_compliant_logging": "on",
"facters": "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}"
}
}
]
}
]
Sample playbook - YAML ---
- hosts: cpicluster11
gather_facts: true
any_errors_fatal: true
tasks:
- name: Facters
veritas_infoscale:
module: site_facters
release_matrix_path: <URL>
register: facts
- name: Configure Enterprise
veritas_infoscale:
module: sf_config
product_version: '7.4.2'
license: 'ENTERPRISE'
seednode: dl380g10-09-vm7
state: present
eo_compliant_logging: on
facters: "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}" |
Sample playbook - JSON [
{
"hosts": "cpicluster11",
"gather_facts": false,
"any_errors_fatal": true,
"tasks": [
{
"name": "Facters",
"veritas_infoscale": {
"module": "site_facters",
"release_matrix_path": "<URL>",
},
"register": "facts"
},
{
"name": "Configure Enterprise",
"veritas_infoscale": {
"module": "sf_config",
"product_version": "7.4.2",
"license": "ENTERPRISE",
"seednode": "dl380g10-09-vm7",
"state": "present",
"eo_compliant_logging": "on",
"facters": "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}"
}
}
]
}
] | ||
Starting a product |
| Sample playbook - YAML ---
- hosts: cpicluster11
gather_facts: false
any_errors_fatal: true
tasks:
- name: Facters
veritas_infoscale:
module: site_facters
release_matrix_path: <URL>
register: facts
- name: Start Product
veritas_infoscale:
module: process
component: sfcfsha
product: enterprise
product_version: '7.4.2'
state: present
facters: "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}" |
Sample playbook - JSON [
{
"hosts": "cpicluster11",
"gather_facts": false,
"any_errors_fatal": true,
"tasks": [
{
"name": "Facters",
"veritas_infoscale": {
"module": "site_facters",
"release_matrix_path": "<URL>",
},
"register": "facts"
},
{
"name": "Start Product",
"veritas_infoscale": {
"module": "process",
"component": "sfcfsha",
"product": "enterprise",
"product_version": "7.4.2",
"state": "present",
"facters": "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}"
}
}
]
}
] | ||
Stopping a product |
| Sample playbook - YAML ---
- hosts: cpicluster11
gather_facts: false
any_errors_fatal: true
tasks:
- name: Facters
veritas_infoscale:
module: site_facters
release_matrix_path: <URL>
register: facts
- name: Start Product
veritas_infoscale:
module: process
component: sfcfsha
product: enterprise
product_version: '7.4.2'
state: absent
facters: "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}" |
Sample playbook - JSON [
{
"hosts": "cpicluster11",
"gather_facts": false,
"any_errors_fatal": true,
"tasks": [
{
"name": "Facters",
"veritas_infoscale": {
"module": "site_facters",
"release_matrix_path": "<URL>",
},
"register": "facts"
},
{
"name": "Stop Product",
"veritas_infoscale": {
"module": "process",
"component": "sfcfsha",
"product": "enterprise",
"product_version": "7.4.2",
"state": "absent",
"facters": "{{ ansible_play_hosts_all
|map('extract', hostvars, ['facts','infoscale_facts'])
| select()|list }}"
}
}
]
}
] |