horizon: be more flexible in hiera neutron
authorEmilien Macchi <emilien@redhat.com>
Thu, 26 Jan 2017 21:45:55 +0000 (16:45 -0500)
committerEmilien Macchi <emilien@redhat.com>
Thu, 26 Jan 2017 21:45:55 +0000 (16:45 -0500)
Requiring the neutron mechanism driver from hiera is too rigid, if
Neutron is not deployed in the catalog.
Be more flexible so catalog won't fail if the value is not set in Hiera.

Change-Id: I1475687c4dc53c77e763f42a440355a7c8d014bc
Partial-Bug: #1659662

manifests/profile/base/horizon.pp

index be07c0e..bd28ab0 100644 (file)
@@ -30,7 +30,7 @@ class tripleo::profile::base::horizon (
     # Horizon
     include ::apache::mod::remoteip
     include ::apache::mod::status
-    if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers') {
+    if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers', undef) {
       $_profile_support = 'cisco'
     } else {
       $_profile_support = 'None'