Browse code

Configure VPNaaS Horizon panel if q-vpn is enabled

Change-Id: I062fd31cb1de50f356c2c549a783d9c597b129fa
Closes-Bug: #1223012

Akihiro MOTOKI authored on 2013/09/10 05:22:37
Showing 1 changed files
... ...
@@ -101,6 +101,11 @@ function init_horizon() {
101 101
         _horizon_config_set $local_settings OPENSTACK_NEUTRON_NETWORK enable_firewall True
102 102
     fi
103 103
 
104
+    # enable VPN dashboard in case service is enabled
105
+    if is_service_enabled q-vpn; then
106
+        _horizon_config_set $local_settings OPENSTACK_NEUTRON_NETWORK enable_vpn True
107
+    fi
108
+
104 109
     # Initialize the horizon database (it stores sessions and notices shown to
105 110
     # users).  The user system is external (keystone).
106 111
     cd $HORIZON_DIR