Commit 52ecfffd by Guba Sándor

manage production/local deployment upstart file

parent 46f4d877
...@@ -6,12 +6,21 @@ postactivate: ...@@ -6,12 +6,21 @@ postactivate:
- user: {{ pillar['user'] }} - user: {{ pillar['user'] }}
- mode: 700 - mode: 700
/etc/init/portal.conf: portal.conf:
file.managed: file.managed:
{% if pillar['deployment_type'] == 'production' %}
- name: /etc/init/portal-uwsgi.conf
- user: root
- group: root
- template: jinja
- source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal-uwsgi.conf
{% else %}
- name: /etc/init/portal.conf
- user: root - user: root
- group: root - group: root
- template: jinja - template: jinja
- source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal.conf - source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal.conf
{% endif %}
/etc/init/manager.conf: /etc/init/manager.conf:
file.managed: file.managed:
......
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 sign in to comment