fix libvirtd service naming and env file for debian

Change-Id: I6a69e3ad43936d032ac252d8a6c9a1d2bc78bfbd
This commit is contained in:
Jan Klare 2018-04-16 15:11:30 +02:00
parent 2434b03f7d
commit 8ed820e319
No known key found for this signature in database
GPG Key ID: 1F8C347A7DC77FD2
2 changed files with 8 additions and 4 deletions

View File

@ -135,7 +135,11 @@ template '/etc/libvirt/libvirtd.conf' do
notifies :restart, 'service[libvirt-bin]', :immediately
end
template '/etc/default/libvirt-bin' do
# The package libvirt-bin on debian now provides the service libvirtd
# (libvirt-bin is still defined as an alias) and reads its environment from
# /etc/libvirt/libvirtd instead of the previously used
# /etc/default/libvirt-bin.
template '/etc/default/libvirtd' do
source 'libvirt-bin.erb'
owner 'root'
group 'root'

View File

@ -70,10 +70,10 @@ describe 'openstack-compute::libvirt' do
end
end
describe '/etc/default/libvirt-bin' do
let(:file) { chef_run.template('/etc/default/libvirt-bin') }
describe '/etc/default/libvirtd' do
let(:file) { chef_run.template('/etc/default/libvirtd') }
it 'creates the /etc/default/libvirt-bin file' do
it 'creates the /etc/default/libvirtd file' do
expect(chef_run).to create_template(file.name).with(
owner: 'root',
group: 'root',