Skip to content

Commit f4c5cbe

Browse files
author
John Jarvis
committed
adding option to set permissions recursively when mounting
1 parent c369836 commit f4c5cbe

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

manifests/mount.pp

+13-12
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@
1111
define s3fs::mount (
1212
$bucket,
1313
$mount_point,
14-
$ensure = 'present',
15-
$default_acl = 'private',
16-
$uid = '0',
17-
$gid = '0',
18-
$mode = '0660',
19-
$atboot = true,
20-
$fstype = 'fuse',
21-
$remounts = false,
22-
$cache = '/mnt/aws_s3_cache',
23-
$group = 'root',
24-
$owner = 'root',
14+
$ensure = 'present',
15+
$default_acl = 'private',
16+
$uid = '0',
17+
$gid = '0',
18+
$mode = '0660',
19+
$atboot = true,
20+
$fstype = 'fuse',
21+
$remounts = false,
22+
$cache = '/mnt/aws_s3_cache',
23+
$group = 'root',
24+
$owner = 'root',
25+
$perm_recurse = true,
2526
) {
2627

2728
Class['s3fs'] -> S3fs::Mount[$name]
@@ -46,7 +47,7 @@
4647
File[$mount_point] -> Mount[$mount_point]
4748

4849
file { $mount_point:
49-
recurse => true,
50+
recurse => $perm_recurse,
5051
ensure => $ensure_dir,
5152
force => true,
5253
owner => $owner,

0 commit comments

Comments
 (0)