5ce25a2ef758a1770dcbc07423a65c0c48102f95
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-database.yaml
1 heat_template_version: pike
2
3 description: >
4   Contrail Database 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 Database.
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
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       RoleName: {get_param: RoleName}
41       RoleParameters: {get_param: RoleParameters}
42
43 outputs:
44   role_data:
45     description: Role Contrail Database using composable services.
46     value:
47       service_name: contrail_database
48       config_settings:
49         map_merge:
50           - get_attr: [ContrailBase, role_data, config_settings]
51           - contrail::database::host_ip: {get_param: [ServiceNetMap, ContrailDatabaseNetwork]}
52       step_config: |
53         include ::tripleo::network::contrail::database