Don't copy gnocchi_resources.yaml for RHEL

RDO provides a sane copy of this file and it's causing issues on RHEL platforms.

Change-Id: Ia75850fd53829593d556e1e3fb1650f8ad919415
Signed-off-by: Lance Albertson <lance@osuosl.org>
This commit is contained in:
Lance Albertson 2019-10-23 15:33:52 -07:00
parent e0a39ccaf1
commit ec8989cfca
2 changed files with 24 additions and 0 deletions

View File

@ -63,6 +63,7 @@ cookbook_file File.join(node['openstack']['telemetry']['conf_dir'], 'gnocchi_res
owner node['openstack']['telemetry']['user']
group node['openstack']['telemetry']['group']
mode 0o0640
only_if { node['platform'] == 'ubuntu' }
end
# drop api-paste.ini to gnocchi folder (default ini will not use keystone auth)

View File

@ -0,0 +1,23 @@
# encoding: UTF-8
require_relative 'spec_helper'
describe 'openstack-telemetry::gnocchi_configure' do
describe 'rhel' do
let(:runner) { ChefSpec::SoloRunner.new(REDHAT_OPTS) }
let(:node) { runner.node }
let(:chef_run) { runner.converge(described_recipe) }
include_context 'telemetry-stubs'
it do
expect(chef_run).to_not create_cookbook_file('/etc/ceilometer/gnocchi_resources.yaml')
.with(
source: 'gnocchi_resources.yaml',
owner: 'ceilometer',
group: 'ceilometer',
mode: 0o0640
)
end
end
end