diff --git a/README.md b/README.md index 1caacd3..3285a46 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,8 @@ Create a 10GB volume with 1000 provisioned iops, format it with XFS, and mount i `mount_options` are optional and will default to `noatime,nobootwait` on all platforms except Amazon linux, where they will default to `noatime`. +`pass` The pass number used by the file system check (fsck) command while creating a file systems table (fstab) entry. Optional property (Default: 2). + ## Credentials Expects a `credentials` databag with an `aws` item that contains `aws_access_key_id` and `aws_secret_access_key`. diff --git a/recipes/volumes.rb b/recipes/volumes.rb index efb2d1f..21ae48e 100644 --- a/recipes/volumes.rb +++ b/recipes/volumes.rb @@ -53,7 +53,14 @@ mount mount_point do fstype options[:fstype] device device - options 'noatime,nobootwait' + unless options[:mount_options] + options 'noatime,nobootwait' + else + options options[:mount_options] + end + if options[:pass] + pass options[:pass] + end action [:mount, :enable] end