gp2 volumes with ec2_vol

139 views
Skip to first unread message

Yves Dorfsman

unread,
Nov 13, 2014, 3:43:50 PM11/13/14
to ansible...@googlegroups.com

Is it possible to provision gp2 volume (new SSD standard) with ec2_vol?
If so, what's the syntax?

Thanks.

--
Yves.

Yves Dorfsman

unread,
Nov 13, 2014, 4:40:05 PM11/13/14
to ansible...@googlegroups.com

We managed to get them created as gp2, with the "ec2" module, looks like the "ec2_vol" module cannot do that.

Now, next issue: How can you tag volumes created via the "ec2" module (with "ec2_vol", you could register the volumes, then tag them, but I can't seem to be able to register volumes with the "ec2" module) ??

Ehtesh Choudhury

unread,
Nov 13, 2014, 6:00:31 PM11/13/14
to ansible...@googlegroups.com
Could you show an example of how you set up the gp2 partitions with the ec2 module? Of the top of my head, I don't remember being able to configure EBS volumes from the ec2 module.

On Thu, Nov 13, 2014 at 4:40 PM, Yves Dorfsman <yv...@zioup.com> wrote:

We managed to get them created as gp2, with the "ec2" module, looks like the "ec2_vol" module cannot do that.

Now, next issue: How can you tag volumes created via the "ec2" module (with "ec2_vol", you could register the volumes, then tag them, but I can't seem to be able to register volumes with the "ec2" module) ??

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/85fdee69-bd61-43ad-b36d-58afcbd640d2%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Yves Dorfsman

unread,
Nov 14, 2014, 6:09:30 PM11/14/14
to ansible...@googlegroups.com

New in version 1.5  according to the documentation:

http://docs.ansible.com/ec2_module.html

I wish it were better documented though, it's not clear which key you can use in a given volume dictionary. Here is one of the example from the page, which we followed, it worked, but as mentionned, we haven't managed to set a label (name) on the volume:


local_action:
    module: ec2
    key_name: mykey
    group: webserver
    instance_type: m1.large
    image: ami-6e649707
    wait: yes
    wait_timeout: 500
    volumes:
    - device_name: /dev/sdb
      snapshot: snap-abcdef12
      device_type: io1
      iops: 1000
      volume_size: 100
      delete_on_termination: true



Michael DeHaan

unread,
Nov 17, 2014, 3:58:57 PM11/17/14
to ansible...@googlegroups.com
Pull requests to enhance docs would be welcome - we're staging a hackfest to provide some better tutorials soon, but to some extent what keys are valid is a function of which Boto libraries you have.

So mostly it's showing examples

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages