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
cc01f7b7
Commit
cc01f7b7
authored
Mar 27, 2014
by
Ingmar Hupp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not filter out RDS instances by default or in INI file to avoid changing current behaviour.
parent
456d2627
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
plugins/inventory/ec2.ini
+2
-2
plugins/inventory/ec2.py
+3
-1
No files found.
plugins/inventory/ec2.ini
View file @
cc01f7b7
...
@@ -38,8 +38,8 @@ vpc_destination_variable = ip_address
...
@@ -38,8 +38,8 @@ vpc_destination_variable = ip_address
# Route53, uncomment and set 'route53' to True.
# Route53, uncomment and set 'route53' to True.
route53
=
False
route53
=
False
# To
include RDS instances in inventory, set to Tru
e.
# To
exclude RDS instances from the inventory, uncomment and set to Fals
e.
rds
=
False
#
rds = False
# Additionally, you can specify the list of zones to exclude looking up in
# Additionally, you can specify the list of zones to exclude looking up in
# 'route53_excluded_zones' as a comma-separated list.
# 'route53_excluded_zones' as a comma-separated list.
...
...
plugins/inventory/ec2.py
View file @
cc01f7b7
...
@@ -223,7 +223,9 @@ class Ec2Inventory(object):
...
@@ -223,7 +223,9 @@ class Ec2Inventory(object):
config
.
get
(
'ec2'
,
'route53_excluded_zones'
,
''
)
.
split
(
','
))
config
.
get
(
'ec2'
,
'route53_excluded_zones'
,
''
)
.
split
(
','
))
# RDS
# RDS
self
.
rds_enabled
=
config
.
getboolean
(
'ec2'
,
'rds'
)
self
.
rds_enabled
=
True
if
config
.
has_option
(
'ec2'
,
'rds'
):
self
.
rds_enabled
=
config
.
getboolean
(
'ec2'
,
'rds'
)
# Cache related
# Cache related
cache_dir
=
os
.
path
.
expanduser
(
config
.
get
(
'ec2'
,
'cache_path'
))
cache_dir
=
os
.
path
.
expanduser
(
config
.
get
(
'ec2'
,
'cache_path'
))
...
...
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