Create hiera service_enabled keys for enabled services
[apex-tripleo-heat-templates.git] / puppet / services / opendaylight-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenDaylight SDN Controller.
5
6 parameters:
7   OpenDaylightPort:
8     default: 8081
9     description: Set opendaylight service port
10     type: number
11   EnableOpenDaylightOnController:
12     default: false
13     description: Whether to install OpenDaylight on control nodes.
14     type: boolean
15   OpenDaylightUsername:
16     default: 'admin'
17     description: The username for the opendaylight server.
18     type: string
19   OpenDaylightPassword:
20     default: 'admin'
21     type: string
22     description: The password for the opendaylight server.
23     hidden: true
24   OpenDaylightEnableL3:
25     description: Knob to enable/disable ODL L3
26     type: string
27     default: 'no'
28   OpenDaylightEnableDHCP:
29     description: Knob to enable/disable ODL DHCP Server
30     type: boolean
31     default: false
32   OpenDaylightFeatures:
33     description: List of features to install with ODL
34     type: comma_delimited_list
35     default: ["odl-netvirt-openstack","odl-netvirt-ui"]
36   OpenDaylightConnectionProtocol:
37     description: L7 protocol used for REST access
38     type: string
39     default: 'http'
40   OpenDaylightCheckURL:
41     description: URL postfix to verify ODL has finished starting up
42     type: string
43     default: 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
44   OpenDaylightApiVirtualIP:
45     type: string
46     default: ''
47   EndpointMap:
48     default: {}
49     description: Mapping of service endpoint -> protocol. Typically set
50                  via parameter_defaults in the resource registry.
51     type: json
52   ServiceNetMap:
53     default: {}
54     description: Mapping of service_name -> network name. Typically set
55                  via parameter_defaults in the resource registry.  This
56                  mapping overrides those in ServiceNetMapDefaults.
57     type: json
58   DefaultPasswords:
59     default: {}
60     type: json
61
62 outputs:
63   role_data:
64     description: Role data for the OpenDaylight service.
65     value:
66       service_name: opendaylight_api
67       config_settings:
68         opendaylight::odl_rest_port: {get_param: OpenDaylightPort}
69         odl_on_controller: {get_param: EnableOpenDaylightOnController}
70         opendaylight_check_url: {get_param: OpenDaylightCheckURL}
71         opendaylight::username: {get_param: OpenDaylightUsername}
72         opendaylight::password: {get_param: OpenDaylightPassword}
73         opendaylight::enable_l3: {get_param: OpenDaylightEnableL3}
74         opendaylight::extra_features: {get_param: OpenDaylightFeatures}
75         opendaylight::enable_dhcp: {get_param: OpenDaylightEnableDHCP}
76         opendaylight::nb_connection_protocol: {get_param: OpenDaylightConnectionProtocol}
77         opendaylight::odl_bind_ip: {get_param: [ServiceNetMap, OpenDaylightApiNetwork]}
78         tripleo::haproxy::opendaylight: true
79       step_config: |
80         include tripleo::profile::base::neutron::opendaylight
81         include tripleo::profile::base::neutron::plugins::ovs::opendaylight