88adc4a556bd9eaf796344efedd489db6349c1ef
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-tsn.yaml
1 heat_template_version: ocata
2
3 description: >
4   Contrail TSN Service
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   VrouterPhysicalInterface:
25     default: 'eth0'
26     description: vRouter physical interface
27     type: string
28   VrouterGateway:
29     default: '192.168.24.1'
30     description: vRouter default gateway
31     type: string
32   VrouterNetmask:
33     default: '255.255.255.0'
34     description: vRouter netmask
35     type: string
36
37 resources:
38   ContrailBase:
39     type: ./contrail-base.yaml
40     properties:
41       ServiceNetMap: {get_param: ServiceNetMap}
42       DefaultPasswords: {get_param: DefaultPasswords}
43       EndpointMap: {get_param: EndpointMap}
44
45 outputs:
46   role_data:
47     description: Role data for the Contrail TSN Service
48     value:
49       service_name: contrail_tsn
50       config_settings:
51         map_merge:
52           - get_attr: [ContrailBase, role_data, config_settings]
53           - contrail::vrouter::host_ip: {get_param: [ServiceNetMap, NeutronCorePluginOpencontrailNetwork]}
54             contrail::vrouter::physical_interface: {get_param: VrouterPhysicalInterface}
55             contrail::vrouter::gateway: {get_param: VrouterGateway}
56             contrail::vrouter::netmask: {get_param: VrouterNetmask}
57             contrail::vrouter::metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
58             contrail::vrouter::is_tsn: 'true'
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