<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: targetRepositoryLocation only working in global? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197819#M7408</link>
    <description>&lt;P&gt;@yannk,  sorry I should have provided more details.  I am editing the serverclass.conf file directly and i receive message that I have a typo. If I move the same line to the global stanza it works correctly.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Mar 2014 06:45:19 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2014-03-22T06:45:19Z</dc:date>
    <item>
      <title>targetRepositoryLocation only working in global?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197817#M7406</link>
      <description>&lt;P&gt;Hello I am unable to configure targetRepositoryLocation in serverclass.conf.  Only seems o work in global.  Is anyone else see this?&lt;/P&gt;

&lt;P&gt;Splunk 6.0.2&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 23:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197817#M7406</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2014-03-21T23:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation only working in global?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197818#M7407</link>
      <description>&lt;P&gt;if you are using the UI "forwarder management" then some settings are not supported (but they are in the configuration file) &lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Updating/Forwardermanagementcompatibility"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Updating/Forwardermanagementcompatibility&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 23:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197818#M7407</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-03-21T23:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation only working in global?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197819#M7408</link>
      <description>&lt;P&gt;@yannk,  sorry I should have provided more details.  I am editing the serverclass.conf file directly and i receive message that I have a typo. If I move the same line to the global stanza it works correctly.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2014 06:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197819#M7408</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2014-03-22T06:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation only working in global?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197820#M7409</link>
      <description>&lt;P&gt;The relevant docs don't claim targetRepositoryLocation can be overriden on the serverclass level, it's only listed in global. Are you sure this is supposed to work?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Admin/Serverclassconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Admin/Serverclassconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2014 11:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197820#M7409</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-23T11:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation only working in global?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197821#M7410</link>
      <description>&lt;P&gt;You are correct.  This can only be done in global or on the deployment client. &lt;A href="http://wiki.splunk.com/Community:Deploy:How_To_Set_Up_Search_Head_Pooling_and_Shared_Bundle"&gt;http://wiki.splunk.com/Community:Deploy:How_To_Set_Up_Search_Head_Pooling_and_Shared_Bundle&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 21:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197821#M7410</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2014-03-25T21:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation only working in global?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197822#M7411</link>
      <description>&lt;P&gt;&lt;CODE&gt;NO NO NO!!!  This is INCORRECT!&lt;/CODE&gt; Please see my other answer!!!!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 01:18:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197822#M7411</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T01:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation only working in global?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197823#M7412</link>
      <description>&lt;P&gt;There is a bug in &lt;CODE&gt;serverclass.spec&lt;/CODE&gt; that causes Splunk Deployment Server to give the following &lt;CODE&gt;FALSE&lt;/CODE&gt; error logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Checking conf files for problems...
                Invalid key in stanza [serverClass:site1_indexers] in /opt/splunk/etc/system/local/serverclass.conf, line XXX: targetRepositoryLocation  (value:  $SPLUNK_HOME/etc/master-apps).
                Invalid key in stanza [serverClass:site1_indexers] in /opt/splunk/etc/system/local/serverclass.conf, line XXX+1: targetRepositoryLocationPolicy  (value:  rejectAlways).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can confirm that it actually works by running &lt;CODE&gt;/opt/splunk/bin/splunk show config serverclass | grep targetRepository&lt;/CODE&gt; which will give you this (which clearly indicates functional configurations):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;targetRepositoryLocation=$SPLUNK_HOME/etc/apps
targetRepositoryLocation=$SPLUNK_HOME/etc/master-apps
targetRepositoryLocationPolicy=rejectAlways
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can double-check that it should work by running &lt;CODE&gt;/opt/splunk/bin/splunk btool serverclass list --debug| grep targetRepository&lt;/CODE&gt; which will give you this (which clearly indicates valid configurations):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/etc/system/default/serverclass.conf targetRepositoryLocation = $SPLUNK_HOME/etc/apps
/opt/splunk/etc/system/local/serverclass.conf   targetRepositoryLocation = $SPLUNK_HOME/etc/master-apps
/opt/splunk/etc/system/local/serverclass.conf   targetRepositoryLocationPolicy = rejectAlways
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also confirm by checking the target Cluster Master destination which will clearly show that it does indeed pull in CM apps to &lt;CODE&gt;$SPLUNK_HOME/etc/apps/&lt;/CODE&gt; as well as Indexer apps (via a different serverclass using the &lt;CODE&gt;targetRepository*&lt;/CODE&gt; settings) to &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;It is unfortunate the both the documentation and the spec files are in error.  I am open a documentation updated request to get this mess cleared up.&lt;/P&gt;

&lt;P&gt;NOTE: You may, or may not, desire the &lt;CODE&gt;rejectAlways&lt;/CODE&gt; setting.  Use it or don't; it has nothing to do with the viability of the other setting(s).&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 01:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/197823#M7412</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T01:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation only working in global?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/747385#M29515</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Splunk Remote Upgrader for Linux Universal Forwarders&lt;BR /&gt;&lt;BR /&gt;It's not working, please see below serverclass.conf even tried by adding&amp;nbsp;targetRepositoryLocationPolicy under serverClass stanza [serverClass:push_force_del_pkg_uf]&lt;BR /&gt;&lt;BR /&gt;in the UF still it is copying the app under /opt/splunkforwarder/etc/apps folder but i want it to be in /tmp directory&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[global]
targetRepositoryLocationPolicy = rejectAlways

[serverClass:push_upg_pkg_app:app:splunk_app_uf_remote_upgrade_linux]

[serverClass:push_upg_pkg_app]
whitelist.0 = XX.XX.XX.XX

[serverClass:push_force_del_pkg_uf]
targetRepositoryLocation = /tmp/
whitelist.0 = XX.XX.XX.XX

[serverClass:push_force_del_pkg_uf:app:SPLUNK_UPDATER_MONITORED_DIR]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apujar_0-1748939055714.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39264iE3983CD941A8D91D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apujar_0-1748939055714.png" alt="apujar_0-1748939055714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 08:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-only-working-in-global/m-p/747385#M29515</guid>
      <dc:creator>apujar</dc:creator>
      <dc:date>2025-06-03T08:24:46Z</dc:date>
    </item>
  </channel>
</rss>

