Merge "Set manila cephfs backend if ceph is deployed"
[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   ContrailConfigIfmapServerIp:
25     description: Ifmap server ip address
26     type: string
27   ContrailConfigIfmapUserName:
28     description: Ifmap user name
29     type: string
30   ContrailConfigIfmapUserPassword:
31     description: Ifmap user password
32     type: string
33   ContrailConfigRabbitServerIp:
34     description: RabbitMq server ip address
35     type: string
36   ContrailConfigRedisServerIp:
37     description: Redis server ip address
38     type: string
39   ContrailConfigListenAddress:
40     default: '0.0.0.0'
41     description: IP address Config API is listening on
42     type: string
43   ContrailConfigListenPort:
44     default: 8082
45     description: Port Config API is listening on
46     type: number
47
48 resources:
49   ContrailBase:
50     type: ./contrail-base.yaml
51     properties:
52       ServiceNetMap: {get_param: ServiceNetMap}
53       DefaultPasswords: {get_param: DefaultPasswords}
54       EndpointMap: {get_param: EndpointMap}
55
56 outputs:
57   role_data:
58     description: Role Contrail Config using composable services.
59     value:
60       service_name: contrail_config
61       config_settings:
62         map_merge:
63           - get_attr: [ContrailBase, role_data, config_settings]
64           - contrail::config::ifmap_password: {get_param: ContrailConfigIfmapUserPassword}
65             contrail::config::ifmap_server_ip: {get_param: ContrailConfigIfmapServerIp}
66             contrail::config::ifmap_username: {get_param: ContrailConfigIfmapUserName}
67             contrail::config::listen_ip_address: {get_param: ContrailConfigListenAddress}
68             contrail::config::listen_port: {get_param: ContrailConfigListenPort}
69             contrail::config::rabbit_server: {get_param: ContrailConfigRabbitServerIp}
70             contrail::config::redis_server: {get_param: ContrailConfigRedisServerIp}
71       step_config: |
72         include ::tripleo::network::contrail::config