Michael DeHaan
dfa8aef408
Merge pull request #6850 from atlashealth/ec2_set_ebs_optimized
...
ec2: added ability to set EBS optimized instances
11 years ago
James Tanner
b2701d0d76
Fixes #6780 Update version_added for source_dest_check in ec2 module
11 years ago
Atlas Health
97a7df7644
moved ebs_optimized param out of main request hash
11 years ago
Atlas Health
2657bbcefa
ec2: added ability to set EBS optimized instances
...
added version
11 years ago
Ian Pointer
bebb11afeb
Adding type int for count (in line with other cloud modules)
11 years ago
jjshoe
1f980b6880
assign_public_ip was actually added in 1.5
...
Checked 1.4.5 and this option doesn't exist. Will check/update/pull docs next.
11 years ago
joehack3r
815115f792
Update example to include delete on termination
11 years ago
James Cammarata
67e9cbe637
Merge branch 'josephtate-devel' into devel
11 years ago
James Cammarata
5d4980459f
Merge branch 'drcapulet/ec2-sourcedestcheck' of https://github.com/drcapulet/ansible into drcapulet-drcapulet/ec2-sourcedestcheck
11 years ago
James Cammarata
8ca3bb4137
Updating profile/security_token version_added labels
11 years ago
James Cammarata
430cce9df3
Merge branch 'ec2_security_token' of https://github.com/willthames/ansible into willthames-ec2_security_token
11 years ago
willthames
4a093a9709
Make it easier to determine whether instance creation or tagging fails
11 years ago
Will Thames
b9a7352e0a
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
Michael DeHaan
bbb88517ef
Since the ec2 parameter is named 'key_name' and 'keypair' is just an alias, use
...
the primary name of the parameter in the examples.
11 years ago
James Cammarata
3274785350
Merge pull request #5689 from pgehres/devel
...
Adding the region to the output of the ec2 module's creation of a new in...
11 years ago
James Cammarata
bb5da4c5f6
Merge branch 'devel' of https://github.com/josephtate/ansible into josephtate-devel
...
Conflicts:
library/cloud/ec2
11 years ago
James Cammarata
8a7c68dc18
Merge branch 'ec2-params' of https://github.com/scottanderson42/ansible into scottanderson42-ec2-params
...
Conflicts:
lib/ansible/module_utils/ec2.py
library/cloud/ec2
11 years ago
James Laska
dbd3194e9c
Resolves issue#6067 by allowing exact_count=0
11 years ago
Peter Gehres
b5761750c4
Adding the region to the output of the ec2 module's creation of a new instance.
11 years ago
James Cammarata
056d54ebd3
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
c8127ea874
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
d3c1b8de78
Merge pull request #5883 from amirhhz/improve-ec2-module-docs
...
Improve ec2 module docs
11 years ago
Scott Anderson
baf508a379
Change standard AWS access and secret key parameter names to aws_access_key and aws_secret_key. Fixes an authentication problem with the rds module and standardizes the naming convention on something more encompassing than ec2_*_key.
11 years ago
James Tanner
a62af82757
Make ec2 exact_count and count mutually exclusive
11 years ago
James Tanner
70ebb05190
Return a tagged_instances list for hosts that matched the count_tag
11 years ago
James Tanner
f101768a9d
Make an example that sets the instance Names
11 years ago
James Tanner
005ef837d9
Update docstrings
11 years ago
James Tanner
fd919062cb
Add exact_count and count_tag to the ec2 module.
11 years ago
Will Thames
7600c664fe
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
843f4e7d7c
Neaten up example YAML with 2-space indenting
11 years ago
Amir H. Hajizamani
7c38e8a225
Example should put instance_ids list in quotes for avoid YAML error
11 years ago
Timur Batyrshin
658c15930e
reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 ( #5852 )
11 years ago
James Tanner
5cbe24913f
Fix start/stop example in ec2
11 years ago
James Tanner
1641361057
Merge branch 'feat/ec2_start_stop' of git://github.com/Geryon/ansible into Geryon-feat/ec2_start_stop
11 years ago
willthames
de659af82b
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
8fb5a66944
keypair is not absolutely required when creating ec2 instances
11 years ago
Joseph Tate
e868d00472
Add capability check for parameters on request_spot_instances
11 years ago
willthames
12005a1cd0
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
Alex Coomans
dd3aea6e9b
Add ability to disable the Source/Destination check on EC2
11 years ago
Joseph Tate
080e70ab6e
Added version_added for spot instance parameters
11 years ago
Joseph Tate
40f9da351f
Extend ec2 module to support spot instances
11 years ago
Nicholas DeClario
b2ea24bc08
Added ability to start and stop existing EC2 instances.
11 years ago
James Tanner
04b031756c
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
fe95745a20
Correcting the security group id lookup from the list of security group names
11 years ago
James Laska
2a5874b94f
Honor wait on ec2 instance termination
11 years ago
James Tanner
afa5988391
Fixes #4540 Use shared module snippet to evaluate ec2 credentials
11 years ago
Michael DeHaan
187ebf2f56
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
ef317ecde7
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
b803aac6ec
Fixes #4500 change ec2 module params to type=bool
...
Revert 4833c2fdf0
11 years ago
Andy Kluger
f97871e0d9
Corrected docs ("monitor" -> "monitoring" and dissociated monitoring from instance_tags in examples)
11 years ago