summaryrefslogtreecommitdiffstats
path: root/mcp/config/states/openstack_noha
diff options
context:
space:
mode:
authorCristina Pauna <cristina.pauna@enea.com>2020-01-13 10:39:47 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-01-13 10:39:47 +0000
commit02bdeb694ed12a2b17232818cc8dbfb98559ef21 (patch)
tree5a292a9ec3d6f3a68b6451e0921ce2fdd0757a96 /mcp/config/states/openstack_noha
parentc7c70e890292ec85b05546d91f9dbedbb6df81fb (diff)
parent6a5f17618ac9cc1c74fc38ef598ee943d9a1658d (diff)
Merge "ha, noha: Fix Horizon stale cache after install" into stable/iruya
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