Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible Framework Container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Playbooks
Ansible Framework Container
Commits
83810bd8
Commit
83810bd8
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix/Issue-9'
parents
cb6392d9
7096f46e
No related branches found
Branches containing commit
Tags
Issue-9
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cloud/ec2.py
+5
-3
5 additions, 3 deletions
cloud/ec2.py
cloud/jiffybox.py
+5
-3
5 additions, 3 deletions
cloud/jiffybox.py
with
10 additions
and
6 deletions
cloud/ec2.py
+
5
−
3
View file @
83810bd8
...
...
@@ -317,9 +317,11 @@ class Ec2Inventory(object):
cache_dir
=
os
.
path
.
join
(
cache_dir
,
'
profile_
'
+
self
.
boto_profile
)
if
not
os
.
path
.
exists
(
cache_dir
):
os
.
makedirs
(
cache_dir
)
self
.
cache_path_cache
=
cache_dir
+
"
/ansible-ec2.cache
"
self
.
cache_path_index
=
cache_dir
+
"
/ansible-ec2.index
"
suffix
=
''
if
'
ANSIBLE_COMPANY
'
in
os
.
environ
:
suffix
=
'
-
'
+
os
.
environ
[
'
ANSIBLE_COMPANY
'
]
self
.
cache_path_cache
=
cache_dir
+
"
/ansible-ec2
"
+
suffix
+
"
.cache
"
self
.
cache_path_index
=
cache_dir
+
"
/ansible-ec2
"
+
suffix
+
"
.index
"
self
.
cache_max_age
=
config
.
getint
(
'
ec2
'
,
'
cache_max_age
'
)
if
config
.
has_option
(
'
ec2
'
,
'
expand_csv_tags
'
):
...
...
This diff is collapsed.
Click to expand it.
cloud/jiffybox.py
+
5
−
3
View file @
83810bd8
...
...
@@ -130,9 +130,11 @@ class JiffyBoxInventory(object):
cache_dir
=
os
.
path
.
expanduser
(
config
.
get
(
'
jiffybox
'
,
'
cache_path
'
))
if
not
os
.
path
.
exists
(
cache_dir
):
os
.
makedirs
(
cache_dir
)
self
.
cache_path_cache
=
cache_dir
+
"
/ansible-jiffybox.cache
"
self
.
cache_path_index
=
cache_dir
+
"
/ansible-jiffybox.index
"
suffix
=
''
if
'
ANSIBLE_COMPANY
'
in
os
.
environ
:
suffix
=
'
-
'
+
os
.
environ
[
'
ANSIBLE_COMPANY
'
]
self
.
cache_path_cache
=
cache_dir
+
"
/ansible-jiffybox
"
+
suffix
+
"
.cache
"
self
.
cache_path_index
=
cache_dir
+
"
/ansible-jiffybox
"
+
suffix
+
"
.index
"
self
.
cache_max_age
=
config
.
getint
(
'
jiffybox
'
,
'
cache_max_age
'
)
# Do we need to just include hosts that match a pattern?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment