Merge "OVN bridge mappings for tripleo"
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-config.yaml
1 heat_template_version: ocata
2
3 description: >
4   Contrail Config service deployment using puppet, this YAML file
5   creates the interface between the HOT template
6   and the puppet manifest that actually installs
7   and configures Contrail Config.
8
9 parameters:
10   ServiceNetMap:
11     default: {}
12     description: Mapping of service_name -> network name. Typically set
13                  via parameter_defaults in the resource registry.  This
14                  mapping overrides those in ServiceNetMapDefaults.
15     type: json
16   DefaultPasswords:
17     default: {}
18     type: json
19   EndpointMap:
20     default: {}
21     description: Mapping of service endpoint -> protocol. Typically set
22                  via parameter_defaults in the resource registry.
23     type: json
24   ContrailConfigIfmapUserName:
25     description: Ifmap user name
26     type: string
27     default: 'api-server'
28   ContrailConfigIfmapUserPassword:
29     description: Ifmap user password
30     type: string
31     default: 'api-server'
32
33 resources:
34   ContrailBase:
35     type: ./contrail-base.yaml
36     properties:
37       ServiceNetMap: {get_param: ServiceNetMap}
38       DefaultPasswords: {get_param: DefaultPasswords}
39       EndpointMap: {get_param: EndpointMap}
40
41 outputs:
42   role_data:
43     description: Role Contrail Config using composable services.
44     value:
45       service_name: contrail_config
46       config_settings:
47         map_merge:
48           - get_attr: [ContrailBase, role_data, config_settings]
49           - contrail::config::ifmap_password: {get_param: ContrailConfigIfmapUserPassword}
50             contrail::config::ifmap_username: {get_param: ContrailConfigIfmapUserName}
51             contrail::config::listen_ip_address: {get_param: [ServiceNetMap, ContrailConfigNetwork]}
52             contrail::config::listen_port: {get_param: [EndpointMap, ContrailConfigInternal, port] }
53             contrail::config::redis_server: '127.0.0.1'
54             contrail::config::host_ip: {get_param: [ServiceNetMap, ContrailConfigNetwork] }
55       step_config: |
56         include ::tripleo::network::contrail::config