Skip to content

Commit

Permalink
Use edge-filepath module to create parent directories for NFS exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
bschonec committed May 20, 2024
1 parent b04915d commit 1a02fb3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
11 changes: 5 additions & 6 deletions manifests/functions/create_export.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 1a02fb3

Please sign in to comment.