Defined Type: swift::label_filesystem
- Defined in:
- modules/swift/manifests/label_filesystem.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'modules/swift/manifests/label_filesystem.pp', line 2
define swift::label_filesystem {
$dev = $title
$dev_suffix = regsubst($dev, '^\/dev\/(.*)$', '\1')
$fs_label = "swift-${dev_suffix}"
exec { "xfs_label-${dev}":
command => "xfs_admin -L ${fs_label} ${dev}",
path => '/usr/sbin:/usr/bin:/sbin:/bin',
require => Package['xfsprogs'],
unless => "xfs_admin -l ${dev} | grep -q swift-sd"
}
}
|