Unverified Commit 8a8ec66f authored by efikalti's avatar efikalti Committed by Avraam Tsantekidis

create_cluster returns inventory directory object

parent ce40c0b5
......@@ -157,6 +157,15 @@ class Provisioner:
self.connect_vm(slave['id'], vpn['id'])
slaves.append(slave)
# Create cluster dictionary object
inventory = dict()
masters = list()
masters.append(master)
inventory["masters"] = masters
inventory["slaves"] = slaves
return inventory
def create_vpn(self, network_name):
"""
Creates a virtual private network
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment