Veritas InfoScale™ Installation, Upgrade, and Configuration Using Ansible - Linux

Last Published:
Product(s): InfoScale & Storage Foundation (8.0.2, 8.0, 7.4.3, 7.4.2, 7.4.1)
Platform: Linux

Ansible modules for configuring InfoScale

Use the following Ansible modules in your playbooks to configure Veritas 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

  • site_facters

  • <component_name>

    _config

Example:

sfcfsha_config

sfha_config

Configuring sfcfsha

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 }}" 
            } 
         }
      ] 
   }
] 

Configuring sfcfs

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 }}" 
            } 
         } 
      ] 
   } 
] 

Configuring sfha

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 }}" 
            } 
         } 
      ] 
   } 
] 

Configuring vcs

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 }}" 
            } 
         } 
      ] 
   } 
] 

Configuring sf

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

  • site_facters

  • process

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

  • site_facters

  • process

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 }}" 
            } 
         } 
      ] 
   } 
]