Populate vnc_api_lib.ini on compute nodes with OpenContrail
authorJiri Stransky <jistr@redhat.com>
Thu, 8 Sep 2016 16:23:09 +0000 (18:23 +0200)
committerJiri Stransky <jistr@redhat.com>
Thu, 8 Sep 2016 16:23:09 +0000 (18:23 +0200)
This is setting sane defaults for vnc_api_lib.ini as requested from the
field. The settings still can be overriden using NovaComputeExtraConfig
if needed.

Change-Id: I6a823c0b34f6ea21aa16939577ac0e1563483557
Closes-Bug: #1620647

puppet/extraconfig/pre_deploy/compute/neutron-opencontrail.yaml

index e496553..f5b1f0e 100644 (file)
@@ -32,6 +32,18 @@ resources:
                 contrail::vrouter::provision_vrouter::keystone_admin_tenant_name: admin
                 contrail::vrouter::provision_vrouter::keystone_admin_password: '"%{::admin_password}"'
 
+                contrail::vnc_api::vnc_api_config:
+                  'auth/AUTHN_TYPE':
+                    value: keystone
+                  'auth/AUTHN_PROTOCOL':
+                    value: http
+                  'auth/AUTHN_SERVER':
+                    value: "%{hiera('keystone_admin_api_vip')}"
+                  'auth/AUTHN_PORT':
+                    value: 35357
+                  'auth/AUTHN_URL':
+                    value: '/v2.0/tokens'
+
   ComputeContrailDeployment:
     type: OS::Heat::StructuredDeployment
     properties: