Don't curl metadata server in userdata example
[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   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   ContrailConfigIfmapUserName:
37     description: Ifmap user name
38     type: string
39     default: 'api-server'
40   ContrailConfigIfmapUserPassword:
41     description: Ifmap user password
42     type: string
43     default: 'api-server'
44
45 resources:
46   ContrailBase:
47     type: ./contrail-base.yaml
48     properties:
49       ServiceData: {get_param: ServiceData}
50       ServiceNetMap: {get_param: ServiceNetMap}
51       DefaultPasswords: {get_param: DefaultPasswords}
52       EndpointMap: {get_param: EndpointMap}
53       RoleName: {get_param: RoleName}
54       RoleParameters: {get_param: RoleParameters}
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_username: {get_param: ContrailConfigIfmapUserName}
66             contrail::config::listen_ip_address: {get_param: [ServiceNetMap, ContrailConfigNetwork]}
67             contrail::config::listen_port: {get_param: [EndpointMap, ContrailConfigInternal, port] }
68             contrail::config::redis_server: '127.0.0.1'
69             contrail::config::host_ip: {get_param: [ServiceNetMap, ContrailConfigNetwork] }
70       step_config: |
71         include ::tripleo::network::contrail::config