From b9c93ebecb86dd4e5d8fd2453b3591bffa1a2db8 Mon Sep 17 00:00:00 2001 From: Chandler Wilkerson Date: Tue, 1 Aug 2017 12:17:19 -0500 Subject: [PATCH] Added dynamic inventory setup instructions. (#609) --- reference-architecture/rhv-ansible/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reference-architecture/rhv-ansible/README.md b/reference-architecture/rhv-ansible/README.md index 64bf481b2..549c0bea5 100644 --- a/reference-architecture/rhv-ansible/README.md +++ b/reference-architecture/rhv-ansible/README.md @@ -13,6 +13,9 @@ in order to create a highly available OpenShift Container Platform environment. A copy of the [oVirt Ansible](https://github.com/ovirt/ovirt-ansible) repository should be cloned in a directory alongside this repository. Roles from within the ovirt-ansible repository will be called by playbooks in this one. +### Dynamic Inventory +A copy of `ovirt4.py` from the Ansible project is provided under the inventory directory. This script will, given credentials to a RHV 4 engine, populate the Ansible inventory with facts about all virtual machines in the cluster. In order to use this dynamic inventory, see the `ovirt.ini.example` file, either providing the relevant Python secrets via environment variables, or by copying it to `ovirt.ini` and filling in the values. + ### Red Hat Virtualization Certificate A copy of the `/etc/pki/ovirt-engine/ca.pem` from the RHV engine will need to be added to the `reference-architecture/rhv-ansible` directory.