Browse Source

Merge "Fix container and user name when restarting memcached"

changes/40/772340/1 14.0.0
Zuul 5 months ago
committed by Gerrit Code Review
parent
commit
58135e095c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      files/certmonger-memcached-refresh.sh

+ 3
- 3
files/certmonger-memcached-refresh.sh View File

@ -1,7 +1,7 @@
#!/bin/bash
container_cli=$(hiera -c /etc/puppet/hiera.yaml container_cli podman)
container_name=$($container_cli ps --format="{{.Names}}" | grep metrics_qdr)
container_name=$($container_cli ps --format="{{.Names}}" | grep memcached)
service_certificate="$(hiera -c /etc/puppet/hiera.yaml tripleo::profile::base::memcached::certificate_specs.service_certificate)"
service_key="$(hiera -c /etc/puppet/hiera.yaml tripleo::profile::base::memcached::certificate_specs.service_key)"
@ -11,8 +11,8 @@ $container_cli exec "$container_name" cp "/var/lib/kolla/config_files/src-tls$se
$container_cli exec "$container_name" cp "/var/lib/kolla/config_files/src-tls$service_key" "$service_key"
# Set appropriate permissions
$container_cli exec "$container_name" chown qdrouterd:qdrouterd "$service_certificate"
$container_cli exec "$container_name" chown qdrouterd:qdrouterd "$service_key"
$container_cli exec "$container_name" chown memcached:memcached "$service_certificate"
$container_cli exec "$container_name" chown memcached:memcached "$service_key"
# Trigger a container restart to read the new certificates
$container_cli restart $container_name

Loading…
Cancel
Save