Improve readability of swift::xfs

Improve readability of swift::xfs using ensure_packages
from the stdlib.

Change-Id: I9550c6e9415e49b5363e21c73c935390c3a635e3
This commit is contained in:
Yanis Guenane 2014-05-22 09:41:27 -04:00
parent 9226b03b06
commit 281e111e58

View File

@ -2,14 +2,8 @@
# package dependencies for creating # package dependencies for creating
# xfs partitions # xfs partitions
class swift::xfs { class swift::xfs {
if !defined(Package['xfsprogs']){
package { 'xfsprogs': $packages = ['xfsprogs', 'parted']
ensure => present ensure_packages($packages)
}
}
if !defined(Package['parted']){
package { 'parted':
ensure => present
}
}
} }