<?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 targetRepositoryLocation in serverclass.conf - Global only or can it be overridden? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110278#M4167</link>
    <description>&lt;P&gt;Pretty simple question. According to the serverclass.conf spec here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Admin/Serverclassconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Admin/Serverclassconf&lt;/A&gt;&lt;BR /&gt;
that some global properties can be overridden at lower levels (serverClass or app).&lt;/P&gt;

&lt;P&gt;I'd like to override targetRepositoryLocation for one specific serverClass (pooled search heads vs non-pooled search heads are each in their own serverClass and have different */apps directories). Can this be done? Despite saying "all overridable properties are marked as such" not a lot seems to be marked as whether or not it is overridable.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2013 18:59:44 GMT</pubDate>
    <dc:creator>msarro</dc:creator>
    <dc:date>2013-10-22T18:59:44Z</dc:date>
    <item>
      <title>targetRepositoryLocation in serverclass.conf - Global only or can it be overridden?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110278#M4167</link>
      <description>&lt;P&gt;Pretty simple question. According to the serverclass.conf spec here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Admin/Serverclassconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Admin/Serverclassconf&lt;/A&gt;&lt;BR /&gt;
that some global properties can be overridden at lower levels (serverClass or app).&lt;/P&gt;

&lt;P&gt;I'd like to override targetRepositoryLocation for one specific serverClass (pooled search heads vs non-pooled search heads are each in their own serverClass and have different */apps directories). Can this be done? Despite saying "all overridable properties are marked as such" not a lot seems to be marked as whether or not it is overridable.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2013 18:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110278#M4167</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2013-10-22T18:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation in serverclass.conf - Global only or can it be overridden?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110279#M4168</link>
      <description>&lt;P&gt;You can redefine per class.&lt;/P&gt;

&lt;P&gt;I saw an example where each class was linked to a folder, then all apps to deploy were store per folder, and deployed using a method like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:myclass]
targetRepositoryLocation=/mylocation/myclass/
whitelist.0=mywhitelist
[serverClass:myclass:app:*]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Oct 2013 04:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110279#M4168</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-10-23T04:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation in serverclass.conf - Global only or can it be overridden?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110280#M4169</link>
      <description>&lt;P&gt;Great, that's all I needed!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110280#M4169</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2013-10-23T13:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: targetRepositoryLocation in serverclass.conf - Global only or can it be overridden?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110281#M4170</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 FALSE 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 btool serverclass list --debug| grep targetRepository&lt;/CODE&gt; which will give you this (which clearly indicates functional 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 going to open a support case to get this mess cleared up.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 01:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/targetRepositoryLocation-in-serverclass-conf-Global-only-or-can/m-p/110281#M4170</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T01:37:02Z</dc:date>
    </item>
  </channel>
</rss>

