I successfully implement autofs to automatically mount s3 bucket to the server which running ubuntu server 14.04.5 by following this tutorials. but the number of bucket (that needs to automatically mounted) is dynamic, means its can be increase or decrease. so far I need to add/remove rule in autofs config whenever the bucket number changed.
the option command for mount those bucket is same. only path and bucket name that have difference. here is my configuration :
+auto.master /- /etc/auto.s3bucket --timeout=30
[mount-point-bucket1] -fstype=fuse,uid,gid,etc,etc :[tool-mounting]#bucket1 [mount-point-bucket2] -fstype=fuse,uid,gid,etc,etc :[tool-mounting]#bucket2 ..... [mount-point-bucketX] -fstype=fuse,uid,gid,etc,etc :[tool-mounting]#bucketX
my question : Is there a built-in script or function in autofs to dynamically add or remove rule in the file configuration?. so I don't need to re-config whenever the bucket is decrease or increase.