Improve readability of swift::xfs
Improve readability of swift::xfs using ensure_packages from the stdlib. Change-Id: I9550c6e9415e49b5363e21c73c935390c3a635e3
This commit is contained in:
parent
9226b03b06
commit
281e111e58
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user