From 242738e47af8d85fffac317fb8b022738235b88b Mon Sep 17 00:00:00 2001 From: Murad Awawdeh Date: Sun, 17 Jul 2016 11:15:38 +0300 Subject: [PATCH] Devstack plugin installtion Added file to allow installation of the plugin in devstack Change-Id: If4bf5bdfd60ed30f0cf1a8ebe9e94e78f7054729 --- devstack/README.rst | 11 +++++++++++ devstack/plugin.sh | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 devstack/README.rst create mode 100644 devstack/plugin.sh diff --git a/devstack/README.rst b/devstack/README.rst new file mode 100644 index 0000000..80eb842 --- /dev/null +++ b/devstack/README.rst @@ -0,0 +1,11 @@ +================== + Horizon Mellanox enable +================== + +1) Download DevStack + +2) Add this as an external repository:: + + enable_plugin horizon_mellanox git://github.com/openstack/horizon-mellanox + +3) run 'stack.sh' diff --git a/devstack/plugin.sh b/devstack/plugin.sh new file mode 100644 index 0000000..0562928 --- /dev/null +++ b/devstack/plugin.sh @@ -0,0 +1,10 @@ +# plugin.sh + +if [[ "$1" == "stack" && "$2" == "post-config" ]]; then + setup_develop $DEST/horizon_mellanox + cp ${DEST}/horizon_mellanox/enabled/_7000_mlx.py /opt/stack/horizon/openstack_dashboard/local/enabled/ + cd /opt/stack/horizon + python manage.py collectstatic --clear --noinput + python manage.py compress --force + service apache2 restart > /dev/null 2>&1 || true +fi