Updated consul service and service environment
This commit is contained in:
parent
0653a2288c
commit
891fc58676
3 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,8 @@ consul:
|
||||||
user: consul
|
user: consul
|
||||||
group: consul
|
group: consul
|
||||||
|
|
||||||
|
ui_beta: false
|
||||||
|
|
||||||
config:
|
config:
|
||||||
server: false
|
server: false
|
||||||
bind_addr: 0.0.0.0
|
bind_addr: 0.0.0.0
|
||||||
|
|
|
@ -4,7 +4,7 @@ Wants=network.target
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment="GOMAXPROCS=2" "PATH=/usr/local/bin:/usr/bin:/bin"
|
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/consul
|
||||||
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d
|
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
KillSignal=TERM
|
KillSignal=TERM
|
||||||
|
|
|
@ -14,6 +14,9 @@ consul-init-env:
|
||||||
- contents:
|
- contents:
|
||||||
- CONSUL_USER={{ consul.user }}
|
- CONSUL_USER={{ consul.user }}
|
||||||
- CONSUL_GROUP={{ consul.group }}
|
- CONSUL_GROUP={{ consul.group }}
|
||||||
|
- CONSUL_UI_BETA={{ consul.ui_beta }}
|
||||||
|
- GOMAXPROCS=2
|
||||||
|
- PATH=/usr/local/bin:/usr/bin:/bin
|
||||||
|
|
||||||
consul-init-file:
|
consul-init-file:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
|
Loading…
Reference in a new issue