[chef] How to format a volume and mount after using aws_ebs_volume


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] How to format a volume and mount after using aws_ebs_volume
  • Date: Sat, 22 Jun 2013 12:24:25 +0800

Hi,
I used the below to attach a volume to an ec2 isntances.


aws_ebs_volume "db_ebs_volume" do
  aws_access_key aws['aws_access_key_id']
  aws_secret_access_key aws['aws_secret_access_key']
  size 50
  device "/dev/sdi"
  action [ :create, :attach ]
end

I need to now format the volume
create a directory called /data
then mount the the volume with the /data directory.

What is the best chefonic method to achive this is a recipe?

Thanks



Archive powered by MHonArc 2.6.16.

§