Add a case statement workaround for Chef 14

Change-Id: Ib618ef74ec3cbb41a638cd7b98df48721e38d82b
This commit is contained in:
Samuel Cassiba 2018-04-11 22:08:32 -07:00
parent 3bcc58e255
commit 37088e9af0
1 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,18 @@
# limitations under the License.
#
# install a python, working around the epoch on RHEL
case node['platform_family']
when 'debian', 'ubuntu'
python_runtime '2' do
provider :system
end
when 'rhel'
python_runtime '0:2' do
provider :system
end
end
platform_options = node['openstack']['common']['platform']
case node['platform_family']
when 'debian'