Commit graph

28 commits

Author SHA1 Message Date
Alexey Wasilyev
6bd986b80e Fix for #8344 2014-08-08 18:42:40 +04:00
James Martin
6f5eff0c5a Fixes a regression in 1453f7b013 that would causes unecessary wait_timeouts in certain module operations when a given IP address could not be found. Now wait_timeouts are only active during address associations of newly provisioned EIPs.
Cleanup and comment of main().

s Added wait timeout.
2014-08-04 12:21:28 -07:00
James Cammarata
6e2c35c65c Minor indentation fixes on ec2_eip 2014-07-25 12:41:25 -05:00
James Martin
c3d42d0488 Fixes #8290. 2014-07-25 11:08:49 -04:00
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