Merge "Don't assume default network names in net_ip*map"
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-vrouter.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Neutron Compute OpenContrail plugin
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   NeutronMetadataProxySharedSecret:
22     description: Metadata Secret
23     type: string
24     hidden: true
25   ContrailVrouterPhysicalInterface:
26     default: 'eth0'
27     description: vRouter physical interface
28     type: string
29   ContrailVrouterGateway:
30     default: '192.0.2.1'
31     description: vRouter default gateway
32     type: string
33   ContrailVrouterNetmask:
34     default: '255.255.255.0'
35     description: vRouter netmask
36     type: string
37
38 resources:
39   ContrailBase:
40     type: ./contrail-base.yaml
41     properties:
42       ServiceNetMap: {get_param: ServiceNetMap}
43       DefaultPasswords: {get_param: DefaultPasswords}
44       EndpointMap: {get_param: EndpointMap}
45
46 outputs:
47   role_data:
48     description: Role data for the Neutron Compute OpenContrail plugin
49     value:
50       service_name: contrail_vrouter
51       config_settings:
52         map_merge:
53           - get_attr: [ContrailBase, role_data, config_settings]
54           - contrail::vrouter::host_ip: {get_param: [ServiceNetMap, NeutronCorePluginOpencontrailNetwork]}
55             contrail::vrouter::physical_interface: {get_param: ContrailVrouterPhysicalInterface}
56             contrail::vrouter::gateway: {get_param: ContrailVrouterGateway}
57             contrail::vrouter::netmask: {get_param: ContrailVrouterNetmask}
58             contrail::vrouter::metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
59             tripleo.neutron_compute_plugin_opencontrail.firewall_rules:
60               '111 neutron_compute_plugin_opencontrail proxy':
61                 dport: 8097
62                 proto: tcp
63       step_config: |
64         include ::tripleo::network::contrail::vrouter