Ask Your Question

Create and attach EBS using puppet

asked 2017-04-03 06:30:03 -0600

ChetAn P gravatar image

Is there any to create EBS volume and attach that volume to that instance ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-03 07:58:22 -0600

DarylW gravatar image

We wrote a in-house module to connect an EBS volume, but it basically is just a module that wraps a bash script that verifies that the expected volume is available, unattached, and then attaches it to the system. The exec that calls the bash script has an onlyif call to verify that said volume isn't already attached. We also created our EBS volumes in cloudformation, so puppet was only concerned with attaching said volume.

I don't know of anything 'off the shelf' to do what you are asking for. If you wish to create instances and volumes, I believe that the module can do that.. I know it can create EBS volumes on instances, but I'm not sure if it has it's own standalone EBS type.

edit flag offensive delete link more


Thanks...We are working on Opensource puppet so what we are thinking like 1. Create instance with Default configuration 2. Attach 100 GB EBS voulme to that instance and then attach, format, mount through Puppet. Can you please share your code here ?

ChetAn P gravatar imageChetAn P ( 2017-04-03 13:52:09 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-04-03 06:30:03 -0600

Seen: 184 times

Last updated: Apr 03 '17