Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amazon webservices EBS support missing #64

Open
MauriceSchoenmakers opened this issue Dec 28, 2009 · 1 comment
Open

amazon webservices EBS support missing #64

MauriceSchoenmakers opened this issue Dec 28, 2009 · 1 comment

Comments

@MauriceSchoenmakers
Copy link

creating and mounting EBS volumes (via snapshots) is not yet supported
but needed for real world applications like mysql server.

@bradphelan
Copy link
Contributor

I did it with the aws chef cookbook

   aws_ebs_volume "mysql_data_volume" do
      provider              "aws_ebs_volume"
      aws_access_key        node[:awskeys][:access]
      aws_secret_access_key node[:awskeys][:secret]
      volume_id             node[:apricoserver][:db][:ebs_volume]
      availability_zone     "us-east-1b"
      device                "/dev/sdh"
      action                :attach
    end

You need to put your AWS keys into the cloud though and manually create the volume in the AWS web page. Then you can use the mount resource.

    # This works as long as you have previously formatted
    # the device as ext3 using 
    #
    #   mkfs.ext3 /dev/sdh
    # 
    # Need some magic to do this automatically. 
    #
    #
    mount "/var/local/ebs" do
      device "/dev/sdh"
      options "rw noatime"
      fstype "ext3"
      action [ :enable, :mount ]
      # Do not execute if its already mounted
      not_if "cat /proc/mounts | grep /var/local"
    end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants