<?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 configuration files modified at restart causing version control software to redeploy in loop in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/configuration-files-modified-at-restart-causing-version-control/m-p/32691#M894</link>
    <description>&lt;P&gt;Hi &lt;BR /&gt;
I am maintaining my splunk config with chef ( or puppet).&lt;/P&gt;

&lt;P&gt;But after pushing my config, and restarting splunk, some files are modified (server.conf)&lt;BR /&gt;
This is causing a new deployment to occur in loop.&lt;/P&gt;

&lt;P&gt;Is it normal, how to avoid that ?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2011 23:14:05 GMT</pubDate>
    <dc:creator>mataharry</dc:creator>
    <dc:date>2011-12-09T23:14:05Z</dc:date>
    <item>
      <title>configuration files modified at restart causing version control software to redeploy in loop</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/configuration-files-modified-at-restart-causing-version-control/m-p/32691#M894</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
I am maintaining my splunk config with chef ( or puppet).&lt;/P&gt;

&lt;P&gt;But after pushing my config, and restarting splunk, some files are modified (server.conf)&lt;BR /&gt;
This is causing a new deployment to occur in loop.&lt;/P&gt;

&lt;P&gt;Is it normal, how to avoid that ?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 23:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/configuration-files-modified-at-restart-causing-version-control/m-p/32691#M894</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2011-12-09T23:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: configuration files modified at restart causing version control software to redeploy in loop</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/configuration-files-modified-at-restart-causing-version-control/m-p/32692#M895</link>
      <description>&lt;P&gt;This is a known behavior in splunk, when you push configuration.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;The files containing clear passwords are encrypted at startup using the local secret key.
So If you are using version control, the files you pushed may be modified differently after being pushed, causing a loop of deployment.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The files containing passwords are :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;$SPLUNK_HOME/etc/system/local/server.conf&lt;/STRONG&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
[sslConfig]&lt;BR /&gt;
sslKeysfilePassword = $1$uRefsdTFJSp&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
FYI the default value before encryption is "password".&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;$SPLUNK_HOME/etc/system/local/authentication.conf&lt;BR /&gt;
may also contains the ldap bind user password.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The local secret key is &lt;STRONG&gt;$SPLUNK_HOME/etc/auth/splunk.secret&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;and this file is generated during the first start of splunk (therefore may be different on each instance)&lt;BR /&gt;
This is the same for the local certificates in $SPLUNK_HOME/etc/auth/)&lt;/P&gt;

&lt;P&gt;The solution is to &lt;/P&gt;

&lt;P&gt;1 - have the same splunk.secret on your servers&lt;/P&gt;

&lt;P&gt;2 - when you modify your configurations files, have them encrypted using the same splunk.secret ( by starting splunk once on an instance) before pushing them.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 23:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/configuration-files-modified-at-restart-causing-version-control/m-p/32692#M895</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2011-12-09T23:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: configuration files modified at restart causing version control software to redeploy in loop</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/configuration-files-modified-at-restart-causing-version-control/m-p/32693#M896</link>
      <description>&lt;P&gt;remark, in the server.conf there is another unique value, the GUID.&lt;BR /&gt;
example :&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[general] &lt;BR /&gt;
guid = 163F9EF5-B334-4A32-933E-801F4F0D6B90&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;It is used for the license-slaves to identify to the license-master.&lt;BR /&gt;
SO If you are using a license-master, make sure that each server.conf is unique per license-slave.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 02:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/configuration-files-modified-at-restart-causing-version-control/m-p/32693#M896</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-03-02T02:40:39Z</dc:date>
    </item>
  </channel>
</rss>

