Attach existing ebs volumes...

4 views
Skip to first unread message

Matt Petty

unread,
Jul 15, 2009, 3:35:36 PM7/15/09
to rudy-de...@googlegroups.com
Hi,

I have a lot of pretty basic questions regarding rudy, but I'll start with: 

How do I attach existing EBS volumes?  

Thanks,
Matt

Delano Mandelbaum

unread,
Jul 17, 2009, 11:34:16 AM7/17/09
to Rudy Deployment
> How do I attach existing EBS volumes?

There's been a tonne of work on the development branch for 0.9. Right
now, the Ruby objects for machines, disks, and backups are completely
removed so our best bet is to wait for that work before adding other
features related to metadata for this version. (Here's the change log
for 0.9 in case you're interested: http://github.com/solutious/rudy/blob/metadata-refactor/CHANGES.txt
)

If you're interested in adding support to 0.8, these are the objects
responsible for defining the content of the SimpleDB records:
http://github.com/solutious/rudy/blob/master/lib/rudy/metadata/disk.rb
http://github.com/solutious/rudy/blob/master/lib/rudy/metadata/backup.rb
http://github.com/solutious/rudy/blob/master/lib/rudy/machines.rb

The common functionality for these objects is defined in:
http://github.com/solutious/rudy/blob/master/lib/rudy/metadata/objectbase.rb

All of the attributes defined by the "field" class method are stored
to SimpleDB. The name method (e.g. Disk#name) provides the SimpleDB
key name. You'll need to create an instance of Disk, populate the
attributes with information from an existing volume, and then call
Disk#save.

The Disk, Backup, and Machine objects use an instance of
Rudy::AWS::EC2::Volumes for accessing the EC2 API. The instance is
stored in @rvol.

RDocs are here:
http://solutious.com/rudy/

Delano

Reply all
Reply to author
Forward
0 new messages