Change for configuring use_forwarded_for value for Nuage
authorLokesh Jain <lokesh.jain@gmail.com>
Thu, 3 Dec 2015 19:22:30 +0000 (14:22 -0500)
committerLokesh Jain <lokesh.jain@gmail.com>
Mon, 7 Dec 2015 16:19:10 +0000 (11:19 -0500)
Added a parameter to Nuage ExtraConfig template for setting
use_forwarded_for value required by Nuage metadata agent

Change-Id: I02c15311272126c5e530f118fbfb4a8f6e11a620

environments/neutron-nuage-config.yaml
puppet/extraconfig/pre_deploy/controller/neutron-nuage.yaml

index 4ba8d9c..50ba8f5 100644 (file)
@@ -12,3 +12,4 @@ parameter_defaults:
   NeutronNuageVSDOrganization: 'organization'
   NeutronNuageBaseURIVersion: 'default_uri_version'
   NeutronNuageCMSId: ''
+  UseForwardedFor: true
index 60f02bf..8378d2f 100644 (file)
@@ -43,6 +43,11 @@ parameters:
     description: Cloud Management System ID (CMS ID) to distinguish between OS instances on the same VSD
     type: string
 
+  UseForwardedFor:
+    description: Treat X-Forwarded-For as the canonical remote address. Only enable this if you have a sanitizing proxy.
+    type: boolean
+    default: false
+
 resources:
   NeutronNuageConfig:
     type: OS::Heat::StructuredConfig
@@ -61,6 +66,7 @@ resources:
                neutron::plugins::nuage::nuage_vsd_organization: {get_input: NuageVSDOrganization}
                neutron::plugins::nuage::nuage_base_uri_version: {get_input: NuageBaseURIVersion}
                neutron::plugins::nuage::nuage_cms_id: {get_input: NuageCMSId}
+               nova::api::use_forwarded_for: {get_input: NovaUseForwardedFor}
 
   NeutronNuageDeployment:
     type: OS::Heat::StructuredDeployment
@@ -76,6 +82,7 @@ resources:
         NuageVSDOrganization: {get_param: NeutronNuageVSDOrganization}
         NuageBaseURIVersion: {get_param: NeutronNuageBaseURIVersion}
         NuageCMSId: {get_param: NeutronNuageCMSId}
+        NovaUseForwardedFor: {get_param: UseForwardedFor}
 
 outputs:
   deploy_stdout: