Browse Source

Replace platform_family method and use attribute instead

platform_family method is not working on latest Chef versions

Change-Id: I65f1c8a6daffada15406c55a48643fe134794aa7
Partial-Bug: #1724987
changes/56/515256/2
Seb-Solon 1 year ago
parent
commit
638c651975
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      attributes/default.rb

+ 2
- 2
attributes/default.rb View File

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

Loading…
Cancel
Save