Commit 9447466c by Edward Zarecor

Adding lifecycle tags to harstorage

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