1 heat_template_version: pike
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: Dictionary packing service data
46 description: Mapping of service_name -> network name. Typically set
47 via parameter_defaults in the resource registry. This
48 mapping overrides those in ServiceNetMapDefaults.
55 description: Role name on which the service is applied
59 description: Parameters specific to the role
61 OpenDaylightManageRepositories:
62 description: Whether to manage the OpenDaylight repository
68 description: Role data for the OpenDaylight service.
70 service_name: opendaylight_api
72 opendaylight::odl_rest_port: {get_param: OpenDaylightPort}
73 opendaylight::username: {get_param: OpenDaylightUsername}
74 opendaylight::password: {get_param: OpenDaylightPassword}
75 opendaylight::extra_features: {get_param: OpenDaylightFeatures}
76 opendaylight::enable_dhcp: {get_param: OpenDaylightEnableDHCP}
77 opendaylight::odl_bind_ip: {get_param: [ServiceNetMap, OpendaylightApiNetwork]}
78 opendaylight::nb_connection_protocol: {get_param: OpenDaylightConnectionProtocol}
79 opendaylight::manage_repositories: {get_param: OpenDaylightManageRepositories}
80 tripleo.opendaylight_api.firewall_rules:
81 '137 opendaylight api':
83 - {get_param: OpenDaylightPort}
88 include tripleo::profile::base::neutron::opendaylight
90 - name: Check if opendaylight is deployed
91 command: systemctl is-enabled opendaylight
94 register: opendaylight_enabled
95 - name: "PreUpgrade step0,validation: Check service opendaylight is running"
96 shell: /usr/bin/systemctl show 'opendaylight' --property ActiveState | grep '\bactive\b'
97 when: opendaylight_enabled.rc == 0
98 tags: step0,validation
99 - name: Stop opendaylight service
101 when: opendaylight_enabled.rc == 0
102 service: name=opendaylight state=stopped
103 - name: Removes ODL snapshots, data, journal directories
106 path: /opt/opendaylight/{{item}}