Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
9447466c
Commit
9447466c
authored
Mar 25, 2016
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding lifecycle tags to harstorage
parent
38f1e6da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
7 deletions
+35
-7
playbooks/roles/harstorage/tasks/main.yml
+35
-7
No files found.
playbooks/roles/harstorage/tasks/main.yml
View file @
9447466c
...
...
@@ -25,25 +25,37 @@
apt
:
name
:
"
{{
item
}}"
state
:
present
tags
:
-
install
-
install:base
with_items
:
harstorage_debian_pkgs
-
name
:
download harstorage egg file
get_url
:
url
:
http://harstorage.googlecode.com/files/harstorage-1.0-py2.7.egg
dest
:
"
{{
harstorage_code_dir
}}/harstorage-1.0-py2.7.egg"
tags
:
-
install
-
install:base
-
name
:
build virtualenv
command
:
"
virtualenv
{{
harstorage_venv_dir
}}"
args
:
creates
:
"
{{
harstorage_venv_dir
}}/bin/pip"
sudo_user
:
"
{{
harstorage_user
}}"
tags
:
-
install
-
install:base
-
name
:
install python packages
pip
:
name
:
"
{{
item.name
}}"
virtualenv
:
"
{{
harstorage_venv_dir
}}"
state
:
present
version
:
"
{{
item.version
}}"
tags
:
-
install
-
install:app-requirements
with_items
:
harstorage_python_pkgs
-
name
:
create harstorage config directory
...
...
@@ -51,6 +63,9 @@
path
:
"
{{
harstorage_venv_dir
}}/{{
harstorage_etc
}}"
state
:
directory
mode
:
0755
tags
:
-
install
-
install:configuration
-
name
:
setup the harstorage production.ini file
template
:
...
...
@@ -59,14 +74,26 @@
owner
:
'
{{
harstorage_user
}}'
group
:
'
{{
harstorage_user
}}'
mode
:
0644
tags
:
-
install
-
install:configuration
-
name
:
install harstorage
easy_install
:
name
:
"
{{
harstorage_code_dir
}}/harstorage-1.0-py2.7.egg"
virtualenv
:
"
{{
harstorage_venv_dir
}}"
tags
:
-
install
-
install:code
-
name
:
apply config
command
:
"
/usr/bin/paster
setup-app
{{
harstorage_venv_dir
}}/{{
harstorage_etc
}}/production.ini"
-
name
:
run harstorage
command
:
"
/usr/bin/paster
serve
{{
harstorage_venv_dir
}}/{{
harstorage_etc
}}/production.ini"
tags
:
-
install
-
install:configuration
# - name: run harstorage
# command: "/usr/bin/paster serve {{ harstorage_venv_dir }}/{{ harstorage_etc }}/production.ini"
# tags:
# -
# - install:base
\ No newline at end of file
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