From 6a5f17618ac9cc1c74fc38ef598ee943d9a1658d Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Mon, 6 Jan 2020 16:39:35 +0100 Subject: ha, noha: Fix Horizon stale cache after install Partially revert more from commit 63b712d, it turns out static files were not always up to date after the package install, so force a refresh. While at it, fold some common libvirt pillar configuration. Fixes: af1a4adf Change-Id: I1b4c20cfa9ae08d1cd7b0b774b544b76fc73a715 Signed-off-by: Alexandru Avadanii (cherry picked from commit 5527711008fdd6cb2558f18d901c40efbc5d522b) --- mcp/config/states/openstack_noha | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mcp/config/states/openstack_noha') diff --git a/mcp/config/states/openstack_noha b/mcp/config/states/openstack_noha index 5022e6d1a..6b503504b 100755 --- a/mcp/config/states/openstack_noha +++ b/mcp/config/states/openstack_noha @@ -66,4 +66,7 @@ if ! salt -C 'I@horizon:server and *01*' --out=yaml pkg.version openstack-dashbo salt -I 'horizon:server' file.symlink \ /var/lib/openstack-dashboard/static \ /usr/share/openstack-dashboard/static + salt -I 'horizon:server' cmd.run "python3 /usr/share/openstack-dashboard/manage.py collectstatic --noinput" + salt -I 'horizon:server' cmd.run "python3 /usr/share/openstack-dashboard/manage.py compress --force" + salt -I 'horizon:server' service.reload apache2 fi -- cgit 1.2.3-korg