feda5854287e3a7078dea086a3674e3fb93bfda8
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-config.yaml
1 heat_template_version: pike
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   RoleName:
20     default: ''
21     description: Role name on which the service is applied
22     type: string
23   RoleParameters:
24     default: {}
25     description: Parameters specific to the role
26     type: json
27   EndpointMap:
28     default: {}
29     description: Mapping of service endpoint -> protocol. Typically set
30                  via parameter_defaults in the resource registry.
31     type: json
32   ContrailConfigIfmapUserName:
33     description: Ifmap user name
34     type: string
35     default: 'api-server'
36   ContrailConfigIfmapUserPassword:
37     description: Ifmap user password
38     type: string
39     default: 'api-server'
40
41 resources:
42   ContrailBase:
43     type: ./contrail-base.yaml
44     properties:
45       ServiceNetMap: {get_param: ServiceNetMap}
46       DefaultPasswords: {get_param: DefaultPasswords}
47       EndpointMap: {get_param: EndpointMap}
48       RoleName: {get_param: RoleName}
49       RoleParameters: {get_param: RoleParameters}
50
51 outputs:
52   role_data:
53     description: Role Contrail Config using composable services.
54     value:
55       service_name: contrail_config
56       config_settings:
57         map_merge:
58           - get_attr: [ContrailBase, role_data, config_settings]
59           - contrail::config::ifmap_password: {get_param: ContrailConfigIfmapUserPassword}
60             contrail::config::ifmap_username: {get_param: ContrailConfigIfmapUserName}
61             contrail::config::listen_ip_address: {get_param: [ServiceNetMap, ContrailConfigNetwork]}
62             contrail::config::listen_port: {get_param: [EndpointMap, ContrailConfigInternal, port] }
63             contrail::config::redis_server: '127.0.0.1'
64             contrail::config::host_ip: {get_param: [ServiceNetMap, ContrailConfigNetwork] }
65       step_config: |
66         include ::tripleo::network::contrail::config