Skip to content

Instantly share code, notes, and snippets.

@joelmoss
Created November 27, 2013 12:36
Show Gist options
  • Save joelmoss/7674958 to your computer and use it in GitHub Desktop.
Save joelmoss/7674958 to your computer and use it in GitHub Desktop.
include_recipe 'aws'
# The AWS cookbook requires your AWS access key and secret, so we store these in the `keys/aws`
# encrypted data bag item.
search(:keys, 'id:aws') do |s|
keys = Chef::EncryptedDataBagItem.load('keys', 'aws')
# Mount EBS Raid volumes. See https://github.com/opscode-cookbooks/aws#ebs_raidrb
ebs_raid do
aws_secret_access_key keys['secret_access_key']
aws_access_key keys['access_key_id']
mount_point '/mnt/data'
mount_point_owner node[:fileserver][:rpc][:user]
mount_point_group node[:fileserver][:rpc][:group]
disk_count 4
disk_size 100
disk_type 'io1'
disk_piops 3000
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment