Execute traefik systemd unit over ssh

When calling systemctl from the heat-agent we need
to do it over ssh.

story: 2007210
task: 38377

Change-Id: I1f917d276501a174448dbdfe447d69294e7090c4
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
This commit is contained in:
Spyros Trigazis 2020-01-23 17:11:14 +01:00
parent 7f8ffe7d7b
commit 33560e2626
1 changed files with 4 additions and 3 deletions

View File

@ -199,6 +199,7 @@ chmod 0644 ${INGRESS_TRAEFIK_SERVICE}
# Launch the ingress traefik service
set -x
systemctl daemon-reload
systemctl enable ingress-traefik.service
systemctl start --no-block ingress-traefik.service
ssh_cmd="ssh -F /srv/magnum/.ssh/config root@localhost"
$ssh_cmd systemctl daemon-reload
$ssh_cmd systemctl enable ingress-traefik.service
$ssh_cmd systemctl start --no-block ingress-traefik.service