ophidia-cluster
Role Name
The ansible role deploys and configures all services required for an Ophidia cluster.
Introduction
The repository contains ansible-roles that are published in ansible galaxy: https://galaxy.ansible.com/indigo-dc/ophidia-cluster/
Requirements
No additional requirements
Role Variables
Role variables for Ophidia cluster are:
- cert_passwd: the password for the certificates and user account
- ophdb_passwd: the password for MySQL
- oph_user: user that will run the framework
- base_path: base path for shared data folder
- server_ip: Ophidia server ip address
- compute_subnet: subnetwork for Ophidia io-compute nodes
- mysql_subnet: subnetwork for Ophidia io-compute nodes (for database grant)
- deploy_type: type of deployment ('install' or 'configure')
- io_nodes_ips: list of IPs of io-compute nodes
- node_type: type of node ('server' or 'io')
Dependencies
It requires indigo-dc.nfs and indigo-dc.slurm ansible role.
Example Playbook
An example of playbook to install an Ophidia cluster:
---
- hosts: oph-server
roles:
- {role: 'indigo-dc.ophidia-cluster', node_type: 'server', deploy_type: 'install'}
- hosts: oph-io
roles:
- {role: 'indigo-dc.ophidia-cluster', node_type: 'io', deploy_type: 'install'}
An example of playbook to configure an Ophidia cluster:
---
- hosts: oph-server
roles:
- {role: 'indigo-dc.ophidia-cluster', node_type: 'server', deploy_type: 'configure', io_nodes_ips: "{{ groups['oph-io']|map('extract', hostvars, 'ansible_default_ipv4')|list }}", mysql_subnet: "{{ ansible_default_ipv4.network }}/{{ ansible_default_ipv4.netmask }}", compute_subnet: "{{ ansible_default_ipv4.network }}/24", server_ip: '{{ ansible_default_ipv4.address }}'}
- hosts: oph-io
roles:
- {role: 'indigo-dc.ophidia-cluster', node_type: 'io', deploy_type: 'configure', mysql_subnet: "{{ ansible_default_ipv4.network }}/{{ ansible_default_ipv4.netmask }}", server_ip: "{{hostvars['oph-server']['ansible_default_ipv4']['address']}}"}
Further documentation
- Ophidia: http://ophidia.cmcc.it
- Installation and configuration: http://ophidia.cmcc.it/documentation/admin/index.html
License
Apache v2