From 418373815ca71a856ac32ddc6505045aff77baf0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A9na=C3=AFc=20Huard?= <lhuard@amadeus.com>
Date: Wed, 10 Feb 2016 14:11:07 +0100
Subject: Make the GCE image_name and the machine_type configurable from the
 CLI

---
 playbooks/gce/openshift-cluster/vars.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/playbooks/gce/openshift-cluster/vars.yml b/playbooks/gce/openshift-cluster/vars.yml
index 1ae73fd68..d173213fc 100644
--- a/playbooks/gce/openshift-cluster/vars.yml
+++ b/playbooks/gce/openshift-cluster/vars.yml
@@ -2,15 +2,15 @@
 debug_level: 2
 
 deployment_rhel7_ent_base:
-  image: rhel-7
-  machine_type: n1-standard-1
+  image: "{{ lookup('oo_option', 'image_name') | default('rhel-7', True) }}"
+  machine_type: "{{ lookup('oo_option', 'machine_type') | default('n1-standard-1', True) }}"
   ssh_user: "{{ lookup('env', 'gce_ssh_user') |  default(ansible_ssh_user, true) }}"
   sudo: yes
 
 deployment_vars:
   origin:
-    image: centos-7
-    machine_type: n1-standard-1
+    image: "{{ lookup('oo_option', 'image_name') | default('centos-7', True) }}"
+    machine_type: "{{ lookup('oo_option', 'machine_type') | default('n1-standard-1', True) }}"
     ssh_user: "{{ lookup('env', 'gce_ssh_user') |  default(ansible_ssh_user, true) }}"
     sudo: yes
   online:
-- 
cgit v1.2.3