Create and manage a virtual clusters with ansible
, kvm
and libvirt
on a
single machine.
This repository automates as much as possible the creation of a variety cluster for testing and learning purposes.
Use osinfo-query os
to see a list of all supported OSs.
The following will get you all the software you need to start creating
clusters. First install ansible
;
>> yum install ansible
Then clone this git repo;
>> git clone https://github.com/bmduffy/ansible_kvm_cluster.git
The playbooks in this repo will need to interact with your localhost
to
create virtual clusters. The following playbook will install libvirt
on your
machine and restart it;
>> cd ansible_kvm_cluster/install
>> ansible-playbook site.yml
Common and reusable ansible
is stored in roles
and plays
. The following
clusters are (will be) defined;
generic
- Basicvm
cluster sans any cluster softwareocp
- Openshift Container Platfrom Enterprise editionorigin
- Openshift Origin free versionk8s
- Kubernetes cluster
Tasks carried out on clusters is managed by ansible
tags;
>> ansible-playbook -i inventories/generic playbooks/provision.yml