Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
40ce0727
Commit
40ce0727
authored
Jun 14, 2015
by
Victor Schröder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds the logic to process the new config entries about ElastiCache replication groups
parent
22020ac3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
plugins/inventory/ec2.py
+7
-0
No files found.
plugins/inventory/ec2.py
View file @
40ce0727
...
...
@@ -250,6 +250,12 @@ class Ec2Inventory(object):
else
:
self
.
all_rds_instances
=
False
# Return all ElastiCache replication groups? (if ElastiCache is enabled)
if
config
.
has_option
(
'ec2'
,
'all_elasticache_replication_groups'
)
and
self
.
elasticache_enabled
:
self
.
all_elasticache_replication_groups
=
config
.
getboolean
(
'ec2'
,
'all_elasticache_replication_groups'
)
else
:
self
.
all_elasticache_replication_groups
=
False
# Return all ElastiCache clusters? (if ElastiCache is enabled)
if
config
.
has_option
(
'ec2'
,
'all_elasticache_clusters'
)
and
self
.
elasticache_enabled
:
self
.
all_elasticache_clusters
=
config
.
getboolean
(
'ec2'
,
'all_elasticache_clusters'
)
...
...
@@ -295,6 +301,7 @@ class Ec2Inventory(object):
'group_by_elasticache_engine'
,
'group_by_elasticache_cluster'
,
'group_by_elasticache_parameter_group'
,
'group_by_elasticache_replication_group'
,
]
for
option
in
group_by_options
:
if
config
.
has_option
(
'ec2'
,
option
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment