Skip to content

Commit

Permalink
Allow custom mount point permissions (Fixes wwkimball#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
uoe-pjackson committed Jan 31, 2022
1 parent 123bf0d commit b68c211
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ sshfs::server::share_user_id: *common_account_id
sshfs::client::extra_mount_options: x-systemd.automount,_netdev
sshfs::client::fstype: fuse.sshfs
sshfs::client::local_mount_point: /mnt/sshfs
sshfs::client::local_mount_point_mode: '0775'
sshfs::client::local_share_group_ensure: present
sshfs::client::local_share_group_id: *common_account_id
sshfs::client::local_share_group_name: *common_account_name
Expand Down
1 change: 1 addition & 0 deletions manifests/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
String[1] $extra_mount_options,
String[4] $fstype,
Stdlib::Unixpath $local_mount_point,
String[4] $local_mount_point_mode,
Enum['present', 'absent'] $local_share_group_ensure,
Variant[Integer, String] $local_share_group_id,
String[2] $local_share_group_name,
Expand Down
2 changes: 1 addition & 1 deletion manifests/client/mount.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ensure => directory,
owner => $sshfs::client::local_share_user_name,
group => $sshfs::client::local_share_group_name,
mode => '0775',
mode => $sshfs::client::local_mount_point_mode,
} -> mount { $sshfs::client::local_mount_point:
ensure => mounted,
atboot => true,
Expand Down

0 comments on commit b68c211

Please sign in to comment.