From 638c651975bb4142bf6b00c21f01b808854eeb05 Mon Sep 17 00:00:00 2001 From: Seb-Solon Date: Thu, 26 Oct 2017 12:39:22 -0400 Subject: [PATCH] Replace platform_family method and use attribute instead platform_family method is not working on latest Chef versions Change-Id: I65f1c8a6daffada15406c55a48643fe134794aa7 Partial-Bug: #1724987 --- attributes/default.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attributes/default.rb b/attributes/default.rb index 32e3c1ba..f2c11b0f 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -25,7 +25,7 @@ default['openstack']['compute']['identity_service_chef_role'] = 'os-identity' # Disallow non-encrypted connections default['openstack']['compute']['service_role'] = 'admin' -case platform_family +case node['platform_family'] when 'rhel', 'debian' default['openstack']['compute']['user'] = 'nova' default['openstack']['compute']['group'] = 'nova' @@ -135,7 +135,7 @@ default['openstack']['placement']['ssl']['protocol'] = '' default['openstack']['placement']['ssl']['ciphers'] = '' # Platform specific settings -case platform_family +case node['platform_family'] when 'rhel' # :pragma-foodcritic: ~FC024 - won't fix this default['openstack']['compute']['platform'] = { 'api_os_compute_packages' => ['openstack-nova-api'],