2019-01-25 17:26:31 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
2019-11-28 09:12:51 +01:00
|
|
|
container_cli=$(hiera -c /etc/puppet/hiera.yaml container_cli podman)
|
2019-01-25 17:26:31 +01:00
|
|
|
|
|
|
|
container_name=$($container_cli ps --format="{{.Names}}" | grep redis_tls_proxy)
|
|
|
|
|
|
|
|
service_pem="$(hiera -c /etc/puppet/hiera.yaml tripleo::redis::service_certificate)"
|
|
|
|
|
|
|
|
# Copy the new cert from the mount-point to the real path
|
|
|
|
$container_cli exec "$container_name" cp "/var/lib/kolla/config_files/src-tls$service_pem" "$service_pem"
|
|
|
|
|
|
|
|
# Trigger a reload for stunnel to read the new certificates
|
|
|
|
pkill -o -HUP stunnel
|