Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
a52aa6df
Commit
a52aa6df
authored
Jun 14, 2013
by
Joe Blaylock
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #108 from edx/jrbl/fixing_ec2_ini
allow ini file setting via environment variable
parents
ad10b033
e4fa602c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
playbooks/ec2.py
+4
-1
No files found.
playbooks/ec2.py
View file @
a52aa6df
...
...
@@ -222,7 +222,10 @@ class Ec2Inventory(object):
help
=
'Get all the variables about a specific instance'
)
parser
.
add_argument
(
'--refresh-cache'
,
action
=
'store_true'
,
default
=
False
,
help
=
'Force refresh of cache by making API requests to EC2 (default: False - use cache files)'
)
parser
.
add_argument
(
'--inifile'
,
dest
=
'inifile'
,
help
=
'Path to init script to use'
,
default
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
+
'/ec2.ini'
,)
default_inifile
=
os
.
environ
.
get
(
"ANSIBLE_EC2_INI"
,
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
+
'/ec2.ini'
)
parser
.
add_argument
(
'--inifile'
,
dest
=
'inifile'
,
help
=
'Path to init script to use'
,
default
=
default_inifile
)
self
.
args
=
parser
.
parse_args
()
...
...
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