From 340ac04aa8e32d2cc043607f5235058c8a70ca52 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Thu, 17 May 2018 19:22:37 -0400 Subject: [PATCH] Updated service unit --- fabio/defaults.yaml | 11 ----------- fabio/files/fabio.service | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/fabio/defaults.yaml b/fabio/defaults.yaml index e09fee3..bb47552 100644 --- a/fabio/defaults.yaml +++ b/fabio/defaults.yaml @@ -10,14 +10,3 @@ fabio: config: consul_address: localhost:8500 - server: false - bind_addr: 0.0.0.0 - data_dir: /var/fabio - ui: true - enable_debug: false - log_level: info - retry_join: [] - retry_interval: 30s - datacenter: "main" - register: [] - scripts: [] diff --git a/fabio/files/fabio.service b/fabio/files/fabio.service index f8f32d7..3f3d43b 100644 --- a/fabio/files/fabio.service +++ b/fabio/files/fabio.service @@ -5,12 +5,12 @@ After=network.target [Service] EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/fabio -ExecStart=/usr/local/bin/fabio -registry.consul.addr consul.service.dc1.consul:8500 +ExecStart=/usr/local/bin/fabio -registry.consul.addr {{ consul_address }} ExecReload=/bin/kill -HUP $MAINPID User={{ user }} Group={{ group }} Restart=on-failure -CapabilityBoundingSet=CAP_SYSLOG CAP_NET_BIND_SERVICE +CapabilityBoundingSet=CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_BIND_SERVICE SecureBits=keep-caps NoNewPrivileges=yes