Commit 23999700 by Őry Máté

fabfile: add storage

parent 75ff941e
...@@ -15,8 +15,10 @@ env.roledefs['storage'] = [DataStore.objects.get().hostname] ...@@ -15,8 +15,10 @@ env.roledefs['storage'] = [DataStore.objects.get().hostname]
def update_all(): def update_all():
"Update and restart portal+manager, nodes and storage"
execute(stop_portal) execute(stop_portal)
execute(update_node) execute(update_node)
execute(update_storage)
execute(update_portal) execute(update_portal)
...@@ -94,6 +96,7 @@ def update_portal(test=False): ...@@ -94,6 +96,7 @@ def update_portal(test=False):
@roles('portal') @roles('portal')
def stop_portal(test=False): def stop_portal(test=False):
"Stop portal and manager"
_stop_services("portal", "mancelery") _stop_services("portal", "mancelery")
...@@ -107,6 +110,14 @@ def update_node(): ...@@ -107,6 +110,14 @@ def update_node():
@parallel @parallel
@roles('storage')
def update_storage():
"Update and restart storagedriver"
with _stopped("storage"):
pull("~/storagedriver")
@parallel
@roles('node') @roles('node')
def checkout(vmdriver="master", agent="master"): def checkout(vmdriver="master", agent="master"):
"""Checkout specific branch on nodes""" """Checkout specific branch on nodes"""
......
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 sign in to comment