Advertisement
Guest User

splunk salt state

a guest
Jul 6th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. install-splunk:
  2. pkg.installed:
  3. - sources:
  4. - splunk-6.1.2-213098-linux-2.6-x86_64.rpm: salt://splunk/files/splunk-6.1.2-213098-linux-2.6-x86_64.rpm
  5. - requre_in:
  6. - service: splunk
  7. - name: splunk
  8.  
  9. configure-splunk:
  10. cmd.run:
  11. - name: |
  12. chown -R splunk:splunk /opt/splunk
  13. /opt/splunk/bin/splunk enable boot-start -user splunk --accept-license
  14. chown -R splunk:splunk /opt/splunk
  15. service splunk start
  16. - user: root
  17. - requre_in:
  18. - service: splunk
  19. - unless: test -x /etc/rc.d/rc3.d/*splunk
  20.  
  21. splunk:
  22. service:
  23. - running
  24. - enable: True
  25. - reload: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement