Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
23999700
authored
Jul 22, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fabfile: add storage
parent
75ff941e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
circle/fabfile.py
+11
-0
No files found.
circle/fabfile.py
View file @
23999700
...
...
@@ -15,8 +15,10 @@ env.roledefs['storage'] = [DataStore.objects.get().hostname]
def
update_all
():
"Update and restart portal+manager, nodes and storage"
execute
(
stop_portal
)
execute
(
update_node
)
execute
(
update_storage
)
execute
(
update_portal
)
...
...
@@ -94,6 +96,7 @@ def update_portal(test=False):
@roles
(
'portal'
)
def
stop_portal
(
test
=
False
):
"Stop portal and manager"
_stop_services
(
"portal"
,
"mancelery"
)
...
...
@@ -107,6 +110,14 @@ def update_node():
@parallel
@roles
(
'storage'
)
def
update_storage
():
"Update and restart storagedriver"
with
_stopped
(
"storage"
):
pull
(
"~/storagedriver"
)
@parallel
@roles
(
'node'
)
def
checkout
(
vmdriver
=
"master"
,
agent
=
"master"
):
"""Checkout specific branch on nodes"""
...
...
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