Updated consul service and service environment

This commit is contained in:
Eric Renfro 2018-05-16 12:13:27 -04:00
parent 0653a2288c
commit 891fc58676
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF
3 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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: