From 75ffa91c859be68d81f2c85280273278a6791d9f Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Mon, 30 Jul 2018 23:59:33 -0700 Subject: [PATCH] Fix traefik config reload Simply reloading traefik is not enough - we need to actually write the new traefik.toml file. --- tljh/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tljh/config.py b/tljh/config.py index f1a146d..fab5c4c 100644 --- a/tljh/config.py +++ b/tljh/config.py @@ -15,7 +15,7 @@ import sys import argparse from ruamel.yaml import YAML from copy import deepcopy -from tljh import systemd +from tljh import systemd, traefik yaml = YAML(typ='rt') @@ -156,6 +156,8 @@ def reload_component(component): # FIXME: Verify hub is back up? print('Hub reload with new configuration complete') elif component == 'proxy': + # FIXME: How to set path here? + traefik.ensure_traefik_config('/opt/tljh/hub/state') systemd.restart_service('configurable-http-proxy') systemd.restart_service('traefik') print('Proxy reload with new configuration complete')