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
1854e97c
Commit
1854e97c
authored
Oct 07, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splunk has to be started once to generate some files.
parent
9b68d9ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
playbooks/roles/splunkforwarder/tasks/main.yml
+15
-0
No files found.
playbooks/roles/splunkforwarder/tasks/main.yml
View file @
1854e97c
...
@@ -44,6 +44,21 @@
...
@@ -44,6 +44,21 @@
user
:
name=splunk group=splunk createhome=no state=present append=yes groups=syslog
user
:
name=splunk group=splunk createhome=no state=present append=yes groups=syslog
when
:
download_deb.changed
when
:
download_deb.changed
# Need to start splunk manually so that it can create various files
# and directories that aren't created till the first run and are needed
# to run some of the below commands.
-
name
:
splunkforwarder | start splunk manually
shell
:
>
{{splunkforwarder_output_dir}}/bin/splunk start --accept-license --answer-yes --no-prompt
creates={{splunkforwarder_output_dir}}/var/lib/splunk
when
:
download_deb.changed
register
:
started_manually
-
name
:
splunkforwarder | stop splunk manually
shell
:
>
{{splunkforwarder_output_dir}}/bin/splunk stop --accept-license --answer-yes --no-prompt
when
:
download_deb.changed and started_manually.changed
-
name
:
splunkforwarder | create boot script
-
name
:
splunkforwarder | create boot script
shell
:
>
shell
:
>
{{splunkforwarder_output_dir}}/bin/splunk enable boot-start -user splunk --accept-license --answer-yes --no-prompt
{{splunkforwarder_output_dir}}/bin/splunk enable boot-start -user splunk --accept-license --answer-yes --no-prompt
...
...
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