Commit Graph

67 Commits (d4cec5ccc131dba116e74d191c80ab3fce437cb6)

Author SHA1 Message Date
Ryan Brown d4cec5ccc1 Remove double-assignment of EC2 parameters (#4081)
The `source_dest_check` and `termination_protection` variables are being
assigned twice in ec2.py, likely due to an incorrect merge somewhere
along the line.
9 years ago
@ 1573066ec1 Fixing error exception handling for python. Does not need to be compatible with Python2.4 b/c boto is Python 2.6 and above. (#3839) 9 years ago
hyperized 82cefd7ce1 Added restart functionality to ec2.py 9 years ago
Will Thames 52accd7d1f Use connect_to_aws where possible
`connect_to_aws` fixes a bug with security tokens in AWS.
Modules should use that rather than calling
`boto.x.connect_to_region`
9 years ago
Daniel Petty f26199d962 replaced sudo with become 9 years ago
jjshoe 56f1d6f794 Less engrish 9 years ago
Michael Baydoun 7234ead259 Update ec2.py
Documentation is not clear that tag used in count_tags must be an existing instance_tag
9 years ago
techraf 896dcd9787 Fixed typo in example playbook 9 years ago
Arthur Clement 7c8d3d9b20 Example of single instance with ssd gp2 root volume creation 9 years ago
joshuaeke 88f221fd9f Update ec2.py remove state tag
'exact_count' and 'state' are mutually exclusive options they should not be in the following examples:
- # Enforce that 5 running instances named "database" with a "dbtype" of "postgres" example and
- # Enforce that 5 instances with a tag "foo" are running
9 years ago
Toshio Kuratomi a90de29ceb Minor simplification of code 9 years ago
Brian Coca 2efb97e9d5 corrected version_added, removed empty alias 9 years ago
Keith Hassen f7dfcc153e Fail if any group name is not resolved to an ID. 9 years ago
Kevin Falcone 35e6684163 Mark this as a string so it is rendered in the docs
When this was treated as a boolean, sphinx was leaving the Default
column on http://docs.ansible.com/ansible/ec2_module.html blank,
implying it would use AWS's default.  In reality, it passes False, which
overrides the defaults at AWS (it's possible to boot an instance which
AWS claims will always have EBS optimization without it because of this
silently passed False).
9 years ago
Kai Webber 4a8bd74f52 Added launch group support for ec2 module 9 years ago
Gilad Peleg 9cb4388f9e Add state=running on some ec2 examples
`state=running` was missing in some of the ec2 module examples
9 years ago
Abhijit Menon-Sen e9071c62ba Add missing variable initializations
Without this, «ec2: state=stopped instance_ids=…» would fail with a
traceback like this:

    if inst.get_attribute('sourceDestCheck')['sourceDestCheck'] != source_dest_check:
NameError: global name 'source_dest_check' is not defined
9 years ago
fperks 11dbd985b6 Fix error on ec2 status change
Both `source_dest_check` and `termination_protection` variables are not
available within the scope of the startstopec2 instance method. This just
pulls them from module.params.
9 years ago
Gerard Lynch f85a8ac746 allow use of volume_type in volumes dict 9 years ago
Yanchek99 ebbd206e86 Fixed typo for instance_tags documentation 9 years ago
Bret Martin b1c5b17155 Use general-purpose parameter mutual exclusion code for network_interfaces 9 years ago
Bret Martin 0afa813324 Add alias `network_interface` and accept a string for a single ENI 9 years ago
Bret Martin df8b2d45bc Add network_interfaces example 9 years ago
Bret Martin 96d8401fb4 Remove aliases specification from documentation since there are none 9 years ago
Bret Martin df713192b4 Add network_interfaces parameter to ec2 module to support launch-time ENIs 9 years ago
James Cammarata b9ca912ffe Fixing region requirement regarding euca clusters
Fixes ansible/ansible#11023
9 years ago
HAMSIK Adam 217764ba3c Rebase start/stop instance pull code 9 years ago
Brian Coca 357d542bb3 clarified error messages to actually give back ansible module option instead of internal boto field name 9 years ago
Jens Carl c0eedc6e87 Fix missing alias "groups". 9 years ago
vanga ddd399fe7a Throw error if encryption is set while passing a snapshot id 9 years ago
Juho-Mikko Pellinen 29620b78fa Change the default flag value to None to prevent AWS complaining: "Instance creation failed => InvalidBlockDeviceMapping: the encrypted flag cannot be specified since device /dev/sda1 has a snapshot specified." 9 years ago
Andrea Mandolo ae1080d922 Added some block_device_mapping (disks) informations to EC2 instance module ouput 9 years ago
Andrea Mandolo a8da674cf4 Added "EC2 instance" termination_protection and source_dest_check changeability at run-time 9 years ago
James Cammarata 4239922d07 Updating version_added for new spot_type param in ec2 module
Also made sure 'choices' were set on the module param, to catch errors
in user's playbooks, etc.
9 years ago
Jay Taylor ed279d8175 Added support for spot request type specification (to support persistent spot requests). 9 years ago
Philip Kirkland cc214afed6 adding 'encrypted' option into volume dict so ec2 module can easily include encrypted volumes 9 years ago
nitzmahone 548ab163f5 Added choice validation for state arg
fixes traceback on invalid state arg
9 years ago
Greg DeKoenigsberg 18ca7aee07 Updating cloud modules with proper github author information 9 years ago
Wang Qiang 86b6f39cf0 Do instance update after add tags to instance. 9 years ago
Benno Joy d24fbf5c3e fixe issue #600, where ec2 module returns instance state as runing even after instance is terminated 9 years ago
Martin Froehlich 8bff781a0a Use get_aws_connection_info to get AWS creds.
Previously used get_ec2_creds did not consider security_token,
making MFA requests fail.
9 years ago
Alex Feinberg 1ac9c20b6e Fix a typo in create_instances
Fix a typo in create_instances: use 'placement_group' instead of placement_group
when calling boto_siupports_param_in_spot_request().
9 years ago
steenzout 67f769d9a6 issue #994: use HAS_BOTO to determine if import was successful: - removed import of sys module. - HAS_BOTO constant to check if import was successful. - trigger a failure when import fails. - removed unnecessary imports. 9 years ago
Lorin Hochstein 5224375a5a Use the correct alias syntax 9 years ago
Lorin Hochstein 17e6be671b ec2 module: add instance_id alias
Create an alias named instance_id for the instance_ids parameter.
9 years ago
Toshio Kuratomi c9b33d5de2 Fix for py2.6 (no dict comprehensions on py2.6) 9 years ago
Toshio Kuratomi c9cc8d0b70 Initialize the value of vpc_id variable 9 years ago
Bret Martin 650a7365f9 Allow vpc_subnet_id to remain unspecified (see bc0c169) 9 years ago
Toshio Kuratomi 49511ea078 Small code cleanup 9 years ago
Brandon W Maister 2121bbc208 ec2: Apply all security groups at instance-creation
The code was picking out the first instance from the security groups
specified, even when multiple groups were specified. Now we use all of
them.
9 years ago