diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-02-29 15:31:51 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-02-29 15:31:51 +0000 |
commit | 6677663e1141c1baabb0769191a7f951abe0c66d (patch) | |
tree | 3f51ee76c267a45e80da32328c8e70c3a92ba959 /puppet/extraconfig/pre_deploy/compute | |
parent | 1e5e9b172c02bbaa49d3176cfecbe40cccad74f2 (diff) | |
parent | fd922970e86d62d3da7ea5bbde37418fdbcb248e (diff) |
Merge "OpenContrail heat templates"
Diffstat (limited to 'puppet/extraconfig/pre_deploy/compute')
-rw-r--r-- | puppet/extraconfig/pre_deploy/compute/neutron-opencontrail.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/puppet/extraconfig/pre_deploy/compute/neutron-opencontrail.yaml b/puppet/extraconfig/pre_deploy/compute/neutron-opencontrail.yaml new file mode 100644 index 00000000..e496553a --- /dev/null +++ b/puppet/extraconfig/pre_deploy/compute/neutron-opencontrail.yaml @@ -0,0 +1,47 @@ +heat_template_version: 2015-04-30 + +description: Compute node hieradata for Neutron OpenContrail configuration + +parameters: + server: + description: ID of the compute node to apply this config to + type: string + ContrailApiServerIp: + description: IP address of the OpenContrail API server + type: string + ContrailApiServerPort: + description: Port of the OpenContrail API + type: string + default: 8082 + +resources: + ComputeContrailConfig: + type: OS::Heat::StructuredConfig + properties: + group: os-apply-config + config: + hiera: + datafiles: + neutron_opencontrail_data: + mapped_data: + nova::network::neutron::network_api_class: nova.network.neutronv2.api.API + + contrail::vrouter::provision_vrouter::api_address: {get_input: contrail_api_server_ip} + contrail::vrouter::provision_vrouter::api_port: {get_input: contrail_api_server_port} + contrail::vrouter::provision_vrouter::keystone_admin_user: admin + contrail::vrouter::provision_vrouter::keystone_admin_tenant_name: admin + contrail::vrouter::provision_vrouter::keystone_admin_password: '"%{::admin_password}"' + + ComputeContrailDeployment: + type: OS::Heat::StructuredDeployment + properties: + config: {get_resource: ComputeContrailConfig} + server: {get_param: server} + input_values: + contrail_api_server_ip: {get_param: ContrailApiServerIp} + contrail_api_server_port: {get_param: ContrailApiServerPort} + +outputs: + deploy_stdout: + description: Output of the extra hiera data deployment + value: {get_attr: [ComputeContrailDeployment, deploy_stdout]} |