Deployment Architecture

Automating the Deployment Server

Navarro
Engager

I am aware that it is pretty simple to programmatically add new apps to Splunk's Deployment Server, as you must simply drop them in the right directory and invoke a reload of the service.

For server classes however, this does not seem so trivial.  The official documentation asks us to add apps to a server class manually, from the user interface.  This I don't like much as it is error prone and non reproducible.

Is there any way (or magic location in the Deployment Server's filesystem, like for the apps), where I can drop the configuration of a server class, for it to be loaded in the graphical UI automatically?  This will allow me to configure some simple Ansible/Puppet/Chef... task to take care of those files.

Labels (1)
Tags (1)
0 Karma
1 Solution

PaulPanther
Motivator

If I understand your question correct one way could be to edit the serverclass.conf directly as described in Deploy apps to clients - Splunk Documentation

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @Navarro,

I'm not sure that you can reload serverclasses.conf file without restarting Splunk on the Deployment Server, you can change apps but not conf files.

Anyway, I don't like to modify conf files by program because you need to restart Splunk and you have the risk to loose control on your deployment.

My hint is alway to design your deployment on paper (or Excel) and use the GUi interface to apply them.

I found a customer that used to modify ServerClasses only by SSH, but always manually, not by program and it was a very singular situation for the competence and the mental order of the user.

In few words, this customer had a very complex distributedd architecture so this use manually modified the serverclasses.conf file adding rows and rows of information in the conf file itself, 

In conclusion I don't hint to follow your approach, but you have to choose your own best approach.

Ciao.

Giuseppe

0 Karma

PaulPanther
Motivator

If I understand your question correct one way could be to edit the serverclass.conf directly as described in Deploy apps to clients - Splunk Documentation

Navarro
Engager

I missed that particular paragraph completely!  Thank you!

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...