Deployment Architecture

How do I configure deployment server where I have a main or master server that has apps it pushes to its clients?

tam82
Explorer

How do I configure deployment server where I have a main or master server that has apps it pushes to its clients and will push to a secondary server behind a firewall.   Then that server pushes apps  to its set of clients Clients...

Labels (1)
0 Karma

shivanshu1593
Builder

For a deployment server to push the files to its peers, the app containing those files must lie under $SPLUNK_HOME/etc/deployment-apps. When you deploy an app, it gets installed under $SPLUNK_HONE/etc/apps. Since there's no direct way, you can try the following:

1. Have main DS push the config to the server behind firewall.

2. Write a simple bash script to to copy the app to the $SPLUNK_HOME/etc/deployment -apps directory in the secondary server. That script can be designed to check for the changes in the file and copy again to the deployment -apps, should you push an update from the main DS. You can do this by calculating hash of the app and keep checking it for changes (This is how Splunk does it too, they call it checksum to check for updates on DS for peers)

3. Have your secondary server push the changes to its peers for the first time/everytime there's a change in the app. You can configure this in the script itself to traverse to the /bin directory and run the command splunk reloaddeploy-server -class <<yourclassname>

 

Hope this helps,

**Kindly consider accepting as answer/upvoting if it helped you**

Thank you,
Shiv
###If you found the answer helpful, kindly consider upvoting/accepting it as the answer as it helps other Splunkers find the solutions to similar issues###
0 Karma
Get Updates on the Splunk Community!

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

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

Splunk Education Goes to Washington | Splunk GovSummit 2024

If you’re in the Washington, D.C. area, this is your opportunity to take your career and Splunk skills to the ...