summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2015-04-07 09:32:46 -0700
committerJhon Honce <jhonce@redhat.com>2015-04-07 09:32:46 -0700
commit675f6165a83b86c1a498c327161f928d218ee244 (patch)
tree0ad271a03feac6bde2a296e6011498cd6455fa99 /bin
parent59e69dd21c19bf745392b5e83bd652630ee870cc (diff)
parent8a4888ad30ce7c5898caac47614da2e13a759320 (diff)
downloadopenshift-675f6165a83b86c1a498c327161f928d218ee244.tar.gz
openshift-675f6165a83b86c1a498c327161f928d218ee244.tar.bz2
openshift-675f6165a83b86c1a498c327161f928d218ee244.tar.xz
openshift-675f6165a83b86c1a498c327161f928d218ee244.zip
Merge pull request #121 from detiber/nodeRegistrationChangesMaster
Node registration changes master
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cluster17
1 files changed, 12 insertions, 5 deletions
diff --git a/bin/cluster b/bin/cluster
index b99286b46..36ab1da1b 100755
--- a/bin/cluster
+++ b/bin/cluster
@@ -32,8 +32,8 @@ class Cluster(object):
playbook = "playbooks/{}/openshift-cluster/launch.yml".format(args.provider)
inventory = self.setup_provider(args.provider)
- env['masters'] = args.masters
- env['nodes'] = args.nodes
+ env['num_masters'] = args.masters
+ env['num_nodes'] = args.nodes
return self.action(args, inventory, env, playbook)
@@ -55,16 +55,23 @@ class Cluster(object):
:param args: command line arguments provided by user
:return: exit status from run command
"""
- raise NotImplementedError("ACTION [{}] not implemented".format(sys._getframe().f_code.co_name))
+ env = {'cluster_id': args.cluster_id}
+ playbook = "playbooks/{}/openshift-cluster/list.yml".format(args.provider)
+ inventory = self.setup_provider(args.provider)
+
+ return self.action(args, inventory, env, playbook)
def update(self, args):
"""
- Update OpenShift across clustered VMs
+ Update to latest OpenShift across clustered VMs
:param args: command line arguments provided by user
:return: exit status from run command
"""
- raise NotImplementedError("ACTION [{}] not implemented".format(sys._getframe().f_code.co_name))
+ env = {'cluster_id': args.cluster_id}
+ playbook = "playbooks/{}/openshift-cluster/update.yml".format(args.provider)
+ inventory = self.setup_provider(args.provider)
+ return self.action(args, inventory, env, playbook)
def setup_provider(self, provider):
"""