This repo automates the usage of the ocp-libvirt-ipi Ansible role that is published in Ansible Galaxy.
You need to complete the pre-requisites and launch the script...easy.
-
You need to have your system ready to use ansible, so ansible installed, password-less access to the node and a user with sudo privileges
-
You need to create a
inventory
file. There is already an inventory.EXAMPLE that you can use as a template -
You need to create a
install-config.yaml
file with the OpenShift configuration. You can find an install-config.EXAMPLE that can used as a template -
You need to create a playbook to import the role and including the variables to customize your environment. A ocp_libvirt_ipi.yaml.EXAMPLE is included to be used as template. For more information about variables you can check the ansible role README
Once you completed the pre-requisites, just run ./create.sh
to deploy OpenShift or ./destroy.sh
to clean up the node.
That's all, make responsible use of these playbooks (remember that this is just for LABs) and enjoy the Machine API even when your LAB is running on a single KVM node.