enable libvirt at boot

When using libvirt driver, we need to ensure that libvirt service is
actually enabled at boot.

Change-Id: Ie3198010ca8cfbe515d4e99e2662330f6ac29290
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi
2014-02-24 15:17:16 +01:00
parent 286ebe0bf3
commit 66ef747a29
2 changed files with 10 additions and 6 deletions

View File

@@ -69,6 +69,7 @@ class nova::compute::libvirt (
service { 'libvirt' :
ensure => running,
enable => true,
name => $::nova::params::libvirt_service_name,
provider => $::nova::params::special_service_provider,
require => Package['libvirt'],

View File

@@ -26,6 +26,7 @@ describe 'nova::compute::libvirt' do
it { should contain_service('libvirt').with(
:name => 'libvirt-bin',
:enable => true,
:ensure => 'running',
:provider => 'upstart',
:require => 'Package[libvirt]',
@@ -98,6 +99,7 @@ describe 'nova::compute::libvirt' do
it { should contain_service('libvirt').with(
:name => 'libvirtd',
:enable => true,
:ensure => 'running',
:provider => 'init',
:require => 'Package[libvirt]',
@@ -172,6 +174,7 @@ describe 'nova::compute::libvirt' do
it { should contain_service('libvirt').with(
:name => 'libvirtd',
:enable => true,
:ensure => 'running',
:provider => nil,
:require => 'Package[libvirt]',