Commit Graph

579 Commits (4f6c906783ff43f5182479b28d2120e3e47c45fd)

Author SHA1 Message Date
J Levitt 889274a525 Add rds restore example to list of examples
There was no db restore example. I've provided one that shows how to do the restore, then add a security group (you cannot add the security group during the restore step -- it has to be done in a modify step afterward). Also, I show how to get the endpoint.
9 years ago
Rabenstein 7d665db5e5 Squash of 3 commits for bugfix.
Absent unction was not working on user with login profile
also fixed the exception handling

fixed the delete user function
now works with or without loginprofile (password)

typo
9 years ago
Andy Nelson 9618986804 Update to ec2_vpc.py to:
1 allow interface ids and vpc peering connections as route targets
2 set state to "terminated" when VPC is removed
3 fix some comment typos

updates per PR comments
9 years ago
Tom Paine dd26c37f6b Update ec2_elb_lb.py
add connection draining default
9 years ago
Toshio Kuratomi 62672b8b85 Merge pull request #2228 from abridgett/feature/add_ec2_elb_lb_idle_timeout
add idle_timeout support
9 years ago
Brian Coca cac69f3135 added missing version_added 9 years ago
Brian Coca aa6f80669a Merge pull request #534 from ferrants/ami-launch-permissions
ec2_ami can update an ami's launch_permissions
9 years ago
Brian Coca c91da5714e Merge pull request #2279 from wimnat/feature/iam_policy_idempotentcy
Allow iam_policy to maintain idempotence if the role referenced has …
9 years ago
Brian Coca 3aee4b9469 Merge pull request #2326 from jibsheet/devel
Mark this as a string so it is rendered in the docs
9 years ago
Toshio Kuratomi 0de2627efc Make cache_parameter_group the name of this new param to match with similar params (leave old name as an alias) 9 years ago
Toshio Kuratomi e16c5c54fd Revert "Expose cache_parameter_group_name in elasticache module"
This PR #1950 implements duplicate functionality to #1353
This reverts commit b04efa22c4.

Conflicts:
	cloud/amazon/elasticache.py
9 years ago
Brian Coca 59b87836d1 Merge pull request #2222 from pgilad/patch-1
Add state=running on some ec2 examples
9 years ago
Brian Coca d6c97bc880 Merge pull request #2381 from gregdek/devel
Module ownership changes
9 years ago
Brian Coca a38e0095f9 added missing version added 9 years ago
Brian Coca 6e905f0586 Merge pull request #1950 from frenchfrywpepper/cache_parameter_group_name
Expose cache_parameter_group_name in elasticache module
9 years ago
Brian Coca 794cbeea23 use marker instead of is_truncated which does not seem to work 9 years ago
Brian Coca b90318ae6c loop to get all load balancers, boto limited to 400 at a time
fixes #2115
9 years ago
Brian Coca 77ded03510 Merge pull request #953 from rwky/asg_542
Fixes #542 error when ec2_asg arguments aren't specified
9 years ago
Adrian Bridgett d4319555a0 Merge branch 'devel' into feature/add_ec2_elb_lb_idle_timeout
* devel: (84 commits)
  Document and return an error if httplib2 >= 0.7 is not present.  We
  since find doesn't make changes, support check mode and gather data for other tasks in check mode
  Correct typo in yum module docs
  Update doc to reflect password is required if adding a new user
  Update error message to be more explicit
  Simplify logic to handle options set to empty string
  Fix to issue 12912. Supply 'force' to install of python-apt.
  Note the difference between yum package groups and environment groups.
  rearranged systemd check, removed redundant systemctl check fixed unused cmd and state var assignements
  added earlier paths to systemd
  make os_router return a top level 'id' key
  Version bump for new beta 2.0.0-0.4.beta2
  allow os_port to accept a list of security groups
  allow os_server to accept a list of security groups
  Add capability for stat module to use more hash algorithms
  allow empty description attribute for os_security_group
  Update hostname.py
  simpler way to check if systemd is the init system
  make os_keypair return a top level 'id' key
  make os_flavor return a top-level 'id' key
  ...
9 years ago
Greg DeKoenigsberg 344cf5fc0e Remove @ralph-tice from maintainership per his request 9 years ago
Greg DeKoenigsberg 7cb9289197 Clarity of owner, even though module is deprecated 9 years ago
Greg DeKoenigsberg 57dcf2c9dd @lorin stepping down as maintainer 9 years ago
Brian Coca 3b5afc2393 made port default depending on db engine 9 years ago
Etherdaemon 08559670e5 Update try statement as pointed out by defionscode 9 years ago
Etherdaemon d6da9c1516 Merge branch 'devel' into fix_aws_iam_connection_12831 9 years ago
Kevin Falcone 735eefb2ca 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
Toshio Kuratomi bc3b1abd68 Another fix for docs 9 years ago
Toshio Kuratomi e41cde3116 Correct docs build 9 years ago
Brian Coca 377aaf526c Merge pull request #2292 from Constantin07/update_ec2_ami_find
Included 'block_device_mapping' in the output of module and other mis…
9 years ago
Constantin Bugneac 01b8432496 Added documentation for returned structure 9 years ago
Etherdaemon 2b2285eb67 fixes #12831 by updating the boto iam connection method to connect_to_region 9 years ago
Brian Coca 14f32de7a6 added missing version_added to new accesslogs feature 9 years ago
Brian Coca f4ed4b37a9 Merge pull request #2126 from nfelsen/access_logs
Adding support for access logs in ELB
9 years ago
Brian Coca 250b1f48fc Merge pull request #2274 from niothiel/devel
Remove duplicate logic
9 years ago
Brian Coca 300c816503 Merge pull request #2180 from wimnat/feature/issue-695
Resolve issue 695 (no change reported) and other misc fixes
9 years ago
Brian Coca 1ec0c1893a added note on when reboot command became available
fixes #2050
9 years ago
Constantin Bugneac e715f7f968 Included 'block_device_mapping' in the output of module and other missing attributes 9 years ago
Nathaniel Felsen 2e74b17fad fixing merge conflict 9 years ago
Brian Coca f2cd132cd0 Merge pull request #2287 from pgilad/patch-1
Docs: add state choices to ec2_elb_lb
9 years ago
Gilad Peleg 68e1ff2f81 Docs: remove redundant quotes in ec2_elb docs 9 years ago
Gilad Peleg 970185f2d2 Docs: add state choices to ec2_elb_lb
add state options (`present` and `absent`) to `ec2_elb-lb` doc
9 years ago
whiter 6fc58855b9 Allow iam_policy to maintain idempotentce if the role referenced has been removed 9 years ago
whiter 5e61f0882b Add region to doc and handle missing region parameter 9 years ago
Rob 3360cef024 Update ec2_vol.py
Changed=true now reported on new volume.
Only detach volume when instance is specified as 'None' or '' rather than whenever instance is not specified at all
Fix regression caused by 6b27cdc where by no volume is created if id or Name is not supplied
Remove unnecessary empty aliases
Corrected example to use acceptable parameter for ions
Added exception handling to get_all_instances call
Moved the attachment state validation code to attach_volume function rather than create_volume function
Refactored attach_volume and detach_volume so that changed state can be passed back to call
Created get_volume_info function so that state=present and state=list can return the same data.  Also added instance_id as a returned value in attachment_set dict
Updated aws connection method so that boto profile can be used
9 years ago
Val Komarov 986d4064e9 Remove duplicate logic 9 years ago
Brian Coca 6f9ff0b914 Merge pull request #2248 from Constantin07/devel
ec2_vol: added deleteOnTermination in the output of list option
9 years ago
Brian Coca f1fc76d732 Merge pull request #2214 from fperks/fix-ec2-error-on-instance-status-change
Fix error on ec2 status change
9 years ago
Adrian Bridgett cc821492d3 remove unneeded aliases 9 years ago
Constantin Bugneac 83291dbefc Added deleteOnTermination in the output of list option 9 years ago
Abhijit Menon-Sen ebd8b12e15 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
Frank van Tol 2c24d0482b Update ec2_asg.py 9 years ago
Adrian Bridgett 686ceb81d7 add idle_timeout support 9 years ago
Brian Coca 5f1f1b2904 Merge pull request #2216 from wimnat/feature/revert-1906
Set default of dimensions parameter to be empty dict
9 years ago
Rob 5a6599d70d Move import statements for easier debugging (correct line numbers) 9 years ago
Brian Coca 9eb0c178ec Merge pull request #725 from robbwagoner/cloudformation-resources
module cloudformation: include a CFN stack's resources in the result
9 years ago
Brian Coca 692781c936 Merge pull request #2070 from fvant/patch-7
We are copying from S3,  the bucket is the source, not the target.
9 years ago
Brian Coca 7af7ef2ef7 Merge pull request #2086 from wimnat/feature/issue-2085
Remove 'str' type so that json is properly quoted
9 years ago
Brian Coca 547690c785 Merge pull request #2169 from stelligent/devel
Replaces 'old' get_ec2_creds connection method with get_aws_connection_info
9 years ago
Brian Coca c4f64d822c changed modules to use common ec2 docs for region 9 years ago
fperks 7fd3262c3c 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
Gilad Peleg 5f914e854b Add state=running on some ec2 examples
`state=running` was missing in some of the ec2 module examples
9 years ago
Rob ca517abf07 Set default of dimensions parameter to be empty dict 9 years ago
Kai Webber d0b30dd86d Added launch group support for ec2 module 9 years ago
James Cammarata a3e7f5cfcc Merge pull request #2062 from wimnat/feature/iam_policy_doc_fix
Update iam_policy.py doc and state default parameter
9 years ago
Gerard Lynch 8b1ee3d6cb minor doc fix 9 years ago
Brian Coca da220e0bb0 added version_added 9 years ago
Nathaniel Felsen 8ec17d0fd9 Adding support for access logs in ELB 9 years ago
Alex Kessinger 4308ae25c4 Fix a argument mismatch in elasticache
I think in this commit 720aeffca2

There was bug introduced where the ElastiCacheManager init method has
a number of positional arguments like so.

```py
    def __init__(self, module, name, engine, cache_engine_version, node_type,
                 num_nodes, cache_port, parameter_group, cache_subnet_group,
                 cache_security_groups, security_group_ids, zone, wait,
                 hard_modify, region, **aws_connect_kwargs):
```

But then later in the code the positional arguments are passed in
like this.

```py
    elasticache_manager = ElastiCacheManager(module, name, engine,
                                             cache_engine_version, node_type,
                                             num_nodes, cache_port,
                                             cache_subnet_group,
                                             cache_security_groups,
                                             security_group_ids, parameter_group, zone, wait,
                                             hard_modify, region, **aws_connect_kwargs)
```

If you count, you can see that cache_subnet_group, is being passed in
where the manager expects to see parameter_group.
9 years ago
Brian Coca 653b55bf68 Merge pull request #2160 from j-carl/fix_amazon-cloudformation-userdir
Fix to handle user directory within parameter 'template'.
9 years ago
Jens Carl dc109387bd Change type of parameter 'template' to 'path'. 9 years ago
Shayne Clausson 841835ebac Replaces 'old' get_ec2_creds connection method with get_aws_connection_info to
support passing in security_token for temporary creds.
9 years ago
Toshio Kuratomi a4ac171a07 Merge pull request #2124 from halberom/ec2_adjust_vol_handling
ec2 - allow use of volume_type in volumes dict
9 years ago
Gerard Lynch 1857263b63 allow use of volume_type in volumes dict 9 years ago
Toshio Kuratomi d5f62798f0 Docs fixes 9 years ago
Toshio Kuratomi 6cad03644f Merge pull request #2130 from shawnsilva/modify-rds-size
Fix for modifying the size of an RDS instance.
9 years ago
Toshio Kuratomi 3b5f232d4d Merge pull request #2143 from atplanet/ec2-ami-mod-clarify-block-device-mapping
Clarify available options for device_mapping parameter of ec2_ami module
9 years ago
Jens Carl e25605cd5b Fix to handle user directory within parameter 'template'. 9 years ago
Tom Bamford 4e1d28e311 Clarify available options for device_mapping parameter of ec2_ami module 9 years ago
Shawn Silva ba8930c83a Fix for modifying the size of an RDS instance.
When attempting to modify the size of an RDS instance Ansible succeeds and
returns a "changed" status. However, no changes are applied to the RDS
instance. Boto is looking for a keyword parameter of "allocated_storage" to
update the size, and this parameter wasn't being included.
9 years ago
Selivanov Pavel ec24a86f69 ec2_group.py: added ICMP rule example 9 years ago
Brian Coca 8b7e692494 Merge pull request #1353 from awesomescot/devel
adding parameter group option
9 years ago
EC 9168ed4736 Fixing ec2_asg termination_policy
If this isnt set, it wont launch the instances because it needs to default to "Default" despite what boto docs say.
9 years ago
Rob 9bf0d06e4a Update iam_policy.py
Fixed doc for policy_name - it is a required field
Removed empty aliases
9 years ago
Gerard Lynch 3d12e53a28 order params, add missing tag param. update examples 9 years ago
whiter 719f68e057 Remove 'str' type so that json is properly quoted 9 years ago
Toshio Kuratomi 636eecf354 Fix improper indentation 9 years ago
Brian Coca 367b4f07a1 Merge pull request #2047 from tomfotherby/patch-1
Allow load_balancer_port as a Ansible variable
9 years ago
Brian Coca 4a8a54950c Merge pull request #2067 from wimnat/feature/issue-2066
Add exception handling to iam
9 years ago
James Cammarata 8125ae624a Merge pull request #2075 from evanccnyc/ec2_asgfix
fixing termination policies for ec2_asg
9 years ago
Evan Carter 2e84bb9c99 fixing termination policies for ec2_asg 9 years ago
Brian Coca 8a7946b91d Merge pull request #2064 from wimnat/feature/issue-2063
Remove unnecessary json.loads
9 years ago
Evan Carter 70ed99ec26 Fixing bug #2058 and adding some backwards compatibility 9 years ago
Frank van Tol a7667fcaf2 Update s3.py
We are copying from S3,  the bucket is the source, not the target.
9 years ago
Rob da29956f03 Add exception handling to iam 9 years ago
wimnat 8e9c85bed2 Remove unnecessary json.loads 9 years ago
Tom Fotherby 54ae73b1a3 Fix #1984 - allow load_balancer_port as a variable 9 years ago
Brian Coca 05c3b3ea15 minor doc fix 9 years ago
Brian Coca 951f5807b9 Merge pull request #2028 from rosmo/s3-permissions
Added option to set multiple ACLs for S3 objects
9 years ago
Taneli Lepp 15f4b59619 Added option to set multiple ACLs for S3 objects. Also verifies the
selected permissions against Boto's canned ACL strings list.
9 years ago
Brian Coca c4140cc6db Merge pull request #2021 from h3biomed/enis_at_launch
ec2: allow ENIs to be specified at instance launch
9 years ago