<?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 Does anybody developed an Ansible playbook for creating users on GAIA ? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3140#M295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I mean with the GAIA specifics and not "only" the Linux standards like the following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;---&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Create&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; user&lt;BR /&gt;&amp;nbsp; user&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;user shell&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;bin&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;bash home&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;srv&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;user groups&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;admin&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;sudo generate_ssh_key&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;yes ssh_key_bits&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2048&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Set&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; password to user&lt;BR /&gt;&amp;nbsp; shell&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; echo user&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;plain_text_password &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;|&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; sudo chpasswd&lt;BR /&gt;&amp;nbsp; no_log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;True&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2017 09:33:27 GMT</pubDate>
    <dc:creator>Joachim_Zint</dc:creator>
    <dc:date>2017-04-10T09:33:27Z</dc:date>
    <item>
      <title>Does anybody developed an Ansible playbook for creating users on GAIA ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3140#M295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I mean with the GAIA specifics and not "only" the Linux standards like the following example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;---&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Create&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; user&lt;BR /&gt;&amp;nbsp; user&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;user shell&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;bin&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;bash home&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;srv&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;user groups&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;admin&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;sudo generate_ssh_key&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;yes ssh_key_bits&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #7d2727;"&gt;2048&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; name&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Set&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; password to user&lt;BR /&gt;&amp;nbsp; shell&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; echo user&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt;plain_text_password &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;|&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; sudo chpasswd&lt;BR /&gt;&amp;nbsp; no_log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #303336;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;True&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 09:33:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3140#M295</guid>
      <dc:creator>Joachim_Zint</dc:creator>
      <dc:date>2017-04-10T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Does anybody developed an Ansible playbook for creating users on GAIA ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3141#M296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- name: "Add scp user"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;command: "{{ item }}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;with_items:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- clish -c 'add user scpuser uid 2600 homedir /home/scpuser' -s&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- clish -c 'add rba role scpRole domain-type System readwrite-features expert' -s&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- clish -c 'add rba user scpuser roles scpRole' -s&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- clish -c 'set user scpuser gid 100 shell /usr/bin/scponly' -s&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- clish -c 'set user scpuser password-hash &amp;lt;HASH&amp;gt;' -s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for &lt;A href="https://community.checkpoint.com/migrated-users/41735"&gt;Danny Jung&lt;/A&gt;‌ for &lt;A href="https://community.checkpoint.com/thread/5574"&gt;HowTo - Creating an scpuser account on Gaia Clish&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for @Ryan Darst for&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-2173"&gt;CheckMates_Aug15_Demos.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Sep 2017 07:30:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3141#M296</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2017-09-02T07:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Does anybody developed an Ansible playbook for creating users on GAIA ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3142#M297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx a lot....beside global script repository this is an good Option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 06:55:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3142#M297</guid>
      <dc:creator>Joachim_Zint</dc:creator>
      <dc:date>2017-09-08T06:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does anybody developed an Ansible playbook for creating users on GAIA ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3143#M298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My playbook (I'm using playbook and not role)&lt;/P&gt;&lt;P&gt;Please fix the&amp;nbsp;format &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;(&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;scpuser&lt;/SPAN&gt;/vpn123)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- name: "Add scp user"&lt;BR /&gt; command: "{{ item }}"&lt;BR /&gt; with_items:&lt;BR /&gt; - clish -c 'lock database override' -si&lt;BR /&gt; - clish -c 'add user scpuser uid 2600 homedir /home/scpuser' -si&lt;BR /&gt; - clish -c 'add rba role scpRole domain-type System all-features' -si&lt;BR /&gt; - clish -c 'add rba user scpuser roles scpRole' -si&lt;BR /&gt; - clish -c 'set user scpuser gid 100 shell /usr/bin/scponly' -si&lt;BR /&gt; - clish -c 'set user scpuser password-hash $1$O8IbUP0w$asylKUt4DUVDoemt95ubh.' -si&lt;BR /&gt; - clish -c 'unlock database' -si&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 09:25:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3143#M298</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2017-09-09T09:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Does anybody developed an Ansible playbook for creating users on GAIA ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3144#M299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you should able to do this using the asnible role "gaia_fw1"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://galaxy.ansible.com/ashwin_sid/gaia_fw1"&gt;Ansible Role &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ash-sidhu.blog/2018/11/07/using-ansible-for-automating-tasks-on-checkpoin"&gt;This blog post explains how to use the role.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:57:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/3144#M299</guid>
      <dc:creator>Ash_Sidhu</dc:creator>
      <dc:date>2018-11-08T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Does anybody developed an Ansible playbook for creating users on GAIA ?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/197043#M8155</link>
      <description>&lt;P&gt;what to do if you have two gw in cloning group ?&lt;/P&gt;&lt;P&gt;I get this error :&amp;nbsp;&amp;nbsp;This command belongs to a cloning group synchronized feature and therefore cannot be executed in normal mode.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;add user&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;command&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"{{item}}"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;with_items&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;clish -c 'lock database override' -si&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;clish -c 'set cloning-group-management on' -si&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;clish -c 'add user test uid 0 homedir /home/test' -si&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;clish -c 'add rba user test roles adminRole' -si&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;clish -c 'set user test gid 0 shell /bin/bash' -si&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;clish -c 'set user test realname "brede jensen"' -si&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;clish -c 'set user test password-hash $password' -si&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;clish -c 'unlock database' -si&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Nov 2023 14:04:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Does-anybody-developed-an-Ansible-playbook-for-creating-users-on/m-p/197043#M8155</guid>
      <dc:creator>Brede_Jensen</dc:creator>
      <dc:date>2023-11-03T14:04:20Z</dc:date>
    </item>
  </channel>
</rss>

