Commit Graph

28 Commits (bb8bac490a1b4f1ac4b8e6c718057ad11726be62)

Author SHA1 Message Date
Alexey Wasilyev 6bd986b80e Fix for #8344 10 years ago
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.
10 years ago
James Cammarata 6e2c35c65c Minor indentation fixes on ec2_eip 10 years ago
James Martin c3d42d0488 Fixes #8290. 10 years ago
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
11 years ago
Richard C Isaacson d944ba409a Bulk update of choices=BOOLEANS to type='bool' 11 years ago
James Cammarata 325e1c7a93 Renaming reuse parameter in ec2_eip and adding a version_added string 11 years ago
James Cammarata 79758c9814 Merge branch 'ec2-eip-reuse' of https://github.com/silkapp/ansible into silkapp-ec2-eip-reuse 11 years ago
James Cammarata 789a2915d1 Updating profile/security_token version_added labels 11 years ago
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
11 years ago
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
11 years ago
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)
11 years ago
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`
11 years ago
Thomas van Noort 857241f2a0 Allow for reuse of allocated but unassociated Elastic IPs. 11 years ago
Mohan Krishnan 2232b9ce6a Fix for connect method parameter order 11 years ago
Mohan Krishnan 6ab967ef9f ec2_eip connect method references module var that is not passed in 11 years ago
James Tanner 0a5adda059 Fixes #4540 Use shared module snippet to evaluate ec2 credentials 11 years ago
James Tanner 664c4839eb Set version_added for ec2_eip's in_vpc parameter 11 years ago
Peter Sankauskas 27fa111c4d Now this disassociates EIPs from instances inside a VPC correctly. Time
for a PR.
11 years ago
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 11 years ago
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
11 years ago
Tim Gerla 1eef27294a ec2_eip module: note that there may be a delay before the reassigned instance is reachble. 11 years ago
James Tanner 550b1a8ee0 typo in ec2_eip docstring 11 years ago
James Cammarata 6eec6f776e More housekeeping
* Modified version_added strings in recent modules
* Added firewalld inclusion to the CHANGELOG
11 years ago
James Cammarata 1d1bf7ba81 Minor pep8 cleanup in ec2_eip module 11 years ago
Lorin Hochstein 840da0aaa0 AWS elastic IP: Support for allocating IPs
This commit adds support for allocating new elastic IPs with the
ec2_eip module.
11 years ago
Lorin Hochstein 703d50212a Fix typo: alises -> aliases 11 years ago
Lorin Hochstein 1fd7eca5fb Add AWS EC2 elastic IP module
Adds a new AWS EC2 module to associate/disassociate instances and
elastic IP addresses.
11 years ago