Synchronize NetworkDeployment inputs for generic roles
authorJames Slagle <jslagle@redhat.com>
Fri, 9 Dec 2016 21:49:28 +0000 (16:49 -0500)
committerJames Slagle <jslagle@redhat.com>
Tue, 13 Dec 2016 21:58:10 +0000 (16:58 -0500)
The inputs on the NetworkDeployment SoftwareDeployment resource were not
the same for generic roles as they were for the default roles
(role.role.js.yaml vs. controller-role.yaml).

This patch synchronizes the input between the 2 so that the interface is
the same for deployers.

Change-Id: Id14cf7ca219aee61f5b9d21171a5c41dea765f98
Implements: blueprint multinode-ci-os-net-config

puppet/role.role.j2.yaml

index 9726d97..cd29b09 100644 (file)
@@ -28,6 +28,10 @@ parameters:
     constraints:
       - custom_constraint: nova.keypair
 {% endif %}
+  NeutronPublicInterface:
+    default: nic1
+    description: What interface to bridge onto br-ex for network nodes.
+    type: string
   ServiceNetMap:
     default: {}
     description: Mapping of service_name -> network name. Typically set
@@ -332,6 +336,9 @@ resources:
       config: {get_resource: NetworkConfig}
       server: {get_resource: {{role}}}
       actions: {get_param: NetworkDeploymentActions}
+      input_values:
+        bridge_name: br-ex
+        interface_name: {get_param: NeutronPublicInterface}
 
   {{role}}Deployment:
     type: OS::Heat::StructuredDeployment