summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeb-Solon <openid@pyseb.cx>2017-10-26 12:39:22 -0400
committerSeb-Solon <openid@pyseb.cx>2017-10-28 15:45:46 -0400
commit638c651975bb4142bf6b00c21f01b808854eeb05 (patch)
treee00e2d68bc45d4a8d8e4c60631832a8b3970cc35
parentcbe2ef66476cf4fe101304c32dff073f513b353f (diff)
Replace platform_family method and use attribute instead
platform_family method is not working on latest Chef versions Change-Id: I65f1c8a6daffada15406c55a48643fe134794aa7 Partial-Bug: #1724987
Notes
Notes (review): Code-Review+2: Samuel Cassiba <s@cassiba.com> Workflow+1: Samuel Cassiba <s@cassiba.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sun, 29 Oct 2017 01:52:25 +0000 Reviewed-on: https://review.openstack.org/515256 Project: openstack/cookbook-openstack-compute Branch: refs/heads/master
-rw-r--r--attributes/default.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/attributes/default.rb b/attributes/default.rb
index 32e3c1b..f2c11b0 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -25,7 +25,7 @@ default['openstack']['compute']['identity_service_chef_role'] = 'os-identity'
25# Disallow non-encrypted connections 25# Disallow non-encrypted connections
26default['openstack']['compute']['service_role'] = 'admin' 26default['openstack']['compute']['service_role'] = 'admin'
27 27
28case platform_family 28case node['platform_family']
29when 'rhel', 'debian' 29when 'rhel', 'debian'
30 default['openstack']['compute']['user'] = 'nova' 30 default['openstack']['compute']['user'] = 'nova'
31 default['openstack']['compute']['group'] = 'nova' 31 default['openstack']['compute']['group'] = 'nova'
@@ -135,7 +135,7 @@ default['openstack']['placement']['ssl']['protocol'] = ''
135default['openstack']['placement']['ssl']['ciphers'] = '' 135default['openstack']['placement']['ssl']['ciphers'] = ''
136 136
137# Platform specific settings 137# Platform specific settings
138case platform_family 138case node['platform_family']
139when 'rhel' # :pragma-foodcritic: ~FC024 - won't fix this 139when 'rhel' # :pragma-foodcritic: ~FC024 - won't fix this
140 default['openstack']['compute']['platform'] = { 140 default['openstack']['compute']['platform'] = {
141 'api_os_compute_packages' => ['openstack-nova-api'], 141 'api_os_compute_packages' => ['openstack-nova-api'],