Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
9 changes: 8 additions & 1 deletion recipes/volumes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down