summaryrefslogtreecommitdiffstats
path: root/bin/cluster
diff options
context:
space:
mode:
authorLénaïc Huard <lhuard@amadeus.com>2015-04-08 16:33:55 +0200
committerLénaïc Huard <lhuard@amadeus.com>2015-04-10 16:02:51 +0200
commit9fbec064d28a72963b1566258b4bcabcd63b2c23 (patch)
treebe154b3f1a19f7fa9a65bb936d244842c1a07bd5 /bin/cluster
parentfbea3dd0b32457d208c76c1fc5619ac1e4e6c604 (diff)
downloadopenshift-9fbec064d28a72963b1566258b4bcabcd63b2c23.tar.gz
openshift-9fbec064d28a72963b1566258b4bcabcd63b2c23.tar.bz2
openshift-9fbec064d28a72963b1566258b4bcabcd63b2c23.tar.xz
openshift-9fbec064d28a72963b1566258b4bcabcd63b2c23.zip
Add libvirt as a provider
Diffstat (limited to 'bin/cluster')
-rwxr-xr-xbin/cluster6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/cluster b/bin/cluster
index 36ab1da1b..ca227721e 100755
--- a/bin/cluster
+++ b/bin/cluster
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# vim: expandtab:tabstop=4:shiftwidth=4
import argparse
@@ -94,6 +94,8 @@ class Cluster(object):
os.environ[key] = config.get('ec2', key)
inventory = '-i inventory/aws/ec2.py'
+ elif 'libvirt' == provider:
+ inventory = '-i inventory/libvirt/hosts'
else:
# this code should never be reached
raise ValueError("invalid PROVIDER {}".format(provider))
@@ -139,7 +141,7 @@ if __name__ == '__main__':
cluster = Cluster()
- providers = ['gce', 'aws']
+ providers = ['gce', 'aws', 'libvirt']
parser = argparse.ArgumentParser(
description='Python wrapper to ensure proper environment for OpenShift ansible playbooks',
)