<?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: Provisioning via the deployment server and REST API to add a node to a serverclass with existing and new ordinals (whitelist) in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253564#M9610</link>
    <description>&lt;P&gt;If you are using chef why not use partials templates.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2015 17:08:02 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2015-10-05T17:08:02Z</dc:date>
    <item>
      <title>Provisioning via the deployment server and REST API to add a node to a serverclass with existing and new ordinals (whitelist)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253561#M9607</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We are attempting to use deploy Splunk in our private cloud using chef, and provisioning via the deployment server and the REST API.  We've noticed that when adding a node to a serverclass, you not only need to add that ordinal, but all the previous ordinals.  So,  I would need to go "whitelist.0, whitelist.1...whitelist.255", which... is nuts.  Is there another way to do this?  I know that I can grab the existing whitelist, but it still isn't efficient and I'm hoping there are better ways. &lt;/P&gt;

&lt;P&gt;Here's an example (note that whitelist.0 already existed)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:pass  &lt;A href="https://myserver.com:8089/servicesNS/-/system/deployment/server/serverclasses/#{outputsServerClass}" target="test_blank"&gt;https://myserver.com:8089/servicesNS/-/system/deployment/server/serverclasses/#{outputsServerClass}&lt;/A&gt; -d whitelist.1=1.2.3.4
then it will fail, saying:
"&amp;lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&amp;gt;\n&amp;lt;response&amp;gt;\n  &amp;lt;messages&amp;gt;\n    &amp;lt;msg type=\"ERROR\"&amp;gt;\n In handler 'serverclasses': Gap in numbered regexes: expected attribute=whitelist.0 not found&amp;lt;/msg&amp;gt;\n  &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n"
However, if I do the following command:
curl -k -u user:pass &lt;A href="https://myserver.com:8089/servicesNS/-/system/deployment/server/serverclasses/#{outputsServerClass}" target="test_blank"&gt;https://myserver.com:8089/servicesNS/-/system/deployment/server/serverclasses/#{outputsServerClass}&lt;/A&gt; –d whitelist.0=1.2.3.4 -d whitelist.1=1.2.3.5

Then I will get a good response.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Oct 2015 02:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253561#M9607</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-10-05T02:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Provisioning via the deployment server and REST API to add a node to a serverclass with existing and new ordinals (whitelist)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253562#M9608</link>
      <description>&lt;P&gt;As far as I can tell, the tool you create for editing the white/black (example below just for whitelist) lists will need to do the following logic:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Read/create the endpoint and make sure it exists.&lt;/LI&gt;
&lt;LI&gt;Parse the whitelist-size field to get the quantity of items that already exist&lt;/LI&gt;
&lt;LI&gt;Create a list of whitelist items, the size of the whitelist-size, consisting of the whitelist.# items that were output in step 1.&lt;/LI&gt;
&lt;LI&gt;POST to the server class with the whitelist items that already exist along with the new entry you’d like&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The documentation for this endpoint in the REST API says "Filter ordinals must start at 0 and be consecutive” so I believe that is to let us know there’s no endpoint for doing a simple append.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 14:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253562#M9608</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2015-10-05T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Provisioning via the deployment server and REST API to add a node to a serverclass with existing and new ordinals (whitelist)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253563#M9609</link>
      <description>&lt;P&gt;Thanks Burch.   Not ideal, for sure.  Wondering if anyone has any other ideas or experience in this area - I've seen a lot of "using deployment server or automating deployment server" presentations floating around... hoping someone has run into this problem and solved it.  Be nice to see Splunk just add an "append" feature to the rest call...&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253563#M9609</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-10-05T16:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Provisioning via the deployment server and REST API to add a node to a serverclass with existing and new ordinals (whitelist)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253564#M9610</link>
      <description>&lt;P&gt;If you are using chef why not use partials templates.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253564#M9610</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-10-05T17:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Provisioning via the deployment server and REST API to add a node to a serverclass with existing and new ordinals (whitelist)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253565#M9611</link>
      <description>&lt;P&gt;Oh, there were some conf sessions on ansible automation - maybe they covered this in there as well?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253565#M9611</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2015-10-05T17:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Provisioning via the deployment server and REST API to add a node to a serverclass with existing and new ordinals (whitelist)</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253566#M9612</link>
      <description>&lt;P&gt;Use the REST API maybe?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;curl -ku admin:your_password &lt;A href="https://your_splunk_server:8089/servicesNS/-/system/deployment/server/config/_reload" target="test_blank"&gt;https://your_splunk_server:8089/servicesNS/-/system/deployment/server/config/_reload&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Provisioning-via-the-deployment-server-and-REST-API-to-add-a/m-p/253566#M9612</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-04-12T17:17:02Z</dc:date>
    </item>
  </channel>
</rss>

