Commit graph

24 commits

Author SHA1 Message Date
willthames
d1a7fca7f3 Moved AWS modules over to common module fragments
Created common module doc fragment, and applied to all
modules that use ec2_connect or connect_to_aws as
they definitely share the common doc fragments
2014-04-09 21:19:12 +10:00
Richard C Isaacson
d944ba409a Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 15:44:34 -05:00
James Cammarata
325e1c7a93 Renaming reuse parameter in ec2_eip and adding a version_added string 2014-03-11 11:12:23 -05:00
James Cammarata
79758c9814 Merge branch 'ec2-eip-reuse' of https://github.com/silkapp/ansible into silkapp-ec2-eip-reuse 2014-03-11 11:09:26 -05: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
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
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
Thomas van Noort
857241f2a0 Allow for reuse of allocated but unassociated Elastic IPs. 2013-11-15 10:14:13 +01:00
Mohan Krishnan
2232b9ce6a Fix for connect method parameter order 2013-11-03 14:48:35 +07:00
Mohan Krishnan
6ab967ef9f ec2_eip connect method references module var that is not passed in 2013-11-03 05:18:27 +07:00
James Tanner
0a5adda059 Fixes #4540 Use shared module snippet to evaluate ec2 credentials 2013-11-01 11:59:24 -04:00
James Tanner
664c4839eb Set version_added for ec2_eip's in_vpc parameter 2013-10-24 12:19:43 -04:00
Peter Sankauskas
27fa111c4d Now this disassociates EIPs from instances inside a VPC correctly. Time
for a PR.
2013-10-18 15:12:49 -07:00
Peter Sankauskas
9f279618fe First round of changes to the EIP module to get it to be able to work well inside a VPC, and to be able to delete EIPs as well 2013-10-18 14:38:58 -07:00
Michael DeHaan
b391872781 Merge pull request #4330 from tgerla/ec2_eip-docs
ec2_eip module: note that there may be a delay reaching the instance
2013-10-01 15:12:07 -07:00
Tim Gerla
1eef27294a ec2_eip module: note that there may be a delay before the reassigned instance is reachble. 2013-10-01 14:50:06 -07:00
James Tanner
550b1a8ee0 typo in ec2_eip docstring 2013-10-01 16:58:35 -04:00
James Cammarata
6eec6f776e More housekeeping
* Modified version_added strings in recent modules
* Added firewalld inclusion to the CHANGELOG
2013-09-21 01:06:34 -05:00
James Cammarata
1d1bf7ba81 Minor pep8 cleanup in ec2_eip module 2013-09-21 00:45:27 -05:00
Lorin Hochstein
840da0aaa0 AWS elastic IP: Support for allocating IPs
This commit adds support for allocating new elastic IPs with the
ec2_eip module.
2013-09-12 21:11:24 -04:00
Lorin Hochstein
703d50212a Fix typo: alises -> aliases 2013-08-08 10:14:08 -04:00
Lorin Hochstein
1fd7eca5fb Add AWS EC2 elastic IP module
Adds a new AWS EC2 module to associate/disassociate instances and
elastic IP addresses.
2013-08-07 15:41:16 -04:00