Create and attach EBS using puppet
Is there any to create EBS volume and attach that volume to that instance ?
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 https://forge.puppet.com/puppetlabs/aws 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.
Asked: 2017-04-03 06:30:03 -0500
Seen: 25 times
Last updated: Apr 03