diff --git a/manifests/xfs.pp b/manifests/xfs.pp index 9a7ddb8b..86d19fc6 100644 --- a/manifests/xfs.pp +++ b/manifests/xfs.pp @@ -2,14 +2,8 @@ # package dependencies for creating # xfs partitions class swift::xfs { - if !defined(Package['xfsprogs']){ - package { 'xfsprogs': - ensure => present - } - } - if !defined(Package['parted']){ - package { 'parted': - ensure => present - } - } + + $packages = ['xfsprogs', 'parted'] + ensure_packages($packages) + }