Commit 52ecfffd by Guba Sándor

manage production/local deployment upstart file

parent 46f4d877
......@@ -6,12 +6,21 @@ postactivate:
- user: {{ pillar['user'] }}
- mode: 700
/etc/init/portal.conf:
portal.conf:
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
- group: root
- template: jinja
- source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal.conf
{% endif %}
/etc/init/manager.conf:
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