Ansible on baremetal
Documentation
Go to Horizon to
launch at CHI@UC
Go to Horizon to
launch at CHI@TACC
Description
This template deploys an Ansible cluster on baremetal sites. It deploys a head node with Ansible installed, and x worker nodes which are configurable through Ansible.
Users can use this Ansible cluster to manage their application deployments and configuration management.
It has been tested on CentOS7 and may need some adjustments for other distributions.
Requirements:
- Tested on CC-CentOS7
- Reservation with min 2 compute nodes like haswell, skylake, cascadelake_r
Launch inputs:
- Image name (CentOS7)
- Key name: A keypair to access the head node. A different keypair 'ansible-worker-key' is created for the workers. Workers can be accessed by ssh through the head node.
- Num workers: How many workers to launch in addition to the head node, minimum 1
- Reservation id: The reservation for the lease created
- Network: Network name to launch on
Outputs:
- 1 head node with Ansible installed
Installation directory: /etc/ansible
Inventory: /home/cc/inventory
- 1 or more worker nodes reachable over ssh from the head node
To test cluster:
$ ansible -i /home/cc/inventory all -m shell -a "hostname"
Ansible commands can be executed with the 'cc' user, using 'become' privilege escalation when needed.
Ansible user documentation:
https://docs.ansible.com/ansible/latest/user_guide/index.html
Keywords
ansibleTemplate
Author
Name: | François Halbach |
Contact: | francois@tacc.utexas.edu |
Support
Name: | François Halbach |
Contact: | francois@tacc.utexas.edu |
Version: | 1 |
Created By: | fhalbach on July 28, 2022, 4:40 p.m. |
Updated By: | fhalbach on Oct. 27, 2022, 3:41 p.m. |