aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/config/states/openstack_noha
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2020-01-06 16:39:35 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2020-01-09 08:56:45 +0000
commit6a5f17618ac9cc1c74fc38ef598ee943d9a1658d (patch)
treead2a51e7d6d8b8b662dd90ad35dfcefc8f2c3d5f /mcp/config/states/openstack_noha
parent804cb68bc61126d2e27e8ca9d9abfe2cd0af0cfb (diff)
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 <Alexandru.Avadanii@enea.com> (cherry picked from commit 5527711008fdd6cb2558f18d901c40efbc5d522b)
Diffstat (limited to 'mcp/config/states/openstack_noha')
-rwxr-xr-xmcp/config/states/openstack_noha3
1 files changed, 3 insertions, 0 deletions
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