From 8a14dee837a85be14c1976e9ef7601eb60d5bcda Mon Sep 17 00:00:00 2001 From: Jakob Hasselmann Date: Wed, 20 Sep 2017 12:50:50 +0200 Subject: [PATCH] Download and Install neutron-fwaas-dashboard Download and install the neutron-fwaas-dashboard if being enabled within the os_horizon role by the horizon_enable_neutron_fwaas var. Change-Id: I1c879188037b476b1e515f0fb750cfd0aedca06a Partial-Bug: 1718187 --- defaults/main.yml | 1 + tasks/horizon_post_install.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 665fa346..f30b99d7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -288,6 +288,7 @@ horizon_pip_packages: - MySQL-python - PyMySQL - neutron-lbaas-dashboard + - neutron-fwaas-dashboard - oslo.config - ply - python-memcached diff --git a/tasks/horizon_post_install.yml b/tasks/horizon_post_install.yml index 17dd23eb..9a412455 100644 --- a/tasks/horizon_post_install.yml +++ b/tasks/horizon_post_install.yml @@ -112,6 +112,13 @@ state: "{{ (horizon_enable_neutron_lbaas | bool) | ternary('link', 'absent') }}" notify: Restart apache2 +- name: Enable the neutron-fwaas-dashboard Horizon panel + file: + src: "{{ horizon_lib_dir }}/neutron_fwaas_dashboard/enabled/_7010_project_firewalls_panel.py" + path: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_7010_project_firewalls_panel.py" + state: "{{ (horizon_enable_neutron_fwaas | bool) | ternary('link', 'absent') }}" + notify: Restart apache2 + - name: Create horizon links file: src: "{{ item.src }}"