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
3c69c50b
Unverified
Commit
3c69c50b
authored
May 16, 2016
by
Fred Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splunk server role
parent
820c41c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
133 additions
and
0 deletions
+133
-0
playbooks/roles/splunk-server/defaults/main.yml
+38
-0
playbooks/roles/splunk-server/meta/main.yml
+16
-0
playbooks/roles/splunk-server/tasks/main.yml
+71
-0
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/indexes.conf
+8
-0
No files found.
playbooks/roles/splunk-server/defaults/main.yml
0 → 100644
View file @
3c69c50b
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://openedx.atlassian.net/wiki/display/OpenOPS
# code style: https://openedx.atlassian.net/wiki/display/OpenOPS/Ansible+Code+Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Defaults for role splunk-server
#
#
# vars are namespaced with the module name.
#
splunk-server_role_name
:
splunk-server
splunk_user
:
"
splunk"
splunk_root
:
"
/vol/splunk/storage"
splunk_hot_dir
:
"
{{
splunk_root
}}/hot"
splunk_thawed_dir
:
"
{{
splunk_root
}}/thawed"
splunk_cold_dir
:
"
{{
splunk_root
}}/cold"
splunk_frozen_dir
:
"
{{
splunk_root
}}/frozen"
SPLUNK_INDEXES
:
-
"
default"
SPLUNK_VOLUMES
:
[]
#
# OS packages
#
splunk-server_debian_pkgs
:
[]
splunk-server_redhat_pkgs
:
[]
playbooks/roles/splunk-server/meta/main.yml
0 → 100644
View file @
3c69c50b
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://openedx.atlassian.net/wiki/display/OpenOPS
# code style: https://openedx.atlassian.net/wiki/display/OpenOPS/Ansible+Code+Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role includes for role splunk-server
dependencies
:
-
role
:
user
user_info
:
"
{{
COMMON_USER_INFO
}}"
-
role
:
mount_ebs
volumes
:
"
{{
SPLUNK_VOLUMES
}}"
playbooks/roles/splunk-server/tasks/main.yml
0 → 100644
View file @
3c69c50b
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://openedx.atlassian.net/wiki/display/OpenOPS
# code style: https://openedx.atlassian.net/wiki/display/OpenOPS/Ansible+Code+Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role splunk-server
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
-
name
:
Create bucket directories
file
:
path
:
"
{{
item
}}"
state
:
directory
owner
:
"
{{
splunk_user
}}"
group
:
"
{{
splunk_user
}}"
with_items
:
-
"
{{
splunk_hot_dir
}}"
-
"
{{
splunk_thawed_dir
}}"
-
"
{{
splunk_cold_dir
}}"
-
"
{{
splunk_frozen_dir
}}"
tags
:
-
"
install"
-
"
install:configuration"
-
name
:
Create configuration directory
file
:
path
:
"
{{
item
}}"
state
:
directory
owner
:
"
{{
splunk_user
}}"
group
:
"
{{
splunk_user
}}"
with_items
:
-
"
/opt/splunk/etc/apps/search/local"
tags
:
-
"
install"
-
"
install:configuration"
-
name
:
configure splunk buckets
template
:
src
:
"
opt/splunk/etc/apps/search/local/indexes.conf"
dest
:
"
/opt/splunk/etc/apps/search/local/indexes.conf"
owner
:
"
{{
splunk_user
}}"
group
:
"
{{
splunk_user
}}"
mode
:
0700
tags
:
-
"
install"
-
"
install:configuration"
-
name
:
restart splunk
service
:
name
:
splunk
state
:
restarted
tags
:
-
"
install"
-
"
install:configuration"
-
"
restart"
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/indexes.conf
0 → 100644
View file @
3c69c50b
{%
for
name
in
SPLUNK_INDEXES
-%}
[{{
name
}}]
coldPath
= {{
splunk_cold_dir
}}/{{
name
}}/
colddb
homePath
= {{
splunk_hot_dir
}}/{{
name
}}/
db
thawedPath
= {{
splunk_thawed_dir
}}/{{
name
}}/
thaweddb
coldToFrozenDir
= {{
splunk_frozen_dir
}}/{{
name
}}/
frozendb
{%-
endfor
%}
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