From 8342be50e4cfe6adf28282a12fcc8a4af7a0e9d3 Mon Sep 17 00:00:00 2001 From: Brian Schonecker Date: Wed, 9 Aug 2023 08:04:32 -0400 Subject: [PATCH] Use edge-filepath module to create parent directories for NFS exports. --- manifests/functions/create_export.pp | 5 ++--- metadata.json | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/functions/create_export.pp b/manifests/functions/create_export.pp index a36cb76d..4ba5f740 100644 --- a/manifests/functions/create_export.pp +++ b/manifests/functions/create_export.pp @@ -50,12 +50,11 @@ } unless defined(File[$name]) { - file { $name: - ensure => directory, + filepath { $name: + ensure => present, owner => $owner, group => $group, mode => $mode, - selinux_ignore_defaults => true, } } } diff --git a/metadata.json b/metadata.json index 0b34eb4e..66c245be 100644 --- a/metadata.json +++ b/metadata.json @@ -13,6 +13,7 @@ {"name":"puppetlabs/transition","version_requirement":">= 0.1.0 < 2.0.0"}, {"name":"puppet/augeasproviders_core","version_requirement":">= 2.1.5 < 4.0.0"}, {"name":"puppet/augeasproviders_shellvar","version_requirement":">= 1.2.0 <= 5.0.0"} + {"name":"edgej-filepath","version_requirement":">= 1.0.0"} ], "tags": ["nfs", "nfs4", "exports", "mount", "mfc"], "operatingsystem_support": [