72b9e1c0bdb71c33aa830c432f1fe53f8b63bcda
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-webui.yaml
1 heat_template_version: 2016-04-08
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   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   ContrailWebUiAnalyticsVip:
25     description: Contrail Analytics VIP
26     type: string
27   ContrailWebUiConfigVip:
28     description: Contrail Config VIP
29     type: string
30   ContrailWebUiNeutronVip:
31     description: Neutron VIP
32     type: string
33   ContrailWebuiHttpPort:
34     default: 8080
35     description: HTTP Port of Webui
36     type: number
37   ContrailWebuiHttpsPort:
38     default: 8143
39     description: HTTPS Port of Webui
40     type: number
41   ContrailWebUiRedisIp:
42     description: Redis IP
43     type: string
44     default: '127.0.0.1'
45
46 resources:
47   ContrailBase:
48     type: ./contrail-base.yaml
49     properties:
50       ServiceNetMap: {get_param: ServiceNetMap}
51       DefaultPasswords: {get_param: DefaultPasswords}
52       EndpointMap: {get_param: EndpointMap}
53
54 outputs:
55   role_data:
56     description: Role Contrail WebUI using composable services.
57     value:
58       service_name: contrail_webui
59       config_settings:
60         map_merge:
61           - get_attr: [ContrailBase, role_data, config_settings]
62           - contrail::webui::contrail_analytics_vip: {get_param: ContrailWebUiAnalyticsVip}
63             contrail::webui::contrail_config_vip: {get_param: ContrailWebUiConfigVip}
64             contrail::webui::contrail_webui_http_port: {get_param: ContrailWebuiHttpPort}
65             contrail::webui::contrail_webui_https_port: {get_param: ContrailWebuiHttpsPort}
66             contrail::webui::neutron_vip: {get_param: ContrailWebUiNeutronVip}
67             contrail::webui::redis_ip: {get_param: ContrailWebUiRedisIp}
68       step_config: |
69         include ::tripleo::network::contrail::webui