Commit graph

49 commits

Author SHA1 Message Date
James Tanner
eb71120435 Fix start/stop example in ec2 2014-01-27 17:48:42 -05:00
James Tanner
eb4c01caf6 Merge branch 'feat/ec2_start_stop' of git://github.com/Geryon/ansible into Geryon-feat/ec2_start_stop 2014-01-27 17:39:24 -05:00
willthames
205dddfd4c Added the ability to add volumes to instances at creation time
This allows a volume to be cloned from a snapshot, a brand new
volume to be created, or an ephemeral volumes to be associated
at time of instance creation.

This avoids any race conditions associated with creating extra volumes
after instance creation (e.g. writes happening before the volume is
mounted).

In addition, this allows the root volume to be edited
2014-01-25 12:38:41 +10:00
willthames
b884451cb7 keypair is not absolutely required when creating ec2 instances 2014-01-14 09:12: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
Nicholas DeClario
8b5fee61bb Added ability to start and stop existing EC2 instances. 2013-12-12 17:16:59 -05:00
James Tanner
576cd98d62 Merge pull request #4502 from dxsarmit/ansible
New library/cloud/ec2 module parameter (assign_public_ip) for non-default VPC instance launching.
2013-12-02 09:43:20 -05:00
Rob Szewczyk
53e9a422e8 Correcting the security group id lookup from the list of security group names 2013-11-08 17:46:41 -05:00
James Laska
582a32040b Honor wait on ec2 instance termination 2013-11-01 18:57:20 -04:00
James Tanner
0a5adda059 Fixes #4540 Use shared module snippet to evaluate ec2 credentials 2013-11-01 11:59:24 -04:00
Michael DeHaan
b5e5a96d03 Leverage 4318b27 and no longer treat instance tags as JSON, but as dictionary types which could be key=value or dicts or JSON or references. 2013-10-31 18:46:13 -04:00
Scott Armit
957ef6efb3 If an AWS account does not have a default subnet in their VPC configuration, then creating instances in that VPC will not automatically provide a public IP/DNS. Boto added this functionality in 2.13.0 (NetworkInterfaceSpecification.associate_public_ip_address).
This change adds assign_pubic_ip as a parameter to the ec2 module, ensuring that it is not set to one of BOOLEANS_TRUE if vpc_subnet_id is not also set, and if Boto is less than 2.13.0.
2013-10-28 10:11:38 -04:00
James Tanner
740491e0ce Fixes #4500 change ec2 module params to type=bool
Revert 4833c2fdf0
2013-10-24 09:19:25 -04:00
Andy Kluger
1cc0a8af6d Corrected docs ("monitor" -> "monitoring" and dissociated monitoring from instance_tags in examples) 2013-10-11 13:32:23 -04:00
Michael DeHaan
b73f311f8b Make group_id be a list. 2013-10-07 15:34:35 -04:00
James Cammarata
e14d857037 Make the ec2 wait code a little smarter
The code to determine the number of running instances could blow up
if the response from AWS did not actually contain any data. This code
makes it a bit smarter in handling, so that it will wait for a valid
response regardless of the wait condition.

Fixes #3980
2013-09-25 16:16:52 -05:00
Charles Blonde
4639295563 Update instance_profile_name message 2013-09-12 22:14:27 +02:00
Charles Blonde
637e4216ac Add support to Boto library < 2.5.0 2013-09-09 23:48:35 +02:00
James Cammarata
d9c460ed07 Merge branch 'rb2' of https://github.com/bpennypacker/ansible into bpennypacker-rb2
Conflicts:
	library/cloud/route53
2013-08-23 11:36:45 -05:00
Joshua Lund
fe5154f0c6 Fixing typo in EC2 modules 2013-08-21 18:13:05 -06: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
Lorin Hochstein
2281cb66a3 Minor doc update to s3 & ec2 modules
Adds some additional docs about the module parameters for s3
and ec2 modules.
2013-08-06 12:23:25 -04:00
Michael DeHaan
f0763558ad Fixup docs formatting. 2013-08-06 10:53:56 -04:00
Michael DeHaan
2387cfeb9b Merge pull request #3748 from lorin/ec2-idempotency
Add description to id parameter of ec2 module
2013-08-03 10:31:07 -07:00
Lorin Hochstein
099936da22 Add description to id parameter of ec2 module
Add some details in the docs about how the id parameter of the ec2
module behaves.
2013-08-02 23:01:17 -04:00
Lorin Hochstein
262808cf7c ec2: Removed unused line
Remove the reference to the unused "termination_list" parameter
in the ec2 module. The instance_ids parameter is the one that contains
the list of instance ids to be terminated.
2013-08-02 22:35:24 -04:00
Lorin Hochstein
3840a9f8f5 ec2: check for changes
In the ec2 module, if an id is specified, check if there have been
any changes. If not, return changed=False

Fixes #3746
2013-08-02 22:23:41 -04:00
Ralph Tice
151f73138f fixed vpc provisioning / clarified group_id usage 2013-07-22 17:00:13 -05:00
Michael DeHaan
24e83c782f Merge pull request #3550 from lwade/ec2role
Added IAM role support
2013-07-20 08:55:45 -07:00
Michael DeHaan
43429e9663 Removing legacy variable usage. 2013-07-19 09:42:22 -04:00
Lester Wade
7984891d36 Added IAM role support 2013-07-16 13:31:30 +01:00
Michael DeHaan
24bacabd6a Merge pull request #3293 from jarv/devel
Adds termination support to the ec2 module
2013-06-30 16:40:51 -07:00
Michael DeHaan
2f5ad8c5d6 Styling: spacing 2013-06-30 18:51:00 -04:00
John Jarvis
eb97624de3 typo 2013-06-21 13:45:14 -04:00
John Jarvis
abffe2e9a6 using instance_ids and state=absent for removing instances 2013-06-21 13:43:29 -04:00
John Jarvis
0cc09a47e5 Adds termination support to the ec2 module
Pass in the `instances` output of the ec2 module
to terminate a list of instances that were previously provisioned.

Useful for automated testing.
2013-06-20 20:00:52 -04:00
Michael DeHaan
2b5a7c69a9 Quote some strings in the docs 2013-06-19 22:10:48 -04:00
Michael DeHaan
b5d25b9843 Merge pull request #3171 from mynameisdaniil/devel
Adds 'groups' field into ec2 plugin
2013-06-19 19:06:29 -07:00
Daniil
9d79bfa4ee Allow 'ec2.group' field to handle lists of groups 2013-06-20 01:23:30 +04:00
Michael DeHaan
b1d96bc839 Merge pull request #3236 from lwade/ec2_placementzone
Added placement_group parameter for cluster compute. Issue 3232.
2013-06-18 13:14:03 -07:00
lwade
2ef0d94ab4 Added placement_group parameter for cluster compute. 2013-06-17 14:35:53 +01:00
Jan-Piet Mens
98c1423269 Docs: consistently format playbook EXAMPLES 2013-06-17 08:53:46 +02:00
Michael DeHaan
aeffb17d6b Standardize example 2013-06-01 11:49:02 -04:00
Michael DeHaan
1e8bc816f4 ec2 module: more indentation fixing 2013-05-11 17:23:16 -04:00
Michael DeHaan
58aad8c6e8 ec2 module fixes for 'make pep8' 2013-05-11 17:20:09 -04:00
Mario Franco
11ad5d2679 Fix tab 2013-05-05 12:25:55 -04:00
Mario Franco
b0331af29b Fix zone 2013-05-05 12:25:55 -04:00
Mario Franco
015117b990 Fix security group id for vpc based on @samukasmk solution 2013-05-05 12:25:55 -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 (Browse further)