indigo-dc.ophidia-cluster
Role Name
=========
This Ansible role sets up and configures everything needed for an Ophidia cluster.
Introduction
This repository has Ansible roles that you can find on Ansible Galaxy: https://galaxy.ansible.com/indigo-dc/ophidia-cluster/
Requirements
There are no extra requirements.
Role Variables
Here are the variables you can use for the Ophidia cluster:
- cert_passwd: Password for certificates and user accounts
- ophdb_passwd: MySQL password
- oph_user: User who runs the framework
- base_path: Base path for the shared data folder
- server_ip: IP address of the Ophidia server
- compute_subnet: Subnetwork for Ophidia io-compute nodes
- mysql_subnet: Subnetwork for database access for Ophidia io-compute nodes
- deploy_type: Type of deployment ('install' or 'configure')
- io_nodes_ips: List of IPs for io-compute nodes
- node_type: Type of node ('server' or 'io')
Dependencies
This role needs the indigo-dc.nfs
and indigo-dc.slurm
Ansible roles.
Example Playbook
Here's how to create a 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'}
Here's how to create a 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: Ophidia Official Website
- Installation and Configuration: Ophidia Admin Documentation
License
Apache License v2
Author Information
For questions, contact: ophidia-info@cmcc.it