summaryrefslogtreecommitdiffstats
path: root/playbooks/libvirt/openshift-cluster/vars.yml
diff options
context:
space:
mode:
authorPep TurrĂ³ Mauri <pep@redhat.com>2016-03-16 17:17:06 +0100
committerPep TurrĂ³ Mauri <pep@redhat.com>2016-03-16 17:21:17 +0100
commit74425eca1e738ca124ee2004ea5c7d6782ddbeb9 (patch)
tree4f01edf4e09f7fd34fc8ddd7fa27208db0a7066b /playbooks/libvirt/openshift-cluster/vars.yml
parent4551e7cddf4a9d1756a064fd31777b6bed7d3567 (diff)
downloadopenshift-74425eca1e738ca124ee2004ea5c7d6782ddbeb9.tar.gz
openshift-74425eca1e738ca124ee2004ea5c7d6782ddbeb9.tar.bz2
openshift-74425eca1e738ca124ee2004ea5c7d6782ddbeb9.tar.xz
openshift-74425eca1e738ca124ee2004ea5c7d6782ddbeb9.zip
libvirt cluster variables cleanup
- Remove redundant variables and make existing ones configurable. - Fixes default values for the new vars introduced in #1578 (d4fa9b2) - Document these variables
Diffstat (limited to 'playbooks/libvirt/openshift-cluster/vars.yml')
-rw-r--r--playbooks/libvirt/openshift-cluster/vars.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/playbooks/libvirt/openshift-cluster/vars.yml b/playbooks/libvirt/openshift-cluster/vars.yml
index f28245f88..aa0c69e08 100644
--- a/playbooks/libvirt/openshift-cluster/vars.yml
+++ b/playbooks/libvirt/openshift-cluster/vars.yml
@@ -1,8 +1,11 @@
---
-libvirt_storage_pool_path: "{{ lookup('env','HOME') }}/libvirt-storage-pool-openshift-ansible"
-libvirt_storage_pool: 'openshift-ansible'
-libvirt_network: openshift-ansible
-libvirt_uri: 'qemu:///system'
+default_pool_path: "{{ lookup('env','HOME') }}/libvirt-storage-pool-openshift-ansible"
+libvirt_storage_pool_path: "{{ lookup('oo_option', 'libvirt_storage_pool_path') | default(default_pool_path, True) }}"
+libvirt_storage_pool: "{{ lookup('oo_option', 'libvirt_storage_pool') | default('openshift-ansible', True) }}"
+libvirt_network: "{{ lookup('oo_option', 'libvirt_network') | default('openshift-ansible', True) }}"
+libvirt_instance_memory_mib: "{{ lookup('oo_option', 'libvirt_instance_memory_mib') | default(1024, True) }}"
+libvirt_instance_vcpu: "{{ lookup('oo_option', 'libvirt_instance_vcpu') | default(2, True) }}"
+libvirt_uri: "{{ lookup('oo_option', 'libvirt_uri') | default('qemu:///system', True) }}"
debug_level: 2
# Automatic download of the qcow2 image for RHEL cannot be done directly from the RedHat portal because it requires authentication.