fix libvirtd service naming and env file for debian
Change-Id: I6a69e3ad43936d032ac252d8a6c9a1d2bc78bfbd
This commit is contained in:
parent
2434b03f7d
commit
8ed820e319
|
@ -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'
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue