From 79f7f3be016c172ee6bca30eb72d9546049efcf2 Mon Sep 17 00:00:00 2001 From: Pradeep Kilambi Date: Mon, 3 Feb 2014 10:55:02 -0500 Subject: [PATCH] Add libguestfs-tools package to nova utilities Include libguestfs-tools package as part of nova utilities class and update spec tests. This package provides library and tools for managing virtual disks such as guestmount which are useful for nova-compute. Change-Id: Ie63b1417b5d9f584a23baa52f26efc3ff71b8785 --- manifests/utilities.pp | 14 +++++++++++++- spec/classes/nova_utilities_spec.rb | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/manifests/utilities.pp b/manifests/utilities.pp index 9c5dcffa5..04e817362 100644 --- a/manifests/utilities.pp +++ b/manifests/utilities.pp @@ -1,9 +1,21 @@ # == Class nova::utilities # # 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 { if $::osfamily == 'Debian' { 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' + } } } diff --git a/spec/classes/nova_utilities_spec.rb b/spec/classes/nova_utilities_spec.rb index a773e36f7..52d722d6a 100644 --- a/spec/classes/nova_utilities_spec.rb +++ b/spec/classes/nova_utilities_spec.rb @@ -13,6 +13,7 @@ describe 'nova::utilities' do should contain_package('parted').with_ensure('present') should contain_package('curl').with_ensure('present') should contain_package('euca2ools').with_ensure('present') + should contain_package('libguestfs-tools').with_ensure('present') end end end