e496553a93cb77db34bcb061c1bc059164cac173
[apex-tripleo-heat-templates.git] / puppet / extraconfig / pre_deploy / compute / neutron-opencontrail.yaml
1 heat_template_version: 2015-04-30
2
3 description: Compute node hieradata for Neutron OpenContrail configuration
4
5 parameters:
6   server:
7     description: ID of the compute node to apply this config to
8     type: string
9   ContrailApiServerIp:
10     description: IP address of the OpenContrail API server
11     type: string
12   ContrailApiServerPort:
13     description: Port of the OpenContrail API
14     type: string
15     default: 8082
16
17 resources:
18   ComputeContrailConfig:
19     type: OS::Heat::StructuredConfig
20     properties:
21       group: os-apply-config
22       config:
23         hiera:
24           datafiles:
25             neutron_opencontrail_data:
26               mapped_data:
27                 nova::network::neutron::network_api_class: nova.network.neutronv2.api.API
28
29                 contrail::vrouter::provision_vrouter::api_address: {get_input: contrail_api_server_ip}
30                 contrail::vrouter::provision_vrouter::api_port: {get_input: contrail_api_server_port}
31                 contrail::vrouter::provision_vrouter::keystone_admin_user: admin
32                 contrail::vrouter::provision_vrouter::keystone_admin_tenant_name: admin
33                 contrail::vrouter::provision_vrouter::keystone_admin_password: '"%{::admin_password}"'
34
35   ComputeContrailDeployment:
36     type: OS::Heat::StructuredDeployment
37     properties:
38       config: {get_resource: ComputeContrailConfig}
39       server: {get_param: server}
40       input_values:
41         contrail_api_server_ip: {get_param: ContrailApiServerIp}
42         contrail_api_server_port: {get_param: ContrailApiServerPort}
43
44 outputs:
45   deploy_stdout:
46     description: Output of the extra hiera data deployment
47     value: {get_attr: [ComputeContrailDeployment, deploy_stdout]}