No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
roles
upcloud-ansible @ b73f0e2
utils
vars
.gitignore
.gitmodules
.python-version
Makefile
README.md
halti-masters.yml
halti-nodes.yml
halti-servers.yml
hosts
site.yml

README.md

halti-management-playbooks

Provision and install a small Halti cluster on UpCloud.

It also installs monitoring and metrics collection setup. After installation halti-master (and so the API) can be found at <private_ip_of_master>:4040 The Grafana by default is in <private_ip_of_master>:3000 and the InfluxDB <private_ip_of_master>:8083/8086

Dependencies

  • python2 (because ansible)
  • install dependencies
pip install ansible

# if using upcloud for inventory / provisioning servers
pip install upcloud_api
  • check that upcloud-ansible submodule is loaded

Running

  • provision servers and install Halti cluster
export UPCLOUD_API_USER=user
export UPCLOUD_API_PASSWD=pass
ansible-playbook -i ./upcloud-ansible/inventory/upcloud.py -M ./upcloud-ansible/modules/ site.yml
  • install Halti against existing servers
ansible-playbook -i hosts site.yml --tags install

Support for capabilities

You can add halti supported capability-setting by defining capabilities variable for each host.

ie. capabilities=public,ssd

Notes

  • ansible_eth1 is assumed to be the private IP of the machine
    • edit halti-nodes.yml if this is not the case
  • Halti master will run at port 4040 by default
  • utils/test_tagging.py is used by halti-servers to ensure the user has tagging permissions
  • utils/destroy_cluster.py can be used to clean up (main usecase is integration testing)