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
edx
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
playbooks/roles/harstorage/tasks/main.yml
+30
-2
No files found.
playbooks/roles/harstorage/tasks/main.yml
View file @
9447466c
...
@@ -25,18 +25,27 @@
...
@@ -25,18 +25,27 @@
apt
:
apt
:
name
:
"
{{
item
}}"
name
:
"
{{
item
}}"
state
:
present
state
:
present
tags
:
-
install
-
install:base
with_items
:
harstorage_debian_pkgs
with_items
:
harstorage_debian_pkgs
-
name
:
download harstorage egg file
-
name
:
download harstorage egg file
get_url
:
get_url
:
url
:
http://harstorage.googlecode.com/files/harstorage-1.0-py2.7.egg
url
:
http://harstorage.googlecode.com/files/harstorage-1.0-py2.7.egg
dest
:
"
{{
harstorage_code_dir
}}/harstorage-1.0-py2.7.egg"
dest
:
"
{{
harstorage_code_dir
}}/harstorage-1.0-py2.7.egg"
tags
:
-
install
-
install:base
-
name
:
build virtualenv
-
name
:
build virtualenv
command
:
"
virtualenv
{{
harstorage_venv_dir
}}"
command
:
"
virtualenv
{{
harstorage_venv_dir
}}"
args
:
args
:
creates
:
"
{{
harstorage_venv_dir
}}/bin/pip"
creates
:
"
{{
harstorage_venv_dir
}}/bin/pip"
sudo_user
:
"
{{
harstorage_user
}}"
sudo_user
:
"
{{
harstorage_user
}}"
tags
:
-
install
-
install:base
-
name
:
install python packages
-
name
:
install python packages
pip
:
pip
:
...
@@ -44,6 +53,9 @@
...
@@ -44,6 +53,9 @@
virtualenv
:
"
{{
harstorage_venv_dir
}}"
virtualenv
:
"
{{
harstorage_venv_dir
}}"
state
:
present
state
:
present
version
:
"
{{
item.version
}}"
version
:
"
{{
item.version
}}"
tags
:
-
install
-
install:app-requirements
with_items
:
harstorage_python_pkgs
with_items
:
harstorage_python_pkgs
-
name
:
create harstorage config directory
-
name
:
create harstorage config directory
...
@@ -51,6 +63,9 @@
...
@@ -51,6 +63,9 @@
path
:
"
{{
harstorage_venv_dir
}}/{{
harstorage_etc
}}"
path
:
"
{{
harstorage_venv_dir
}}/{{
harstorage_etc
}}"
state
:
directory
state
:
directory
mode
:
0755
mode
:
0755
tags
:
-
install
-
install:configuration
-
name
:
setup the harstorage production.ini file
-
name
:
setup the harstorage production.ini file
template
:
template
:
...
@@ -59,14 +74,26 @@
...
@@ -59,14 +74,26 @@
owner
:
'
{{
harstorage_user
}}'
owner
:
'
{{
harstorage_user
}}'
group
:
'
{{
harstorage_user
}}'
group
:
'
{{
harstorage_user
}}'
mode
:
0644
mode
:
0644
tags
:
-
install
-
install:configuration
-
name
:
install harstorage
-
name
:
install harstorage
easy_install
:
easy_install
:
name
:
"
{{
harstorage_code_dir
}}/harstorage-1.0-py2.7.egg"
name
:
"
{{
harstorage_code_dir
}}/harstorage-1.0-py2.7.egg"
virtualenv
:
"
{{
harstorage_venv_dir
}}"
virtualenv
:
"
{{
harstorage_venv_dir
}}"
tags
:
-
install
-
install:code
-
name
:
apply config
-
name
:
apply config
command
:
"
/usr/bin/paster
setup-app
{{
harstorage_venv_dir
}}/{{
harstorage_etc
}}/production.ini"
command
:
"
/usr/bin/paster
setup-app
{{
harstorage_venv_dir
}}/{{
harstorage_etc
}}/production.ini"
tags
:
-
install
-
install:configuration
-
name
:
run harstorage
# - name: run harstorage
command
:
"
/usr/bin/paster
serve
{{
harstorage_venv_dir
}}/{{
harstorage_etc
}}/production.ini"
# 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