Commit graph

23 commits

Author SHA1 Message Date
willthames
7d24940d74 Allow state=absent for ec2_vol
Add methods to the module to make it more readable and allow reuse
2014-03-21 22:10:55 +10:00
James Tanner
e7ea748f0f Update docstrings in ec2_vol 2014-03-11 12:02:04 -04:00
jctanner
3945dab508 Merge pull request #5287 from ebrevdo/ec2_vol_existing
ec2_vol module: add support for name / id to mount volume on instance
2014-03-11 11:58:36 -04:00
James Cammarata
789a2915d1 Updating profile/security_token version_added labels 2014-03-11 10:48:16 -05:00
Will Thames
7d0e161662 Work to allow security tokens and profiles to work with Ansible
Allow security tokens and profiles to be used as arguments
to the 'common' ec2 modules

Mostly refactoring to provide two new methods,
`get_aws_connection_info`, which results in a dict that can be
passed through to the boto `connect_to_region` calls, and
`connect_to_aws` that can pass that dict through to the
`connect_to_region` method of the appropriate module.

Tidied up some variable names

Works around boto/boto#2100

profiles don't work with boto < 2.24, but this detects for that
and fails with an appropriate message. It is designed to work
if profile is not passed but boto < 2.24 is installed.

Modifications to allow empty aws auth variables to be passed
(this is useful if wanting to have the keys as an optional
parameter in ec2 calls - if set, use this value, if not set,
use boto config or env variables)

Reworked validate_certs improvements to work with refactoring

Added documentation for profile and security_token to affected modules
2014-03-06 16:28:30 +10:00
Eugene Brevdo
a63d40d2e9 Tiny bugfix in ec2_vol documentation. 2014-02-28 11:56:42 -08:00
James Cammarata
24759f566c Adding 'validate_certs' option to EC2 modules
When disabled, the boto connection will be instantiated without validating
the SSL certificate from the target endpoint. This allows the modules to connect
to Eucalyptus instances running with self-signed certs without errors.

Fixes #3978
2014-02-13 12:32:49 -06:00
Will Thames
f92e4605ab Create a common EC2 connection argument spec for EC2 modules
Refactor the currently well-factored ec2 modules (i.e. those that already use ec2_connect) to
have a common argument spec. The idea is that new modules can use this spec without duplication
of code, and that new functionality can be added to the ec2 connection code (e.g. security
token argument)
2014-02-06 15:27:41 +10:00
Eugene Brevdo
6ef3fab1fd ec2_vol supports name / id to mount volume on instance
* volume_size no longer required if name/id are provided
* id is volume-id
* name is volume Name tag
* special checking is provided
2014-01-30 10:27:40 -08:00
James Tanner
98ff0f500e Add ec2_vol snapshot example from #4189 2014-01-28 09:58:13 -05:00
willthames
d0540b0426 Added ability to create EC2 volume from snapshot
ec2_vol module now takes optional snapshot argument
Added relevant module argument handler and documentation
2014-01-09 14:40:01 +10:00
willthames
74f9f91abf Move more responsibility to common EC2 module
Moved `AWS_REGIONS` into `ec2` module
Created `ec2_connect` method in `ec2` module
Updated modules able to use `ec2_connect` and `AWS_REGIONS`
2013-12-17 14:07:24 +10:00
Michael DeHaan
2dd59c87a4 Merge pull request #4770 from dragon3/devel
ec2_vol: return volume_id/device even when volume mapping already exists
2013-11-01 09:32:54 -07:00
James Tanner
0a5adda059 Fixes #4540 Use shared module snippet to evaluate ec2 credentials 2013-11-01 11:59:24 -04:00
dragon3
2d857c9c44 return volume_id/device even when volume mapping already exists 2013-11-01 23:59:42 +09:00
Bruce Pennypacker
11470fea04 Rebase attempt
No idea if I'm rebasing properly or not.  This is my first attempt.
2013-08-20 15:14:16 -04:00
Michael DeHaan
529e78be01 Smite tabs in whitespace. 2013-08-10 17:58:03 -04:00
Michael DeHaan
e892450031 add version_added attribute to module docs. 2013-08-06 15:54:20 -04:00
Ben Podoll
279aab42c5 adding param to allow for specifying custom iops setting when creating an EBS volume 2013-08-02 11:31:31 -05:00
Michael DeHaan
957d0a79c0 Legacy variable usage removed. 2013-07-19 09:40:53 -04:00
Jan-Piet Mens
98c1423269 Docs: consistently format playbook EXAMPLES 2013-06-17 08:53:46 +02:00
Michael DeHaan
08abd9cb07 ec2_vol fixes for 'make pep8' 2013-05-11 17:20:38 -04:00
Michael DeHaan
cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 2013-04-28 15:03:45 -04:00
Renamed from ec2_vol (Browse further)