summaryrefslogtreecommitdiffstats
path: root/utils/src/ooinstall
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-11-03 08:37:31 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2015-11-03 08:37:31 -0400
commitf91c0cac0b6e671d5ad70543054a17178c5f0a46 (patch)
treef9839f38700e1628097ae9f1f8dd910e3dcd46bb /utils/src/ooinstall
parent39250a47afca63ef0b5a73158a2c9b15443a4235 (diff)
downloadopenshift-f91c0cac0b6e671d5ad70543054a17178c5f0a46.tar.gz
openshift-f91c0cac0b6e671d5ad70543054a17178c5f0a46.tar.bz2
openshift-f91c0cac0b6e671d5ad70543054a17178c5f0a46.tar.xz
openshift-f91c0cac0b6e671d5ad70543054a17178c5f0a46.zip
Add a simple version for the installer config file.
Diffstat (limited to 'utils/src/ooinstall')
-rw-r--r--utils/src/ooinstall/oo_config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py
index aa63180b5..4281947f1 100644
--- a/utils/src/ooinstall/oo_config.py
+++ b/utils/src/ooinstall/oo_config.py
@@ -12,6 +12,7 @@ PERSIST_SETTINGS = [
'ansible_log_path',
'variant',
'variant_version',
+ 'version',
]
REQUIRED_FACTS = ['ip', 'public_ip', 'hostname', 'public_hostname']
@@ -146,6 +147,8 @@ class OOConfig(object):
os.makedirs(self.settings['ansible_inventory_directory'])
if 'ansible_plugins_directory' not in self.settings:
self.settings['ansible_plugins_directory'] = resource_filename(__name__, 'ansible_plugins')
+ if 'version' not in self.settings:
+ self.settings['version'] = 'v1'
if 'ansible_callback_facts_yaml' not in self.settings:
self.settings['ansible_callback_facts_yaml'] = '%s/callback_facts.yaml' % \