Commit 9447466c by Edward Zarecor

Adding lifecycle tags to harstorage

parent 38f1e6da
......@@ -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
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 to comment