From 02d168d5492ef2639407423e71c72b5cf639e129 Mon Sep 17 00:00:00 2001 From: Kam Lane Date: Wed, 6 Feb 2019 21:50:57 -0600 Subject: [PATCH 1/2] The Mount resource default statement is dependent on a resource not managed by the module; the exec statement at the bottom of logical_volume doesn't consistently execute on puppetserver 4.10 --- manifests/logical_volume.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/logical_volume.pp b/manifests/logical_volume.pp index bd50a3f8..f330110e 100644 --- a/manifests/logical_volume.pp +++ b/manifests/logical_volume.pp @@ -33,6 +33,11 @@ $lvm_device_path = "/dev/${volume_group}/${name}" if $mountpath_require and $fs_type != 'swap' { + file { $mountpath: + ensure => directory, + before => Mount[$mountpath], + } + Mount { require => File[$mountpath], } From 530f7922ef053a84e539962483897656c2168a30 Mon Sep 17 00:00:00 2001 From: "Cameron \"Kam\" Lane" Date: Fri, 4 Jun 2021 21:41:53 -0500 Subject: [PATCH 2/2] Removed unnecessary spaces --- manifests/logical_volume.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/logical_volume.pp b/manifests/logical_volume.pp index f330110e..16b75c26 100644 --- a/manifests/logical_volume.pp +++ b/manifests/logical_volume.pp @@ -34,8 +34,8 @@ if $mountpath_require and $fs_type != 'swap' { file { $mountpath: - ensure => directory, - before => Mount[$mountpath], + ensure => directory, + before => Mount[$mountpath], } Mount {