Merge "Add libguestfs-tools package to nova utilities"
This commit is contained in:
commit
75b9fbea27
@ -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'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user