Merge "Add a case statement workaround for Chef 14"

This commit is contained in:
Zuul 2018-04-16 14:38:12 +00:00 committed by Gerrit Code Review
commit d9f70a42a9
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'