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:
parent
7f8ffe7d7b
commit
33560e2626
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue