Victor Schröder
f2d22c1373
Fixes error messages to mention ElastiCache
11 years ago
Victor Schröder
e8c3e3d645
Cleans some unnecessary white spaces in ec2.py dynamic inventory plugin
11 years ago
Victor Schröder
77a2ad0e8c
Improves code organization in get_dict_from_describe_dict method
11 years ago
Victor Schröder
41b034a5d2
Process information about replica clusters for ElastiCache replication groups
11 years ago
Victor Schröder
e692a18a29
Process information about primary clusters for ElastiCache replication groups
11 years ago
Victor Schröder
43f9a653d0
Process CacheNodeIdsToReboot complex type for cache clusters
11 years ago
Victor Schröder
ffd74049da
Comments about the naming pattern in the script, that certainly deserves future refactoring
11 years ago
Victor Schröder
f25ad9dc51
Adds the appropriate key checks for ElastiCache replication groups in get_dict_from_describe_dict method
11 years ago
Victor Schröder
069ee11699
Creates add_elasticache_replication_group method in ec2.py dynamic inventory script
11 years ago
Victor Schröder
c18f6cae11
Creates get_elasticache_replication_groups_by_region method to handle the API call
11 years ago
Victor Schröder
40ce072747
Adds the logic to process the new config entries about ElastiCache replication groups
11 years ago
Victor Schröder
e64daba8e7
Adds a flag (is_redis) to prevent duplicity of information about Redis single node clusters
11 years ago
Victor Schröder
2a242a0e1b
Creates add_elasticache_node method in ec2.py
11 years ago
Victor Schröder
98a5531966
Makes the API requests to return nodes' information too
11 years ago
Victor Schröder
dbb0304cea
Adds uncammelize helper method to put the labels in the expected output format
11 years ago
Victor Schröder
c6f2b08a60
Creates get_host_info_dict_from_describe_dict helper method to translate information from a 'describe' call (we don't have instance objects in this case)
11 years ago
Victor Schröder
2cd76cf0e3
Creates add_elasticache_cluster method to digest the API answer about ElastiCache clusters
11 years ago
Victor Schröder
06c6db8e6b
Adds get_elasticache_clusters_by_region method to perform the API call to AWS (and sadly finds out that Boto support for ElastiCache is very outdated...)
11 years ago
Victor Schröder
50b320615e
Little improvement in the organization of the configuration loader method
11 years ago
Victor Schröder
bc80bd36af
Adds the necessary logic to ec2.py to load ElastiCache related configuration
11 years ago
Paul Logston
e8768b2b87
Use six to check for string_types
11 years ago
Paul Logston
50932ce556
Use six.moves to import configparser
11 years ago
Paul Logston
1674b47445
Make ec2 inventory plugin Python 3 compatible
11 years ago
Johannes 'fish' Ziemke
c7f3362795
Replace - in ec2 inventory as well
...
Dash (-) is not a variable ansible group name, so it needs to be replaced as well.
11 years ago
Kim Johansson
576832e4c9
Always define error before using it
...
When the error reason is "Forbidden", the code throws a Python exception
rather than simply outputting the exception reason.
It's not nice to throw a Python exception when all the info to display
a proper message is available.
11 years ago
Steve Gargan
ada2567dfb
log errors and explicitly exit rather than raising exceptions
11 years ago
Steve Gargan
fbff0449ce
fix for issue #10422 . outputs informative error message when AWS credentials are not available
11 years ago
Chris Church
05bb31450b
Update EC2 inventory script with changes from Tower.
...
- Adds to changes from #6676 to support nested VPC group and VPC grouping for RDS.
- Adds to changes from #8822 to ignore invalid instance filters.
- Implements grouping by AMI ID based on #7573 .
- Implements configuration options to limit which groups are created automatically, based on #7573 .
11 years ago
Brian Coca
5eafa1e7c3
Merge pull request #9825 from kalefranz/ec2-inventory-tags
...
Allow ec2 tags to be used to address servers in ec2 dynamic inventory.
11 years ago
Chris Meyers
48d4da3a94
add tagless grouping for destinations without any tags
11 years ago
Jason
d39a25d225
Corrected spelling mistake
11 years ago
Dan Jenkins
d7b36dd9e7
Add a new inventory group so you can see instances in a particular VPC
11 years ago
Kale Franz
28e69b9017
Allow ec2 tags to be used to address servers in ec2 dynamic inventory.
11 years ago
Andres Silva
4755bde28d
adding for loop on list to to handle the return of none when the list is empty. With the previous method if the list was empty the script died. See http://stackoverflow.com/questions/18852324/typeerror-sequence-item-0-expected-string-nonetype-found
11 years ago
Michal Gasek
5b5103e6b4
Add support for filtering EC2 instances in dynamic inventory
...
This allows filtering out EC2 instances based on various different
filters including tags. As requested in 7480 it supports logical "OR"
instead of "AND" on the provided list of filters.
11 years ago
Michael Peters
8b1d6f5e75
fixing "else" typo
11 years ago
Michael Peters
7194fe1064
need to handle the case where include_pattern and exclude_pattern exist in the config file but contain empty strings
11 years ago
Michael Peters
7c2cc15c59
adding include_pattern and exclude_pattern options to ec2.py
12 years ago
James Cammarata
0ae87cb725
Merge branch 'ec2inv-rdstoggle' of https://github.com/ingmar/ansible into ingmar-ec2inv-rdstoggle
...
Conflicts:
plugins/inventory/ec2.py
12 years ago
James Cammarata
5764015876
Merge branch 'ec2_nested_groups' of https://github.com/cchurch/ansible into cchurch-ec2_nested_groups
...
Conflicts:
plugins/inventory/ec2.py
12 years ago
Adam Chainz
13a5993a49
Fix indentation in ec2.py
12 years ago
Chris Church
7f27c56a79
Add option to return all EC2/RDS instances regardless of state.
12 years ago
Chris Church
4036df11cf
Add configurable option to support nested inventory groups.
12 years ago
Ingmar Hupp
cc01f7b7f5
Do not filter out RDS instances by default or in INI file to avoid changing current behaviour.
12 years ago
Ingmar Hupp
456d2627e8
EC2 inventory toggle to exclude/include RDS instances.
12 years ago
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.
12 years ago
Timur Batyrshin
658c15930e
reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 ( #5852 )
12 years ago
jctanner
57d54c1da5
Merge pull request #5236 from willthames/ec2_inv_rds_fail_safe
...
ec2 inventory: Fail EC2 inventory better with restricted EC2 users
12 years ago
jctanner
fd4ae165e4
Merge pull request #5153 from willthames/ec2_inventory_multiuser
...
Allow multiple users to use ec2 inventory scripts
12 years ago
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.
12 years ago