<?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 Ansible-based automation for Check Point Management Server and Check Point Gateways in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54109#M142</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I would like to share with you a tool for automatic configuration of Check Point management server and Check Point gateways. The tool is based on CP Management API, CP GAiA API, Ansible and enables a range of gateways and management related configuration actions. The tool is easily extendable.&lt;/P&gt;
&lt;P&gt;The tool can be considered as a good starting point for the automation of your Check Point environment.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For management server&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Following configuration is possible on management server:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create/delete network, ranges, services objects&lt;/LI&gt;
&lt;LI&gt;Create/delete policy packages&lt;/LI&gt;
&lt;LI&gt;Add rules to the policy packages&lt;/LI&gt;
&lt;LI&gt;Add gateways, establish SIC&lt;/LI&gt;
&lt;LI&gt;Install policy on the gateways&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;For gateways&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Following configuration is possible on gateways in accordance to various gateways attributes like CMA, SW version, gateway type, platform type, gateway IP.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;DNS configuration&lt;/LI&gt;
&lt;LI&gt;Users configuraion&lt;/LI&gt;
&lt;LI&gt;Expert password configuration&lt;/LI&gt;
&lt;LI&gt;User public keys copy&lt;/LI&gt;
&lt;LI&gt;...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Which means you can configure DNS, Users, Expert password or Users public keys specifically for gateways in certain CMAs or for gateways having certain SW version, or platform type, or IP address.&lt;/P&gt;
&lt;P&gt;Below are the tool structure and the steps for the gateways configuration part.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GAAnT.JPG" style="width: 740px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/1296i9D79092134EA0618/image-size/large?v=v2&amp;amp;px=999" role="button" title="GAAnT.JPG" alt="GAAnT.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Ansible playbook starts Dynamic Inventory Script&lt;/LI&gt;
&lt;LI&gt;Dynamic Inventory Script gets the list of all gateways from SMS or MDS via MGMT API.&lt;/LI&gt;
&lt;LI&gt;Dynamic Inventory Script reads the services configuration files. &amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Dynamic Inventory Script creates the Ansible inventory files based on gateways list and services configuration. &amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Ansible configures the gateways via GAiA API (and via SSH for expert mode) according to inventory files.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;License, warranty, contact&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The tool is provided with APACHE2.0 and without any liability, warranty or support. In case, you are interested in support or customization please contact Check Point Profession Services under:&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:PS-AUTOMATION@MICHAEL.CHECKPOINT.COM" target="_blank" rel="noopener"&gt;PS-AUTOMATION@MICHAEL.CHECKPOINT.COM&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Detailed tool information is provided in the attached documentations and videos.&lt;/P&gt;
&lt;P&gt;I hope the tool will be beneficial for you and I would appreciate your feedback. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Yevgeniy&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2019 06:30:11 GMT</pubDate>
    <dc:creator>Yevgeniy_Yeryom</dc:creator>
    <dc:date>2019-05-27T06:30:11Z</dc:date>
    <item>
      <title>Ansible-based automation for Check Point Management Server and Check Point Gateways</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54109#M142</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I would like to share with you a tool for automatic configuration of Check Point management server and Check Point gateways. The tool is based on CP Management API, CP GAiA API, Ansible and enables a range of gateways and management related configuration actions. The tool is easily extendable.&lt;/P&gt;
&lt;P&gt;The tool can be considered as a good starting point for the automation of your Check Point environment.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;For management server&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Following configuration is possible on management server:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create/delete network, ranges, services objects&lt;/LI&gt;
&lt;LI&gt;Create/delete policy packages&lt;/LI&gt;
&lt;LI&gt;Add rules to the policy packages&lt;/LI&gt;
&lt;LI&gt;Add gateways, establish SIC&lt;/LI&gt;
&lt;LI&gt;Install policy on the gateways&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;For gateways&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Following configuration is possible on gateways in accordance to various gateways attributes like CMA, SW version, gateway type, platform type, gateway IP.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;DNS configuration&lt;/LI&gt;
&lt;LI&gt;Users configuraion&lt;/LI&gt;
&lt;LI&gt;Expert password configuration&lt;/LI&gt;
&lt;LI&gt;User public keys copy&lt;/LI&gt;
&lt;LI&gt;...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Which means you can configure DNS, Users, Expert password or Users public keys specifically for gateways in certain CMAs or for gateways having certain SW version, or platform type, or IP address.&lt;/P&gt;
&lt;P&gt;Below are the tool structure and the steps for the gateways configuration part.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GAAnT.JPG" style="width: 740px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/1296i9D79092134EA0618/image-size/large?v=v2&amp;amp;px=999" role="button" title="GAAnT.JPG" alt="GAAnT.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Ansible playbook starts Dynamic Inventory Script&lt;/LI&gt;
&lt;LI&gt;Dynamic Inventory Script gets the list of all gateways from SMS or MDS via MGMT API.&lt;/LI&gt;
&lt;LI&gt;Dynamic Inventory Script reads the services configuration files. &amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Dynamic Inventory Script creates the Ansible inventory files based on gateways list and services configuration. &amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Ansible configures the gateways via GAiA API (and via SSH for expert mode) according to inventory files.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;License, warranty, contact&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The tool is provided with APACHE2.0 and without any liability, warranty or support. In case, you are interested in support or customization please contact Check Point Profession Services under:&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:PS-AUTOMATION@MICHAEL.CHECKPOINT.COM" target="_blank" rel="noopener"&gt;PS-AUTOMATION@MICHAEL.CHECKPOINT.COM&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Detailed tool information is provided in the attached documentations and videos.&lt;/P&gt;
&lt;P&gt;I hope the tool will be beneficial for you and I would appreciate your feedback. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Yevgeniy&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 06:30:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54109#M142</guid>
      <dc:creator>Yevgeniy_Yeryom</dc:creator>
      <dc:date>2019-05-27T06:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: A tool for CheckPoint Management and CheckPoint automation with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54168#M143</link>
      <description>&lt;P&gt;Nicely done!&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 02:03:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54168#M143</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-05-23T02:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: A tool for CheckPoint Management and CheckPoint automation with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54309#M144</link>
      <description>&lt;P&gt;Thanks. I appreciate your positive feedback. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 09:27:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54309#M144</guid>
      <dc:creator>Yevgeniy_Yeryom</dc:creator>
      <dc:date>2019-05-24T09:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible-based automation for Check Point Management Server and Check Point Gateways</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59054#M145</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;any idea what should be the ansible_network_os for checkpoint. I am getting below error while running my playbook&lt;/P&gt;&lt;P&gt;TASK [SHOW COMMAND] *************************************************************************************************************************************************************************&lt;BR /&gt;fatal: [HQFW]: FAILED! =&amp;gt; {"msg": "Unable to automatically determine host network os. Please manually configure ansible_network_os value for this host"}&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 22:57:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59054#M145</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-07-26T22:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible-based automation for Check Point Management Server and Check Point Gateways</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59058#M146</link>
      <description>What is the default shell for the account you're using to connect via Ansible?&lt;BR /&gt;It probably should be bash instead of clish.</description>
      <pubDate>Fri, 26 Jul 2019 23:48:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59058#M146</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-07-26T23:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible-based automation for Check Point Management Server and Check Point Gateways</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59076#M147</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;Yes i am using bash shell. i have changed it to bash&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 15:35:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59076#M147</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-07-27T15:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible-based automation for Check Point Management Server and Check Point Gateways</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59087#M148</link>
      <description>And did it work after you did that?</description>
      <pubDate>Sat, 27 Jul 2019 22:16:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59087#M148</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-07-27T22:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible-based automation for Check Point Management Server and Check Point Gateways</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59100#M149</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;Nah, That didn't work...&lt;/P&gt;&lt;P&gt;My script:&lt;/P&gt;&lt;P&gt;When i use roles then it works fine but the issue is ansible&amp;nbsp; output gives me lot of additional things which i don't want.&lt;/P&gt;&lt;P&gt;Below is the script when i use roles. But i don't want to use the roles features and i run the same thing in single play then i get the error of mentioning the device OS or i would say ansible_network_os under device name in host_vars directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@eve-ng:/etc/ansible# cat show-bash.yml&lt;/P&gt;&lt;P&gt;- hosts: checkpoint&lt;BR /&gt;serial: 1&lt;BR /&gt;gather_facts: no&lt;BR /&gt;tasks:&lt;/P&gt;&lt;P&gt;- name: SHOW COMMAND&lt;BR /&gt;import_role:&lt;BR /&gt;name: Trib_role&lt;BR /&gt;tasks_from: showbash&lt;BR /&gt;vars:&lt;BR /&gt;cmdfile: show-bash.cmd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#cat show-bash.cmd&lt;/P&gt;&lt;P&gt;&amp;nbsp;fw tab -t connections -s&lt;/P&gt;&lt;P&gt;&amp;nbsp;fw ver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[checkpoint]&lt;BR /&gt;HQFW&lt;/P&gt;&lt;P&gt;Under host_vars directory:&lt;/P&gt;&lt;P&gt;cat HQFW&lt;BR /&gt;---&lt;BR /&gt;ansible_host: 192.168.110.71&lt;BR /&gt;ansible_user: admin&lt;BR /&gt;ansible_ssh_pass: admin123&lt;BR /&gt;ansible_connection: network_cli&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;root@eve-ng:/etc/ansible/roles/Trib_role/tasks# cat showbash.yml&lt;BR /&gt;---&lt;BR /&gt;- name: SHOW CONFIG&lt;BR /&gt;cli_command:&lt;BR /&gt;command: "{{ item }}"&lt;BR /&gt;with_lines: cat {{ cmdfile }}&lt;BR /&gt;register: result1&lt;/P&gt;&lt;P&gt;- name: show output files&lt;BR /&gt;debug:&lt;BR /&gt;var: result1&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;-- Playbook which i want to run and which is asking me to give the OS name:&lt;/P&gt;&lt;P&gt;root@eve-ng:/etc/ansible# cat cp1.yml&lt;/P&gt;&lt;P&gt;- hosts: checkpoint&lt;BR /&gt;serial: 1&lt;BR /&gt;gather_facts: no&lt;BR /&gt;connection: network_cli&lt;BR /&gt;tasks:&lt;/P&gt;&lt;P&gt;- name: SHOW COMMAND&lt;BR /&gt;cli_command:&lt;BR /&gt;command:&lt;BR /&gt;- "cpinfo -y all"&lt;BR /&gt;- "fw ver"&lt;BR /&gt;register: result&lt;/P&gt;&lt;P&gt;- name: show output&lt;BR /&gt;debug:&lt;BR /&gt;var: result.stdout_lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2019 19:23:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59100#M149</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-07-28T19:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible-based automation for Check Point Management Server and Check Point Gateways</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59250#M150</link>
      <description>You may have better luck using Ansible to call our Management API to execute the necessary gateway commands rather than using Ansible directly.&lt;BR /&gt;Most of our examples take this approach.</description>
      <pubDate>Tue, 30 Jul 2019 15:32:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/59250#M150</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-07-30T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible-based automation for Check Point Management Server and Check Point Gateways</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/74855#M265</link>
      <description>&lt;P&gt;According to&amp;nbsp;sk114661, you need to configure Ansible inventory or&amp;nbsp;&lt;SPAN&gt;/etc/ansible/hosts with the relevant&amp;nbsp;ansible_network_os.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ansible_network_os=checkpoint&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Full configuration shown in&amp;nbsp;sk114661.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Vlad Tonne.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 19:29:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/74855#M265</guid>
      <dc:creator>Vlad_Tonne</dc:creator>
      <dc:date>2020-02-11T19:29:35Z</dc:date>
    </item>
  </channel>
</rss>

