Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-vrouter.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Neutron Compute OpenContrail plugin
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   NeutronMetadataProxySharedSecret:
34     description: Shared secret to prevent spoofing
35     type: string
36     hidden: true
37   ContrailVrouterPhysicalInterface:
38     default: 'eth0'
39     description: vRouter physical interface
40     type: string
41   ContrailVrouterGateway:
42     default: '192.168.24.1'
43     description: vRouter default gateway
44     type: string
45   ContrailVrouterNetmask:
46     default: '255.255.255.0'
47     description: vRouter netmask
48     type: string
49   ContrailVrouterControlNodeIps:
50     description: List of Contrail Node IPs
51     type: comma_delimited_list
52     default: ''
53
54 resources:
55   ContrailBase:
56     type: ./contrail-base.yaml
57     properties:
58       ServiceData: {get_param: ServiceData}
59       ServiceNetMap: {get_param: ServiceNetMap}
60       DefaultPasswords: {get_param: DefaultPasswords}
61       EndpointMap: {get_param: EndpointMap}
62       RoleName: {get_param: RoleName}
63       RoleParameters: {get_param: RoleParameters}
64
65 outputs:
66   role_data:
67     description: Role data for the Neutron Compute OpenContrail plugin
68     value:
69       service_name: contrail_vrouter
70       config_settings:
71         map_merge:
72           - get_attr: [ContrailBase, role_data, config_settings]
73           - contrail::vrouter::host_ip: {get_param: [ServiceNetMap, ContrailVrouterNetwork]}
74             contrail::vrouter::physical_interface: {get_param: ContrailVrouterPhysicalInterface}
75             contrail::vrouter::gateway: {get_param: ContrailVrouterGateway}
76             contrail::vrouter::netmask: {get_param: ContrailVrouterNetmask}
77             contrail::vrouter::metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
78             contrail::vrouter::control_node_ips: {get_param: ContrailVrouterControlNodeIps}
79             tripleo.contrail_vrouter.firewall_rules:
80               '111 contrail_vrouter_8085':
81                 dport: 8085
82               '112 contrail_vrouter_8097':
83                 dport: 8097
84       step_config: |
85         include ::tripleo::network::contrail::vrouter