Merge "Add libguestfs-tools package to nova utilities"

This commit is contained in:
Jenkins 2014-02-10 18:50:04 +00:00 committed by Gerrit Code Review
commit 75b9fbea27
2 changed files with 14 additions and 1 deletions

View File

@ -1,9 +1,21 @@
# == Class nova::utilities # == Class nova::utilities
# #
# Extra packages used by nova tools # Extra packages used by nova tools
# unzip swig screen parted curl euca2ools - extra packages # unzip swig screen parted curl euca2ools libguestfs-tools - extra packages
class nova::utilities { class nova::utilities {
if $::osfamily == 'Debian' { if $::osfamily == 'Debian' {
ensure_packages(['unzip', 'screen', 'parted', 'curl', 'euca2ools']) ensure_packages(['unzip', 'screen', 'parted', 'curl', 'euca2ools'])
package {'libguestfs-tools':
ensure => present,
responsefile => '/var/run/guestfs.seed',
require => File['guestfs.seed']
}
file {'guestfs.seed':
ensure => present,
path => '/var/run/guestfs.seed',
content => 'libguestfs0 libguestfs/update-appliance boolean true'
}
} }
} }

View File

@ -13,6 +13,7 @@ describe 'nova::utilities' do
should contain_package('parted').with_ensure('present') should contain_package('parted').with_ensure('present')
should contain_package('curl').with_ensure('present') should contain_package('curl').with_ensure('present')
should contain_package('euca2ools').with_ensure('present') should contain_package('euca2ools').with_ensure('present')
should contain_package('libguestfs-tools').with_ensure('present')
end end
end end
end end