13d0dc504e
Following the pattern of the other openstack components, we need the refresh script that trigger a restart of the ceph grafana container when the certificate gets renewed. This commit adds also the postsave_cmd in the ceph_grafana puppet file to reflect the the change. Change-Id: I91df82eec1715bd7a9d0b1ac44f72dd76f9e54cd
10 lines
220 B
Bash
10 lines
220 B
Bash
#!/bin/bash
|
|
|
|
# Get grafana systemd unit
|
|
grafana_unit=$(systemctl list-unit-files | awk '/grafana/ {print $1}')
|
|
|
|
# Restart the grafana systemd unit
|
|
if [ -z "$grafana_unit" ]; then
|
|
systemctl restart "$grafana_unit"
|
|
fi
|