Commit Graph

386 Commits (555f12c59adfddd32f28623f2fa1177df63660e7)

Author SHA1 Message Date
willthames 46a5f8c656 Make state=present the default for ec2_tag
Using `ec2_tag` module without the state argument
currently results in:
```
failed: [127.0.0.1] => {"failed": true, "parsed": false}
```
This fix makes `state=present` the default
11 years ago
jctanner d3f94fe606 Merge pull request #5303 from mohangk/rds_postgres
Adds postgres support for Ansible RDS module
11 years ago
Troy C 038d030404 catch exposed cs.exceptions instead of novaclient 11 years ago
Mohan Krishnan 1dd2510e76 Adds postgres support for Ansible RDS module 11 years ago
Troy C 3007a8af7e import novaclient.exceptions for cs.images.find
cs.images.find(human_id= throws novaclient.exceptions.NotFound,
resulting in the try/except block with
image = cs.images.find(name=image)  being skipped. catching
novaclient.exception.NotFound allows images to be specified with the
human readable name.

Example:
  tasks:
    - name: Server build request
      local_action:
        module: rax
        region: DFW
        image: Ubuntu 12.04 LTS (Precise Pangolin)

Also, the import is placed after try: import pyrax, because pyrax
imports novaclient and should fail if novaclient is missing.
11 years ago
James Tanner f55270e746 Set version_added for new_instance_name in cloud/rds module 11 years ago
jctanner 66cad764d2 Merge pull request #5028 from retr0h/correct-nova-api-auth-check
Nova doesn't attempt to auth on obj instantiation
11 years ago
jctanner 6051ee0df5 Merge pull request #5052 from bpennypacker/promote_rename
cloud/rds module: added promote command & updated modify command to allow for renaming of database instances.
11 years ago
James Tanner 35cd043e25 Addresses #5276 update documentation for ec2_ami no_reboot parameter 11 years ago
evan82 01e8390a8f Fix ec2_ami no_reboot setting (currently it will not reboot instances to create the AMI)
Line 276: no_reboot = dict(default=True, type="bool"),

This should really default to False (When AMIs are created the machine will reboot before copying the disk).

"When enabled, Amazon EC2 does not shut down the instance before creating the image. When this option is used, file system integrity on the created image cannot be guaranteed."
11 years ago
jctanner 1688a7c776 Merge pull request #5231 from jeffnappi/patch-1
Corrected documentation in ec2_ami module - no_reboot defaults to yes
11 years ago
Jim Dalton aa329b4b48 Make sure initial_state is initialized 11 years ago
Jim Dalton ac1e84d976 Account for instances that have not yet been registered. Fixes #5076 11 years ago
Jeffrey Nappi 2b82f7d75f Corrected documentation in ec2_ami module - no_reboot defaults to yes 11 years ago
David Hummel 614efadb7a Fix issue #5043: ec2_vpc module wait=yes state attribute retrieval 11 years ago
Michael DeHaan 71a5de6e72 Merge pull request #5168 from sivel/rax_clb_required_together
rax_required_together is a function
11 years ago
Matt Martz d73251c342 rax_required_together is a function 11 years ago
Bruce Pennypacker d3480c5630 fixed documentation & added rename example 11 years ago
Michael DeHaan 27199dc219 Merge pull request #5133 from joshuaconner/add_docker_max_version_to_docs
add supported docker version to docs
11 years ago
Evgenii Terechkov b5d8aa9ff1 Use ovirtsdk if it installed, but fall out gracefully if it is not 11 years ago
jctanner c259993559 Merge pull request #5078 from brandonhilkert/fix-ec2-tags
Fix checking for existence of EC2 tags
11 years ago
Joshua Conner c2f128f737 add supported docker version to docs 11 years ago
James Tanner ad837709bd Addresses #5023 Fix import comments 11 years ago
James Tanner 6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
jctanner 93159cb9cd Merge pull request #4996 from sivel/rax-module-utils
Implement ansible.module_utils.rax
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
Michael DeHaan 36effd237c There's a cleaner way to do this, commit to module formatter pending.
Revert "No longer need to reference 'version_added' in docs for these, as this was quite a while ago."

This reverts commit ff0a41d446.
11 years ago
Michael DeHaan ff0a41d446 No longer need to reference 'version_added' in docs for these, as this was quite a while ago. 11 years ago
Brandon Hilkert 33afaebb95 Fix checking for existence of EC2 tags 11 years ago
jctanner 696ce0effe Merge pull request #5067 from justinludwig/fix-aws-credential-params
Fix AWS credential params for ec2_ami, ec2_elb, ec2_tag, ec2_vpc, route53, and s3 modules
11 years ago
Jim Rybarski 483bb58f2d fixed documentation typo about region purpose 11 years ago
Justin Ludwig 26374d89a0 Fix AWS credential params for s3 and other modules
The `ec2_ami`, `ec2_elb`, `ec2_tag`, `ec2_vpc`, `route53`, and `s3` modules
all canonicalize the AWS access and secret key params as
`aws_access_key` and `aws_secret_key`. However, following the fixes for #4540,
those modules now use `get_ec2_creds` from `lib/ansible/module_utils/ec2.py`,
which requires access/secret key params to be canonicalized as
`ec2_access_key` and `ec2_secret_key`. As a result, AWS credentials passed
to those six modules as parameters are ignored (they instead always use
the AWS credentials specified via environment variables, or nothing).

So this change fixes those six modules to canonicalize the
AWS access and secret key params as `ec2_access_key` and `ec2_secret_key`,
allowing them to again accept AWS credentials passed via module params.
11 years ago
Bruce Pennypacker 9abca424ea Added promote command to promote read-replicas to standalone databases (http://aws.amazon.com/about-aws/whats-new/2012/10/11/amazon-rds-mysql-rr-promotion/). Added ability for the modify command to rename a database instance via the optional new_instance_name parameter 11 years ago
John Dewey 15613de6f5 Nova doesn't attempt to auth on obj instantiation
Need to call nova.authenticate() to validate credentials.
11 years ago
Matt Martz 3f2cbb7583 Add ansible.module_utils.rax 11 years ago
Matt Thompson 8cd465938b Add missing exception name 11 years ago
Michael DeHaan 82a9387532 Merge pull request #4971 from erjohnso/devel
fixes #4954 plus updates for gcutil/v1beta16 tests
11 years ago
Eric Johnson 8ff58eb46e fixes #4954 plus updates for gcutil/v1beta16 tests 11 years ago
James Tanner 52032b80d4 Fix pep8 error in ec2_vpc 11 years ago
James Martin 592124f129 cloudformation parameters no longer required. 11 years ago
Michael DeHaan f7c3975f21 Add version_added to all modules missing version_added information, the docs formatter will now
raise errors when omitted, updated changelog with new modules.
11 years ago
Michael DeHaan 2726b13245 Changelog updates and a few module renames. vpc -> ec2_vpc, githooks -> github_hooks, blacklist -> kernel_blacklist. These are all new in 1.4 so safe to change. 11 years ago
Michael DeHaan aee1fcad05 Update changelog, rename vpc module to ec2_vpc. 11 years ago
Tom Berger 8a39e0a615 Update cloud/docker: if the image name containes a repository, strip it.
When using repositories other than the main one at docker.io, the image name contains the repo name (which itself contains ":" as a separator between domain and port). We don't really care about it here, so just get rid of it before looking at the image name.
11 years ago
Matt Martz 1ef49405b3 Remove debug print statement 11 years ago
jctanner 7ebda819b5 Merge pull request #4919 from sivel/4577-rax-refactor
Refactor rax module. Fixes #4577
11 years ago
Matt Martz 234a78673b Refactor rax module 11 years ago
Matt Martz fa4e55d677 follow suit with the rax refactor and split out the slugify code 11 years ago
Matt Martz 545aabaddc Add rax_facts module for retrieving facts about a Cloud Server 11 years ago
James Tanner d0986a20a3 Use shared ec2 module snippet in elasticache module 11 years ago