Commit graph

39 commits

Author SHA1 Message Date
James Cammarata
0ae87cb725 Merge branch 'ec2inv-rdstoggle' of https://github.com/ingmar/ansible into ingmar-ec2inv-rdstoggle
Conflicts:
	plugins/inventory/ec2.py
2014-07-31 13:38:54 -05:00
James Cammarata
5764015876 Merge branch 'ec2_nested_groups' of https://github.com/cchurch/ansible into cchurch-ec2_nested_groups
Conflicts:
	plugins/inventory/ec2.py
2014-07-31 13:07:31 -05:00
Adam Chainz
13a5993a49 Fix indentation in ec2.py 2014-07-14 10:59:17 +01:00
Chris Church
7f27c56a79 Add option to return all EC2/RDS instances regardless of state. 2014-07-01 15:50:04 -04:00
Chris Church
4036df11cf Add configurable option to support nested inventory groups. 2014-07-01 15:29:39 -04:00
Ingmar Hupp
cc01f7b7f5 Do not filter out RDS instances by default or in INI file to avoid changing current behaviour. 2014-03-27 18:58:46 +00:00
Ingmar Hupp
456d2627e8 EC2 inventory toggle to exclude/include RDS instances. 2014-03-27 15:57:24 +00:00
Jack Neely
42b01dac9b ec2.py: Make sure ec2_placement gets handled correctly
ec2_placement was missing from the inventory variables ec2.py was
producing.  Make sure that gets properly included rather than ignored.
2014-02-06 15:10:20 -05:00
Timur Batyrshin
658c15930e reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
jctanner
57d54c1da5 Merge pull request #5236 from willthames/ec2_inv_rds_fail_safe
ec2 inventory: Fail EC2 inventory better with restricted EC2 users
2014-01-06 12:57:21 -08:00
jctanner
fd4ae165e4 Merge pull request #5153 from willthames/ec2_inventory_multiuser
Allow multiple users to use ec2 inventory scripts
2014-01-06 12:55:08 -08:00
Will Thames
e9a0aff77c Fail EC2 inventory better with restricted EC2 users
If a user has full EC2 access but no RDS access, the user
should still be able to query the EC2 inventory, although
will not obtain any information about any RDS instances.
2013-12-10 21:32:54 +10:00
Lorrin Nelson
663deff2c2 Fix loading from cache in ec2.py inventory plugin. 2013-12-05 21:33:25 -08:00
Lorrin Nelson
94d60b53de ec2 inventory now include Ansible 1.3 style _meta data each host. 2013-12-05 11:40:18 -08:00
willthames
3a0d2860e0 Allow multiple users to use ec2 inventory scripts
Move the ec2 cache files from a shared /tmp location to the
user's ansible tmp directory.
2013-12-04 11:42:44 +10:00
Michael DeHaan
30e72a4b1b Merge pull request #4842 from cchurch/devel
Retrieve EC2 state when using newer versions of Boto
2013-11-18 11:45:56 -08:00
James Tanner
5eaaca68d1 Merge pull request #4005 from herbyg-axial/ansible/
ec2 inventory script: Add a global group for EC2 and RDS instances when listing EC2 inventory
2013-11-11 14:09:34 -05:00
Chris Church
a6135c1c16 Support retrieving EC2 state/previous_state when using newer versions of Boto. 2013-11-07 16:04:55 -05:00
Chris Church
9aacecd3fa Allow specifying an alternate ec2.ini path via EC2_INI_PATH environment variable. 2013-10-04 16:14:05 -04:00
Herby Gillot
8b3674bf58 minor spacing cleanup 2013-09-23 21:43:00 -04:00
Herby Gillot
6ddebb3fad ec2 inventory route53 tagging:
* make filtering more comprehensive
* add checks against missing route53 zone exclusion option
2013-09-23 21:40:18 -04:00
Herby Gillot
91785ba045 ec2 inventory: Add the ability to group instances by Route 53 domain
names.
2013-09-23 14:00:56 -04:00
Herby Gillot
36fe595de8 ec2 inventory script: Add a global group for EC2 and RDS instances when
listing EC2 inventory
2013-09-02 22:02:56 -04:00
Jeremy Price
ad75350919 adding regions_exclude parameter to be able to do subtractive region exclusion. Defaults to us-gov-west-1 so as to not cause errors for people who don't have govcloud credentials but get it in their regions list 2013-08-31 17:58:37 -04:00
Herby Gillot
c2f8215c06 ec2 inventory: Verify that a security group exists before trying to use its name as a key in inventory. 2013-08-22 15:29:15 -05:00
Tim Gerla
57b72d242a ec2 inventory plugin: fix whitespace around connection validity test 2013-06-26 09:22:16 -07:00
jclaybaugh
f4db6d1a91 fixed whitespace and added a comment to explain if statement 2013-06-07 18:25:14 +00:00
jclaybaugh
4733dc6b5b added error checking around boto ec2 connection errors when using a bad region name 2013-06-07 18:13:22 +00:00
Michael DeHaan
76723f6b37 Merge pull request #2610 from peterjanes/devel
Basic RDS support for EC2 inventory
2013-04-27 08:10:57 -07:00
milan
27b8d3567e check hostname presence 2013-03-15 10:15:41 +01:00
Peter Janes
bcc2e84a4b Fix reference to parameter group name 2013-03-13 16:51:43 -04:00
Peter Janes
dd2d0dd175 Add basic inventory support for RDS instances 2013-03-13 16:43:26 -04:00
Blair Zajac
fa8e653011 Simplify and correct comparisons with None. 2013-02-16 13:32:48 -05:00
Tim Gerla
168fcb0a4a Only inventory "running" EC2 instances. "stopped" is also a valid state and these should not be inventoried. 2013-01-30 11:01:25 -08:00
Peter Sankauskas
39efcd0766 While I haven't done this, it is possible to bring up an instance
without a keypair, so this takes care of that scenario
2012-11-07 16:56:45 -08:00
Peter Sankauskas
aa0434535e Adding 2 more groups of instances - instance types and key pairs 2012-11-06 16:16:52 -08:00
Peter Sankauskas
60c69e9845 Allowing the EC2 inventory script to gracefully handle AWS API issues 2012-10-22 14:08:30 -07:00
Rodney Quillo
8344511e47 Fix check boto version bug #1280 2012-10-17 10:47:28 +08:00
Michael DeHaan
41dd4a1f93 Merge plugins tree 2012-10-08 07:45:25 -04:00