<?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 Is there a REST API for putting a Cluster Master into Maintenance mode? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-API-for-putting-a-Cluster-Master-into/m-p/480179#M82340</link>
    <description>&lt;P&gt;I was just curious about this since I couldn't find anything on it in the following page:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/RESTREF/RESTcluster"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/RESTREF/RESTcluster&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance. &lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 22:18:12 GMT</pubDate>
    <dc:creator>mpham07</dc:creator>
    <dc:date>2020-02-27T22:18:12Z</dc:date>
    <item>
      <title>Is there a REST API for putting a Cluster Master into Maintenance mode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-API-for-putting-a-Cluster-Master-into/m-p/480179#M82340</link>
      <description>&lt;P&gt;I was just curious about this since I couldn't find anything on it in the following page:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/RESTREF/RESTcluster"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/RESTREF/RESTcluster&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 22:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-API-for-putting-a-Cluster-Master-into/m-p/480179#M82340</guid>
      <dc:creator>mpham07</dc:creator>
      <dc:date>2020-02-27T22:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST API for putting a Cluster Master into Maintenance mode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-API-for-putting-a-Cluster-Master-into/m-p/480180#M82341</link>
      <description>&lt;P&gt;Hello all, &lt;/P&gt;

&lt;P&gt;I originally wanted to test stuff with curl and ansible for putting the cluster master in maintenance-mode.&lt;/P&gt;

&lt;P&gt;So I found a solution with Ansible from github so all credit goes to the link below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  - name: "Put Splunk cluster into maintenance mode"
    command: /opt/splunk/bin/splunk enable maintenance-mode --answer-yes -auth "admin:vagrant"
    become: true
    become_user: splunk
    become_method: sudo
    changed_when: False
    ignore_errors: True
    no_log: True
    register: splunk_command_output

  - debug: msg="{{ splunk_command_output.stdout }}"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://github.com/hortonew/VagrantConfigs/blob/master/Splunk/Splunk-Cluster/ansible/roles/splunk_cm_maintenance_mode_enable/tasks/splunk-cm-maintenance-mode-enable.yml"&gt;https://github.com/hortonew/VagrantConfigs/blob/master/Splunk/Splunk-Cluster/ansible/roles/splunk_cm_maintenance_mode_enable/tasks/splunk-cm-maintenance-mode-enable.yml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-API-for-putting-a-Cluster-Master-into/m-p/480180#M82341</guid>
      <dc:creator>mpham07</dc:creator>
      <dc:date>2020-03-11T15:01:32Z</dc:date>
    </item>
  </channel>
</rss>

