Skip to content

Commit 279bd18

Browse files
author
John Jarvis
committed
Looking up bucket in hiera, changing cache directory
Changing mount options
1 parent 3b18b60 commit 279bd18

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

manifests/mount.pp

+8-7
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,26 @@
4040
# }
4141
#
4242
define s3fs::mount (
43-
$bucket,
44-
$mount_point,
43+
$bucket = hiera('drupal::s3fs_bucket', 'drupal-stage'),
44+
$mount_point = hiera('drupal::s3fs_mount', '/opt/wwc/drupal-s3-files'),
4545
$ensure = 'present',
46-
$s3url = 'https://s3.amazonaws.com',
4746
$default_acl = 'private',
4847
$uid = '0',
4948
$gid = '0',
5049
$mode = '0660',
5150
$atboot = 'true',
52-
$device = "s3fs#${bucket}",
5351
$fstype = 'fuse',
5452
$remounts = 'false',
55-
$cache = '/tmp/aws_s3_cache'
53+
$cache = '/mnt/aws_s3_cache',
54+
$group = 'www-data',
55+
$owner = 'root',
5656
) {
5757

5858
Class['s3fs'] -> S3fs::Mount["${name}"]
5959

6060
# Declare this here, otherwise, uid, guid, etc.. are not initialized in the correct order.
61-
$options = "allow_other,uid=${uid},gid=${gid},default_acl=${default_acl},use_cache=${cache},url=${s3url}"
61+
$options = "allow_other,uid=${uid},gid=${gid},default_acl=${default_acl},use_cache=${cache}"
62+
$device = "s3fs#${bucket}"
6263

6364
case $ensure {
6465
present, defined, unmounted, mounted: {
@@ -84,7 +85,7 @@
8485
}
8586

8687
mount{ $mount_point:
87-
ensure => $ensure,
88+
ensure => mounted,
8889
atboot => $atboot,
8990
device => $device,
9091
fstype => $fstype,

0 commit comments

Comments
 (0)