1 heat_template_version: ocata
4 OpenDaylight SDN Controller.
9 description: Set opendaylight service port
13 description: The username for the opendaylight server.
18 description: The password for the opendaylight server.
20 OpenDaylightConnectionProtocol:
21 description: L7 protocol used for REST access
24 OpenDaylightEnableDHCP:
25 description: Knob to enable/disable ODL DHCP Server
29 description: List of features to install with ODL
30 type: comma_delimited_list
31 default: ["odl-netvirt-openstack","odl-netvirt-ui","odl-jolokia"]
32 OpenDaylightApiVirtualIP:
37 description: Mapping of service endpoint -> protocol. Typically set
38 via parameter_defaults in the resource registry.
42 description: Mapping of service_name -> network name. Typically set
43 via parameter_defaults in the resource registry. This
44 mapping overrides those in ServiceNetMapDefaults.
51 description: Role name on which the service is applied
55 description: Parameters specific to the role
60 description: Role data for the OpenDaylight service.
62 service_name: opendaylight_api
64 opendaylight::odl_rest_port: {get_param: OpenDaylightPort}
65 opendaylight::username: {get_param: OpenDaylightUsername}
66 opendaylight::password: {get_param: OpenDaylightPassword}
67 opendaylight::extra_features: {get_param: OpenDaylightFeatures}
68 opendaylight::enable_dhcp: {get_param: OpenDaylightEnableDHCP}
69 opendaylight::odl_bind_ip: {get_param: [ServiceNetMap, OpendaylightApiNetwork]}
70 opendaylight::nb_connection_protocol: {get_param: OpenDaylightConnectionProtocol}
71 tripleo.opendaylight_api.firewall_rules:
72 '137 opendaylight api':
74 - {get_param: OpenDaylightPort}
79 include tripleo::profile::base::neutron::opendaylight
81 - name: Check if opendaylight is deployed
82 command: systemctl is-enabled opendaylight
85 register: opendaylight_enabled
86 - name: "PreUpgrade step0,validation: Check service opendaylight is running"
87 shell: /usr/bin/systemctl show 'opendaylight' --property ActiveState | grep '\bactive\b'
88 when: opendaylight_enabled.rc == 0
89 tags: step0,validation
90 - name: Stop opendaylight service
92 when: opendaylight_enabled.rc == 0
93 service: name=opendaylight state=stopped
94 - name: Removes ODL snapshots, data, journal directories
97 path: /opt/opendaylight/{{item}}