Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
okeanos-LoD
Commits
8a8ec66f
Unverified
Commit
8a8ec66f
authored
Jul 10, 2015
by
efikalti
Committed by
Avraam Tsantekidis
Jul 17, 2015
Browse files
create_cluster returns inventory directory object
parent
ce40c0b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/fokia/provisioner.py
View file @
8a8ec66f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment