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
OpenEdx
configuration
Commits
a4e12dba
Commit
a4e12dba
authored
Jun 02, 2016
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable splunk-server role to manage dashboards
parent
ed7dc2c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
playbooks/roles/splunk-server/defaults/main.yml
+7
-0
playbooks/roles/splunk-server/tasks/main.yml
+19
-0
No files found.
playbooks/roles/splunk-server/defaults/main.yml
View file @
a4e12dba
...
...
@@ -64,6 +64,13 @@ SPLUNK_FIELD_EXTRACTIONS: []
# name:
# regex:
SPLUNK_DASHBOARDS
:
[]
# A list of paths of dashboard xml.j2 templates.
# xml templates must be of the form expected by Splunk.
# For an example, create a dashboard in the Splunk UI and go to Edit > Edit Source
# e.g.
# - {{ role_path }}/../../../secure-repo/path/to/templates/template.xml.j2
SPLUNK_ALERT_DEFAULT_SEVERITY
:
"
3"
...
...
playbooks/roles/splunk-server/tasks/main.yml
View file @
a4e12dba
...
...
@@ -100,6 +100,25 @@
-
install:configuration
when
:
SPLUNK_FIELD_EXTRACTIONS is defined
-
name
:
Make dashboards directory
file
:
state
:
directory
path
:
/opt/splunk/etc/apps/search/local/data/ui/views
owner
:
"
{{
splunk_user
}}"
group
:
"
{{
splunk_user
}}"
-
name
:
configure splunk dashboards
template
:
src
:
"
{{
item
}}"
dest
:
/opt/splunk/etc/apps/search/local/data/ui/views/{{ item.rstrip('.j2') | basename }}
owner
:
"
{{
splunk_user
}}"
group
:
"
{{
splunk_user
}}"
mode
:
0700
with_items
:
SPLUNK_DASHBOARDS
tags
:
-
install
-
install:configuration
-
name
:
restart splunk
service
:
name
:
splunk
...
...
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