Splunk Enterprise

how to push apps from DS to CM ?

vikasg
Loves-to-Learn

Hello Experts , 

I have never done this and wonder if there is a best way to achieve below 

I want to use DS to push intial configurations from DS to CM and then use CM as porxy for IDX cluster .  I tried below 

1) added CM as client and for the serverclass I have added 'stateOnClient = noop' to each of the app entries just to make sure those application does not work locally no the CM 

2) after above step confs lands on cm under /opt/splunk/etc/apps ,however I want them to land to /opt/splukn/etc/master-apps

question is can DS put the directories in a diffferent locations than default that is /opt/splunk/etc/apps

Labels (3)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @vikasg 

It’s possible to do this by setting the repositoryLocation value in deploymentclient.conf however in terms of supportability and recommendations…well.. I’m not sure you’ll get much positive encouragement to do this as it’s not really recommended. This approach may also break the UI editing capability for managing clients because the UI is not built to manage this setting. 

repositoryLocation = $SPLUNK_HOME/etc/apps
* The location where content installs when downloaded from a deployment server.
* For the Splunk platform instance on the deployment client to recognize an app
  or configuration content, install the app or content in the default location:
  $SPLUNK_HOME/etc/apps.
    * NOTE: Apps and configuration content for deployment can be in other
      locations on the deployment server. Set both 'repositoryLocation' and
      'serverRepositoryLocationPolicy' explicitly to ensure that the content
      installs on the deployment client in the correct location, which is
      $SPLUNK_HOME/etc/apps.
    * The deployment client uses the following 'serverRepositoryLocationPolicy'
      to determine the value of 'repositoryLocation'.

Check out https://docs.splunk.com/Documentation/Splunk/9.4.2/Admin/Deploymentclientconf docs for more info. 

 

🌟 Did this answer help you? If so, please consider:

    • Adding karma to show it was useful
    • Marking it as the solution if it resolved your issue
    • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing.

0 Karma

vikasg
Loves-to-Learn

@livehybrid  Thank you for the quick response . Let me a give a shot on this will keep posted here how it goes . 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Yes, it is possible exactly that way @livehybrid described. But you still have to manually log in to CM and validate the bundle and push it so it doesn't save you much work (and makes the process... less obvious)

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...