From 4b4243491004804998f1262ba761439e58876791 Mon Sep 17 00:00:00 2001
From: caoyuan <cao.yuan@99cloud.net>
Date: Fri, 20 Apr 2018 10:10:33 +0800
Subject: [PATCH] Add congress-dashboard into Horizon

Change-Id: I9e94daaa2054e7aa4b814516f8cf2b6a4981465c
Depends-on: I5cd0cc2c884530525b3019c22c04a782a181a3bf
---
 ansible/group_vars/all.yml                                      | 1 +
 ansible/roles/horizon/defaults/main.yml                         | 1 +
 etc/kolla/globals.yml                                           | 1 +
 releasenotes/notes/add-congress-dashboard-q65x5d27c034f8xc.yaml | 2 ++
 4 files changed, 5 insertions(+)
 create mode 100644 releasenotes/notes/add-congress-dashboard-q65x5d27c034f8xc.yaml

diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml
index 5ad218ab8d..e1fc87744f 100644
--- a/ansible/group_vars/all.yml
+++ b/ansible/group_vars/all.yml
@@ -416,6 +416,7 @@ enable_grafana: "no"
 enable_heat: "yes"
 enable_horizon: "yes"
 enable_horizon_cloudkitty: "{{ enable_cloudkitty | bool }}"
+enable_horizon_congress: "{{ enable_congress | bool }}"
 enable_horizon_designate: "{{ enable_designate | bool }}"
 enable_horizon_fwaas: "{{ enable_neutron_fwaas | bool }}"
 enable_horizon_freezer: "{{ enable_freezer | bool }}"
diff --git a/ansible/roles/horizon/defaults/main.yml b/ansible/roles/horizon/defaults/main.yml
index 1dd11ea5dc..1f1fb89cc2 100644
--- a/ansible/roles/horizon/defaults/main.yml
+++ b/ansible/roles/horizon/defaults/main.yml
@@ -9,6 +9,7 @@ horizon_services:
     image: "{{ horizon_image_full }}"
     environment:
       ENABLE_CLOUDKITTY: "{{ 'yes' if enable_horizon_cloudkitty | bool else 'no' }}"
+      ENABLE_CONGRESS: "{{ 'yes' if enable_horizon_congress | bool else 'no' }}"
       ENABLE_DESIGNATE: "{{ 'yes' if enable_horizon_designate | bool else 'no' }}"
       ENABLE_FWAAS: "{{ 'yes' if enable_horizon_fwaas | bool else 'no' }}"
       ENABLE_FREEZER: "{{ 'yes' if enable_horizon_freezer | bool else 'no' }}"
diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml
index d0a78c7a5b..4a840aa90e 100644
--- a/etc/kolla/globals.yml
+++ b/etc/kolla/globals.yml
@@ -168,6 +168,7 @@ kolla_internal_vip_address: "10.10.10.254"
 #enable_heat: "yes"
 #enable_horizon: "yes"
 #enable_horizon_cloudkitty: "{{ enable_cloudkitty | bool }}"
+#enable_horizon_congress: "{{ enable_congress | bool }}"
 #enable_horizon_designate: "{{ enable_designate | bool }}"
 #enable_horizon_freezer: "{{ enable_freezer | bool }}"
 #enable_horizon_ironic: "{{ enable_ironic | bool }}"
diff --git a/releasenotes/notes/add-congress-dashboard-q65x5d27c034f8xc.yaml b/releasenotes/notes/add-congress-dashboard-q65x5d27c034f8xc.yaml
new file mode 100644
index 0000000000..b788be53cc
--- /dev/null
+++ b/releasenotes/notes/add-congress-dashboard-q65x5d27c034f8xc.yaml
@@ -0,0 +1,2 @@
+features:
+  - Add congress-dashboard to horizon.