Commit Graph

60 Commits (cc35e80a54b81f9a3e1b1fd86cbf482633a5b605)

Author SHA1 Message Date
Will Thames cc35e80a54 ec2 module fails when state is not absent
tagged_instances is initialised in a scope not visible
when state is not absent.
11 years ago
Michael DeHaan 7cf513d4ed Merge pull request #5883 from amirhhz/improve-ec2-module-docs
Improve ec2 module docs
11 years ago
James Tanner 7268d06bfe Make ec2 exact_count and count mutually exclusive 11 years ago
James Tanner e45b0c7dce Return a tagged_instances list for hosts that matched the count_tag 11 years ago
James Tanner 0f1d695628 Make an example that sets the instance Names 11 years ago
James Tanner f5539f8545 Update docstrings 11 years ago
James Tanner c19936fba1 Add exact_count and count_tag to the ec2 module. 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
Amir H. Hajizamani 100e0e2734 Neaten up example YAML with 2-space indenting 11 years ago
Amir H. Hajizamani d31d553571 Example should put instance_ids list in quotes for avoid YAML error 11 years ago
Timur Batyrshin 9ad52632c5 reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 11 years ago
James Tanner eb71120435 Fix start/stop example in ec2 11 years ago
James Tanner eb4c01caf6 Merge branch 'feat/ec2_start_stop' of git://github.com/Geryon/ansible into Geryon-feat/ec2_start_stop 11 years ago
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
11 years ago
willthames b884451cb7 keypair is not absolutely required when creating ec2 instances 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
Nicholas DeClario 8b5fee61bb Added ability to start and stop existing EC2 instances. 11 years ago
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.
11 years ago
Rob Szewczyk 53e9a422e8 Correcting the security group id lookup from the list of security group names 11 years ago
James Laska 582a32040b Honor wait on ec2 instance termination 11 years ago
James Tanner 0a5adda059 Fixes #4540 Use shared module snippet to evaluate ec2 credentials 11 years ago
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. 11 years ago
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.
11 years ago
James Tanner 740491e0ce Fixes #4500 change ec2 module params to type=bool
Revert 4833c2fdf0
11 years ago
Andy Kluger 1cc0a8af6d Corrected docs ("monitor" -> "monitoring" and dissociated monitoring from instance_tags in examples) 11 years ago
Michael DeHaan b73f311f8b Make group_id be a list. 11 years ago
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
11 years ago
Charles Blonde 4639295563 Update instance_profile_name message 11 years ago
Charles Blonde 637e4216ac Add support to Boto library < 2.5.0 11 years ago
James Cammarata d9c460ed07 Merge branch 'rb2' of https://github.com/bpennypacker/ansible into bpennypacker-rb2
Conflicts:
	library/cloud/route53
11 years ago
Joshua Lund fe5154f0c6 Fixing typo in EC2 modules 11 years ago
Bruce Pennypacker 11470fea04 Rebase attempt
No idea if I'm rebasing properly or not.  This is my first attempt.
11 years ago
Lorin Hochstein 2281cb66a3 Minor doc update to s3 & ec2 modules
Adds some additional docs about the module parameters for s3
and ec2 modules.
11 years ago
Michael DeHaan f0763558ad Fixup docs formatting. 11 years ago
Michael DeHaan 2387cfeb9b Merge pull request #3748 from lorin/ec2-idempotency
Add description to id parameter of ec2 module
11 years ago
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.
11 years ago
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.
11 years ago
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
11 years ago
Ralph Tice 151f73138f fixed vpc provisioning / clarified group_id usage 11 years ago
Michael DeHaan 24e83c782f Merge pull request #3550 from lwade/ec2role
Added IAM role support
11 years ago
Michael DeHaan 43429e9663 Removing legacy variable usage. 11 years ago
Lester Wade 7984891d36 Added IAM role support 11 years ago
Michael DeHaan 24bacabd6a Merge pull request #3293 from jarv/devel
Adds termination support to the ec2 module
12 years ago
Michael DeHaan 2f5ad8c5d6 Styling: spacing 12 years ago
John Jarvis eb97624de3 typo 12 years ago
John Jarvis abffe2e9a6 using instance_ids and state=absent for removing instances 12 years ago
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.
12 years ago
Michael DeHaan 2b5a7c69a9 Quote some strings in the docs 12 years ago
Michael DeHaan b5d25b9843 Merge pull request #3171 from mynameisdaniil/devel
Adds 'groups' field into ec2 plugin
12 years ago
Daniil 9d79bfa4ee Allow 'ec2.group' field to handle lists of groups 12 years ago