Installing Splunk on Redhat

142 views
Skip to first unread message

krishna

unread,
Aug 12, 2016, 2:18:47 PM8/12/16
to Salt-users
hello,

how can we install splunk on redhat box using salt

do we need to change any modifications in the splunk formula that works on windows boxes 

kindly let me know 

thanks 
krishna

Charles Baker

unread,
Aug 12, 2016, 3:37:50 PM8/12/16
to salt-...@googlegroups.com
Which formula are you speaking of? This one?


The example pillar references a deb file which is package format for Debian family of linux distros (Debian, Ubuntu, Cruncbang, Mint, etc.)


--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Charles H. Baker
864.990.1297
Knowing is not enough; we must apply. Willing is not enough; we must do. Bruce Lee

krishna

unread,
Aug 15, 2016, 6:47:19 PM8/15/16
to Salt-users
Hi charles

i have my own splunk formula which works on windows , but i have no idea how to make changes to that formula so that it gets installed on Linux boxes. Below is the config.sls and init.sls i have used for windows. Which changes i have to make so that it gets installed on linux boxes 

help me out on this 

 
config.sls
download-config-base:
  file.managed:
    - name:  C:\Temp\zzz_config_base.zip
    - source: http:config/zzz_config_base.zip
    - source_hash: http:/zzz_config_base.zip.md5sum
    - makedirs: True

install-unzip:
  pkg.installed:
    - name: 7-zip
    - version: 9.20.00.0
    - refresh: True

extract-unzip:
  cmd.run:
    - cwd: "C:\\Program Files\\7-Zip"
    - name: '7z.exe -y x -o"C:\\Program Files\SplunkUniversalForwarder\etc\apps"  C:\Temp\zzz_config_base.zip'
  require:
    - pkg: install-unzip
    - cmd: download-config-base

service-restart:
  service.running:
    - name: SplunkForwarder
    - watch:
      - file: download-config-base
{% endif %}
 init.sls
{% if salt['grains.get']('os_family') == 'Windows' %}
{% from "splunk/map.jinja" import splunk with context %}
include:
  - .config
agent-install:
  pkg.installed:
    - name: splunk
    - version: {{ splunk.install.version }}
{% endif %}
thanks


On Friday, 12 August 2016 12:37:50 UTC-7, Charles Baker wrote:
Which formula are you speaking of? This one?


The example pillar references a deb file which is package format for Debian family of linux distros (Debian, Ubuntu, Cruncbang, Mint, etc.)

On Fri, Aug 12, 2016 at 2:18 PM, krishna <vamshi....@gmail.com> wrote:
hello,

how can we install splunk on redhat box using salt

do we need to change any modifications in the splunk formula that works on windows boxes 

kindly let me know 

thanks 
krishna

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ben Hosmer

unread,
Aug 16, 2016, 9:04:12 AM8/16/16
to Salt-users
One of the biggest changes you'll need to make are the paths:

  file.managed:
    - name:  C:\Temp\zzz_config_base.zip
  file.managed:
    - name:  /tmp/some/posix/path/
zzz_config_base.zip
You could browse through some of the other formulas and use them as jumping off points.

Charles Baker

unread,
Aug 16, 2016, 12:13:21 PM8/16/16
to salt-...@googlegroups.com
I would also suggest the following minimum rules of thumb with regards to automation

First:  Do it by hand at least once and document the process before trying to automate it.
Second: Test the document by having someone else unfamiliar with the process do it by hand from your documentation noting any required changes to the document.
Third: Automate what you documented and tested.





To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

krishna

unread,
Aug 17, 2016, 1:29:07 PM8/17/16
to Salt-users
Thank you Charles and Ben 
Reply all
Reply to author
Forward
0 new messages