[ha] [odl] Patch hostconfig for py3 compat
[fuel.git] / mcp / reclass / classes / cluster / mcp-odl-ha / openstack / compute.yml
1 ##############################################################################
2 # Copyright (c) 2018 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 ---
9 classes:
10   - service.neutron.gateway.opendaylight.single
11   - cluster.mcp-common-ha.openstack_compute
12   - cluster.mcp-odl-ha.openstack.compute_pdf
13   - cluster.mcp-odl-ha.infra
14 parameters:
15   nova:
16     compute:
17       libvirt_service: libvirtd
18       libvirt_bin: /etc/default/libvirtd
19   neutron:
20     gateway:
21       agent_mode: ${_param:neutron_gateway_agent_mode}
22       backend:
23         ovsdb_connection: tcp:127.0.0.1:6640
24       opendaylight:
25         ovsdb_server_iface: ptcp:6640:127.0.0.1
26   linux:
27     system:
28       file:
29         /var/tmp/odl_hostconfig.patch:
30           contents: |
31             420c420
32             <                 if datapath_types.find(datapath_type) >= 0)
33             ---
34             >                 if datapath_type in datapath_types)
35             460c460
36             <         return subprocess.check_output(command_line).strip()  # nosec
37             ---
38             >         return subprocess.check_output(command_line).strip().decode()  # nosec