diff --git a/.fixtures.yml b/.fixtures.yml index 73c6493f..eef120ad 100644 --- a/.fixtures.yml +++ b/.fixtures.yml @@ -11,5 +11,6 @@ fixtures: repo: "https://github.com/puppetlabs/puppetlabs-mount_core.git" puppet_version: ">= 6.0.0" transition: "https://github.com/puppetlabs/puppetlabs-transition.git" + filepath: "https://github.com/EdgeJ/puppet-filepath.git" symlinks: "nfs": "#{source_dir}" diff --git a/manifests/functions/create_export.pp b/manifests/functions/create_export.pp index a36cb76d..585fa10c 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, - owner => $owner, - group => $group, - mode => $mode, - selinux_ignore_defaults => true, + filepath { $name: + ensure => present, + owner => $owner, + group => $group, + mode => $mode, } } } diff --git a/metadata.json b/metadata.json index 0b34eb4e..45031166 100644 --- a/metadata.json +++ b/metadata.json @@ -12,7 +12,8 @@ {"name":"puppetlabs/concat","version_requirement":">= 1.1.2 < 8.0.0"}, {"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":"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": [