Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to not to create mountdir into mount.pp #1

Merged
merged 1 commit into from
Oct 16, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions manifests/mount.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
$shorewall = false,
$owner = '', # mount owner
$group = '', # mount group
$manage_mount_directory = true # enable/disable creation of directory to mount into
) {
include gluster::params

Expand Down Expand Up @@ -138,19 +139,21 @@
}

# make an empty directory for the mount point
file { "${long_name}": # ensure a trailing slash
ensure => directory, # make sure this is a directory
recurse => false, # don't recurse into directory
purge => false, # don't purge unmanaged files
force => false, # don't purge subdirs and links
alias => "${short_name}", # don't allow duplicates name's
owner => "${owner}" ? { # make sure owner is undef if not specified
'' => undef,
default => $owner,
},
group => "${group}" ? { # make sure group is undef if not specified
'' => undef,
default => $group,
if $manage_mount_directory {
file { "${long_name}": # ensure a trailing slash
ensure => directory, # make sure this is a directory
recurse => false, # don't recurse into directory
purge => false, # don't purge unmanaged files
force => false, # don't purge subdirs and links
alias => "${short_name}", # don't allow duplicates name's
owner => "${owner}" ? { # make sure owner is undef if not specified
'' => undef,
default => $owner,
},
group => "${group}" ? { # make sure group is undef if not specified
'' => undef,
default => $group,
}
}
}

Expand Down