Replace platform_family method and use attribute instead

platform_family method is not working on latest Chef versions

Change-Id: I65f1c8a6daffada15406c55a48643fe134794aa7
Partial-Bug: #1724987
This commit is contained in:
Seb-Solon 2017-10-26 12:39:22 -04:00
parent cbe2ef6647
commit 638c651975
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ default['openstack']['compute']['identity_service_chef_role'] = 'os-identity'
# Disallow non-encrypted connections # Disallow non-encrypted connections
default['openstack']['compute']['service_role'] = 'admin' default['openstack']['compute']['service_role'] = 'admin'
case platform_family case node['platform_family']
when 'rhel', 'debian' when 'rhel', 'debian'
default['openstack']['compute']['user'] = 'nova' default['openstack']['compute']['user'] = 'nova'
default['openstack']['compute']['group'] = 'nova' default['openstack']['compute']['group'] = 'nova'
@ -135,7 +135,7 @@ default['openstack']['placement']['ssl']['protocol'] = ''
default['openstack']['placement']['ssl']['ciphers'] = '' default['openstack']['placement']['ssl']['ciphers'] = ''
# Platform specific settings # Platform specific settings
case platform_family case node['platform_family']
when 'rhel' # :pragma-foodcritic: ~FC024 - won't fix this when 'rhel' # :pragma-foodcritic: ~FC024 - won't fix this
default['openstack']['compute']['platform'] = { default['openstack']['compute']['platform'] = {
'api_os_compute_packages' => ['openstack-nova-api'], 'api_os_compute_packages' => ['openstack-nova-api'],