<?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: Deployment Server - when app is redeployed, what is overwritten in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83230#M2987</link>
    <description>&lt;P&gt;I can see how this algorithm works (in a depth-first-search manner).&lt;/P&gt;

&lt;P&gt;The question I have is with the my-app/local directory.&lt;/P&gt;

&lt;P&gt;The client has client-specific stuff in my-app/local such as the savedsearches.conf file&lt;/P&gt;

&lt;P&gt;in our etc/deployment-apps/my-app/local  we do not have a savedsearches.conf file so I'm expecting that the client's local directory's own savedsearches.conf file won't be obliterated during a deploy.&lt;/P&gt;

&lt;P&gt;But that seems to be what is happening. &lt;/P&gt;

&lt;P&gt;By your logic, the local directory's hash will be different and if the deployment simply obliterates the local directory and copies down the new local directory...then indeed I can see how we loose our local/savedsearches.conf file.&lt;/P&gt;

&lt;P&gt;If however, the deployment overlays the my-app/local with the my-app/local that is in the etc/deployment-apps/my-app/local  then we would get the behavior I am looking for where the client's savedsearches.conf file will be maintained intact.&lt;/P&gt;

&lt;P&gt;Please advise.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2015 14:43:21 GMT</pubDate>
    <dc:creator>robertlight</dc:creator>
    <dc:date>2015-06-03T14:43:21Z</dc:date>
    <item>
      <title>Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83224#M2981</link>
      <description>&lt;P&gt;so i just want to clarify somethings:&lt;/P&gt;

&lt;P&gt;app deployed: test_app&lt;BR /&gt;
directories: Default, Local&lt;BR /&gt;
Default: inputs.conf&lt;BR /&gt;
Local: no files&lt;/P&gt;

&lt;P&gt;what happens if i make the following changes to the app on the client:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;1)modify the file in default -&amp;gt;  test_app/default/inputs.conf&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Will changes be ovewritten?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;2)create a file in local  -&amp;gt;  test_app/local/inputs.conf&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Will changes be ovewritten, ie file deleted?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;3)create a new file in default -&amp;gt; test_app/default/props.conf&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Will changes be ovewritten, ie file deleted?*&lt;/P&gt;

&lt;P&gt;IF there was some config in the local directory on th Deployment server ie &lt;BR /&gt;
Local: savedseraches.conf&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;4) would the config in local even get deployed?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;5) modify the deployed file in local -&amp;gt; test_app/default/savedseraches.conf&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Will changes be ovewritten by orginal savedsearcjes.conf on the DS?&lt;/P&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;*&lt;BR /&gt;
 Are no changes overwritten until the app and therefore hash is changed on DS itself?!&lt;/P&gt;

&lt;P&gt;if it is will that overwrite local?&lt;/P&gt;

&lt;P&gt;Can someone clear this up? Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 15:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83224#M2981</guid>
      <dc:creator>robf</dc:creator>
      <dc:date>2013-10-04T15:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83225#M2982</link>
      <description>&lt;P&gt;The deployment server will overwrite everything - the entire app folder - if any changes are made within the folder.&lt;BR /&gt;&lt;BR /&gt;
Basically, the client creates a hash of the folder, and the deployment server creates a hash of the folder.  If the system checks the hashes and finds they are different the the server sends the folder to the client.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 15:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83225#M2982</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-10-04T15:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83226#M2983</link>
      <description>&lt;P&gt;so you cant use deployment server on a search head to manager visual apps?&lt;/P&gt;

&lt;P&gt;If a user saves anything via the gui it goes in local.&lt;/P&gt;

&lt;P&gt;But this will get overwritten by DS!?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 16:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83226#M2983</guid>
      <dc:creator>robf</dc:creator>
      <dc:date>2013-10-04T16:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83227#M2984</link>
      <description>&lt;P&gt;Unfortunately yes. You cannot use DS in this instance on search head as saved changes would get overwritten by DS. &lt;/P&gt;

&lt;P&gt;DS needs an enhancement to exclude set of directories/files when updating app.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 18:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83227#M2984</guid>
      <dc:creator>jkerai</dc:creator>
      <dc:date>2013-10-04T18:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83228#M2985</link>
      <description>&lt;P&gt;Is this still the case?&lt;/P&gt;

&lt;P&gt;having local changes being overwritten would be pretty bad.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 04:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83228#M2985</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2014-11-27T04:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83229#M2986</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Just a comment to the above answers&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This does NOT apply to user directories!&lt;/P&gt;

&lt;P&gt;/etc/users/.../&lt;/P&gt;

&lt;P&gt;Only configurations of apps that are contained within the ./etc/apps/ dir on the search head will ever be touched.&lt;/P&gt;

&lt;P&gt;What this means is that you can* use it to manage visual apps, you just have to be quite careful and have some other means to manage your local changes.&lt;/P&gt;

&lt;P&gt;Users can : update their own dashboards, savedsearches etc and an app deployment will not effect their files (all contained within the users dirs.&lt;/P&gt;

&lt;P&gt;However, if an admin/power user changes the permissions on a dashboard/savedsearch and makes them public they are actually copied to the app and then also &lt;STRONG&gt;deleted&lt;/STRONG&gt; from the users home dir!&lt;/P&gt;

&lt;P&gt;What we have been doing is if a user wants to make their app public we make a clone of it and make it public. We can keep them as the owner they can still make changes to the dashboard.&lt;/P&gt;

&lt;P&gt;Once this is done these changes also need to be replicated back into your deployment server repo. If that app updates and pushes out it will replace/delete that PUBLIC dashboard.&lt;/P&gt;

&lt;P&gt;As a side note in v6.2 the "deploy server" (different to deployment server!) has smarts in which it combines local and default dirs together. These end up in the default dir on the search head. ( &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/DistSearch/PropagateSHCconfigurationchanges#What_the_configuration_bundle_contains"&gt;http://docs.splunk.com/Documentation/Splunk/latest/DistSearch/PropagateSHCconfigurationchanges#What_the_configuration_bundle_contains&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 05:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83229#M2986</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2014-11-27T05:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83230#M2987</link>
      <description>&lt;P&gt;I can see how this algorithm works (in a depth-first-search manner).&lt;/P&gt;

&lt;P&gt;The question I have is with the my-app/local directory.&lt;/P&gt;

&lt;P&gt;The client has client-specific stuff in my-app/local such as the savedsearches.conf file&lt;/P&gt;

&lt;P&gt;in our etc/deployment-apps/my-app/local  we do not have a savedsearches.conf file so I'm expecting that the client's local directory's own savedsearches.conf file won't be obliterated during a deploy.&lt;/P&gt;

&lt;P&gt;But that seems to be what is happening. &lt;/P&gt;

&lt;P&gt;By your logic, the local directory's hash will be different and if the deployment simply obliterates the local directory and copies down the new local directory...then indeed I can see how we loose our local/savedsearches.conf file.&lt;/P&gt;

&lt;P&gt;If however, the deployment overlays the my-app/local with the my-app/local that is in the etc/deployment-apps/my-app/local  then we would get the behavior I am looking for where the client's savedsearches.conf file will be maintained intact.&lt;/P&gt;

&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83230#M2987</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2015-06-03T14:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83231#M2988</link>
      <description>&lt;P&gt;Please see the &lt;CODE&gt;excludeFromUpdate&lt;/CODE&gt; option in &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverclassconf"&gt;serverclass.conf&lt;/A&gt; configuration option that's available in Splunk 6.2 and later. &lt;/P&gt;

&lt;P&gt;Copied from the docs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Example 4
# Specify app update exclusion list.

[global]
# The local/ subdirectory within every app will not be touched upon update.
excludeFromUpdate=$app_root$/local

[serverClass:MyApps]
[serverClass:MyApps:app:SpecialCaseApp]
# For the SpecialCaseApp, both the local/ and lookups/ subdirectories will
# not be touched upon update.
excludeFromUpdate=$app_root$/local,$app_root$/lookups
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2016 13:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83231#M2988</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2016-08-05T13:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83232#M2989</link>
      <description>&lt;P&gt;This isn't working as desired for us, ATM.  One of my App guys is having problems were savedsearches.conf in /local is being merged/appended into savedsearches.conf in /default when we've used the excludeFromUpdate option for $app_root$/local.  I've verified that this happens on the Search Head.  The contents of the bundles are correct on both the deployment server and the search head.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83232#M2989</guid>
      <dc:creator>jmantor</dc:creator>
      <dc:date>2018-07-20T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - when app is redeployed, what is overwritten</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83233#M2990</link>
      <description>&lt;P&gt;I forgot to mention that it's Splunk Enterprise 6.5.6&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deployment-Server-when-app-is-redeployed-what-is-overwritten/m-p/83233#M2990</guid>
      <dc:creator>jmantor</dc:creator>
      <dc:date>2018-07-20T14:09:08Z</dc:date>
    </item>
  </channel>
</rss>

