diff --git a/data/defaults.yaml b/data/defaults.yaml index b28bfc5..d8751c0 100644 --- a/data/defaults.yaml +++ b/data/defaults.yaml @@ -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 diff --git a/manifests/client.pp b/manifests/client.pp index 14c4011..645b0b7 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -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, diff --git a/manifests/client/mount.pp b/manifests/client/mount.pp index f4b7862..624402d 100644 --- a/manifests/client/mount.pp +++ b/manifests/client/mount.pp @@ -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,