Moved consul registry address to config
This commit is contained in:
parent
560ed8d972
commit
9f2a542f43
3 changed files with 3 additions and 4 deletions
|
@ -9,8 +9,8 @@ fabio:
|
|||
group: fabio
|
||||
|
||||
config_file: /etc/fabio/fabio.cfg
|
||||
consul_address: localhost:8500
|
||||
data_dir: /var/fabio
|
||||
|
||||
config:
|
||||
proxy.addr: :80,:9999
|
||||
proxy.addr: :9999
|
||||
registry.consul.addr: localhost:8500
|
||||
|
|
|
@ -5,7 +5,7 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/fabio
|
||||
ExecStart=/usr/local/bin/fabio -cfg {{ config_file }} -registry.consul.addr {{ consul_address }}
|
||||
ExecStart=/usr/local/bin/fabio -cfg {{ config_file }}
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
User={{ user }}
|
||||
Group={{ group }}
|
||||
|
|
|
@ -27,7 +27,6 @@ fabio-init-file:
|
|||
user: {{ fabio.user }}
|
||||
group: {{ fabio.group }}
|
||||
config_file: {{ fabio.config_file }}
|
||||
consul_address: {{ fabio.consul_address }}
|
||||
- mode: 0644
|
||||
{%- elif salt['test.provider']('service') == 'upstart' %}
|
||||
- source: salt://{{ slspath }}/files/fabio.upstart
|
||||
|
|
Loading…
Reference in a new issue