Providing for upstart in consul-template service (#10)

* Providing for upstart in consul-template service

* typo
This commit is contained in:
Joel Comeaux 2016-09-02 03:26:58 -05:00 committed by Wolodja Wentland
parent 90c5c69c24
commit 03b9839f0a
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,9 @@
description "Consul Template"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [06]
exec /usr/local/bin/consul-template -config /etc/consul-template.d
respawn
respawn limit 10 10
kill timeout 10

View file

@ -6,6 +6,10 @@ consul-template-init-script:
- source: salt://consul-template/files/consul-template.service - source: salt://consul-template/files/consul-template.service
- name: /etc/systemd/system/consul-template.service - name: /etc/systemd/system/consul-template.service
- mode: 0644 - mode: 0644
{% elif salt['test.provider']('service') == 'upstart' %}
- source: salt://consul-template/files/consul-template-upstart.service
- name: /etc/init/consul-template.conf
- mode: 0644
{% endif %} {% endif %}
{% if consul_template.service != False %} {% if consul_template.service != False %}
- watch_in: - watch_in: