<?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 Can multiple serverclasses reference the same app in serverclass.conf? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Can-multiple-serverclasses-reference-the-same-app-in-serverclass/m-p/93681#M3443</link>
    <description>&lt;P&gt;I'm still trying to address the need from &lt;A href="http://splunk-base.splunk.com/answers/41276/groups-of-hosts-for-serverclassconf"&gt;Groups of hosts for serverclass.conf?&lt;/A&gt; and I think I see an ugly hack, and I want to know if it'll break anything.&lt;/P&gt;

&lt;P&gt;Can two serverclasses in serverclass.conf reference the same app?  E.g., if I have an app defined in the /opt/splunk/etc/deployment-apps/MyApp/ tree, can I have&lt;/P&gt;

&lt;P&gt;[serverClass:AlphaClass:app:MyApp] &lt;/P&gt;

&lt;P&gt;as well as &lt;/P&gt;

&lt;P&gt;[serverClass:BravoClass:app:MyApp] &lt;/P&gt;

&lt;P&gt;That way, if I have sets of servers for Alpha, Bravo, and Charlie, and log apps of MyAppOne and MyAppTwo, I can mix and match without having to repeat the complex whitelist/blacklist filters.  In other words, if AlphaClass is going to need MyAppOne and MyAppTwo, I only specify the hosts via whitelist/blacklist once for AlphaClass and then have AlphaClass be the serverclass for both apps, and the app stanza just needs whitelist.0=* to equal the "group" of servers I specified in the class.&lt;/P&gt;

&lt;P&gt;Does that work or is there some subtlety of the way classes and apps interact that won't allow this sort of modular reuse?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2012 21:17:32 GMT</pubDate>
    <dc:creator>gowen</dc:creator>
    <dc:date>2012-03-15T21:17:32Z</dc:date>
    <item>
      <title>Can multiple serverclasses reference the same app in serverclass.conf?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-multiple-serverclasses-reference-the-same-app-in-serverclass/m-p/93681#M3443</link>
      <description>&lt;P&gt;I'm still trying to address the need from &lt;A href="http://splunk-base.splunk.com/answers/41276/groups-of-hosts-for-serverclassconf"&gt;Groups of hosts for serverclass.conf?&lt;/A&gt; and I think I see an ugly hack, and I want to know if it'll break anything.&lt;/P&gt;

&lt;P&gt;Can two serverclasses in serverclass.conf reference the same app?  E.g., if I have an app defined in the /opt/splunk/etc/deployment-apps/MyApp/ tree, can I have&lt;/P&gt;

&lt;P&gt;[serverClass:AlphaClass:app:MyApp] &lt;/P&gt;

&lt;P&gt;as well as &lt;/P&gt;

&lt;P&gt;[serverClass:BravoClass:app:MyApp] &lt;/P&gt;

&lt;P&gt;That way, if I have sets of servers for Alpha, Bravo, and Charlie, and log apps of MyAppOne and MyAppTwo, I can mix and match without having to repeat the complex whitelist/blacklist filters.  In other words, if AlphaClass is going to need MyAppOne and MyAppTwo, I only specify the hosts via whitelist/blacklist once for AlphaClass and then have AlphaClass be the serverclass for both apps, and the app stanza just needs whitelist.0=* to equal the "group" of servers I specified in the class.&lt;/P&gt;

&lt;P&gt;Does that work or is there some subtlety of the way classes and apps interact that won't allow this sort of modular reuse?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 21:17:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-multiple-serverclasses-reference-the-same-app-in-serverclass/m-p/93681#M3443</guid>
      <dc:creator>gowen</dc:creator>
      <dc:date>2012-03-15T21:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can multiple serverclasses reference the same app in serverclass.conf?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-multiple-serverclasses-reference-the-same-app-in-serverclass/m-p/93682#M3444</link>
      <description>&lt;P&gt;The following would work as expected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:Alpha]
whitelist.0 = 10.1.1.1
whitelist.1 = 10.2.2.2

[serverClass:Bravo]
whitelist.0 = 11.1.1.1
whitelist.1 = 11.2.2.2

[serverClass:Charlie]
whitelist.0 = 12.1.1.1
whitelist.1 = 12.2.2.2

[serverClass:Alpha:app:MyAppOne]
[serverClass:Alpha:app:MyAppTwo]
[serverClass:Bravo:app:MyAppOne]
[serverClass:Charlie:app:MyAppTwo]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alpha gets both apps, Bravo gets MyAppOne, Charlie gets MyAppTwo. No need to further specify whitelists/blacklists on the [serverClass:X:app:Y]-level. &lt;/P&gt;

&lt;P&gt;In fact if you add a &lt;CODE&gt;blacklist.0 = 10.1.1.1&lt;/CODE&gt; for &lt;CODE&gt;[serverClass:Aplpha:app:MyAppOne]&lt;/CODE&gt;, I think you have to explicitly re-add a &lt;CODE&gt;whitelist.0 = 10.2.2.2&lt;/CODE&gt; on the app-level stanza, if I understood the documentation correctly.&lt;/P&gt;

&lt;P&gt;Simple as that.&lt;/P&gt;

&lt;P&gt;/Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 21:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-multiple-serverclasses-reference-the-same-app-in-serverclass/m-p/93682#M3444</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-03-15T21:54:31Z</dc:date>
    </item>
  </channel>
</rss>

