Filippo Giunchedi has submitted this change and it was merged. Change subject: swift: define ${mount_base} ......................................................................
swift: define ${mount_base} Change-Id: Ifc615f8d28031e17282bcc8f99413aae2a8b143b --- M manifests/swift.pp 1 file changed, 4 insertions(+), 1 deletion(-) Approvals: Filippo Giunchedi: Verified; Looks good to me, approved diff --git a/manifests/swift.pp b/manifests/swift.pp index fc19ba9..974b1d4 100644 --- a/manifests/swift.pp +++ b/manifests/swift.pp @@ -424,9 +424,12 @@ # Parameters: # - $title: # The device to mount (e.g. /dev/sdc1) -define swift::mount_filesystem() { +define swift::mount_filesystem( + $mount_base = '/srv/swift-storage', +){ $dev = $title $dev_suffix = regsubst($dev, '^\/dev\/(.*)$', '\1') + $mount_point = "${mount_base}/${dev_suffix}" file { "mountpoint-${mount_point}": -- To view, visit https://gerrit.wikimedia.org/r/232500 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ifc615f8d28031e17282bcc8f99413aae2a8b143b Gerrit-PatchSet: 2 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits