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
8a065a45
Commit
8a065a45
authored
7 years ago
by
Cory Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OPS-2532 Dont download tars if you already have them
parent
93c0aa38
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
playbooks/roles/splunk-server/defaults/main.yml
+6
-1
playbooks/roles/splunk-server/tasks/main.yml
+12
-2
No files found.
playbooks/roles/splunk-server/defaults/main.yml
View file @
8a065a45
...
...
@@ -70,7 +70,12 @@ SPLUNK_DASHBOARDS: []
# e.g.
# - {{ role_path }}/../../../secure-repo/path/to/templates/template.xml.j2
SPLUNK_APP_S3_PATH
:
'
s3://edx-splunk/apps'
SPLUNK_APP_S3_PATH
:
'
BUCKET_S3_URL_GOES_HERE'
# This is the bucket where splunk apps are stored
# A valid bucket name is not provided above because we dont want the bucket to be claimed by someone else
#
# example: s3://my-bucket-goes-here
SPLUNK_APP_DOWNLOAD_PATH
:
"
{{
splunk_home
}}/etc/apps/app_downloads"
# Source bucket for splunk apps
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/splunk-server/tasks/main.yml
View file @
8a065a45
...
...
@@ -171,14 +171,24 @@
-
install
-
install:configuration
-
name
:
download app tars
shell
:
"
aws
s3
cp
{{
SPLUNK_APP_S3_PATH
}}/{{
item.file_name
}}
{{
SPLUNK_APP_DOWNLOAD_PATH
}}/{{
item.file_name
}}"
-
name
:
discover existing app tars
shell
:
"
test
-f
{{
SPLUNK_APP_DOWNLOAD_PATH
}}/{{
item.file_name
}}"
register
:
app_present
tags
:
-
install
-
install:configuration
with_items
:
-
"
{{
SPLUNK_APP_TARS
}}"
-
name
:
download missing tars
shell
:
"
aws
s3
cp
{{
SPLUNK_APP_S3_PATH
}}/{{
item.file_name
}}
{{
SPLUNK_APP_DOWNLOAD_PATH
}}/{{
item.file_name
}}"
tags
:
-
install
-
install:configuration
when
:
item.rc != 0
with_items
:
-
"
{{
app_present.results
}}"
-
name
:
verify app checksums
shell
:
"
echo
\"
{{
item.md5sum
}}
{{
SPLUNK_APP_DOWNLOAD_PATH
}}/{{
item.file_name
}}
\"
|
md5sum
-c
--status"
tags
:
...
...
This diff is collapsed.
Click to expand it.
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