Providing for upstart in consul-template service (#10)
* Providing for upstart in consul-template service * typo
This commit is contained in:
parent
90c5c69c24
commit
03b9839f0a
2 changed files with 13 additions and 0 deletions
9
consul-template/files/consul-template-upstart.service
Normal file
9
consul-template/files/consul-template-upstart.service
Normal 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
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue