Render isolated network templates using jinja2
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-webui.yaml
1 heat_template_version: pike
2
3 description: >
4   Contrail WebUI 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 WebUI.
8
9 parameters:
10   ServiceData:
11     default: {}
12     description: Dictionary packing service data
13     type: json
14   ServiceNetMap:
15     default: {}
16     description: Mapping of service_name -> network name. Typically set
17                  via parameter_defaults in the resource registry.  This
18                  mapping overrides those in ServiceNetMapDefaults.
19     type: json
20   DefaultPasswords:
21     default: {}
22     type: json
23   RoleName:
24     default: ''
25     description: Role name on which the service is applied
26     type: string
27   RoleParameters:
28     default: {}
29     description: Parameters specific to the role
30     type: json
31   EndpointMap:
32     default: {}
33     description: Mapping of service endpoint -> protocol. Typically set
34                  via parameter_defaults in the resource registry.
35     type: json
36
37 resources:
38   ContrailBase:
39     type: ./contrail-base.yaml
40     properties:
41       ServiceData: {get_param: ServiceData}
42       ServiceNetMap: {get_param: ServiceNetMap}
43       DefaultPasswords: {get_param: DefaultPasswords}
44       EndpointMap: {get_param: EndpointMap}
45       RoleName: {get_param: RoleName}
46       RoleParameters: {get_param: RoleParameters}
47
48 outputs:
49   role_data:
50     description: Role Contrail WebUI using composable services.
51     value:
52       service_name: contrail_webui
53       config_settings:
54         map_merge:
55           - get_attr: [ContrailBase, role_data, config_settings]
56           - contrail::webui::http_port: {get_param: [EndpointMap, ContrailWebuiHttpInternal, port] }
57             contrail::webui::https_port: {get_param: [EndpointMap, ContrailWebuiHttpsInternal, port] }
58             contrail::webui::redis_ip: '127.0.0.1'
59       step_config: |
60         include ::tripleo::network::contrail::webui