<?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: Automatic Configuration on boot in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29152#M2308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;Awesome posts guys!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;Last time I used cloud-init I used git to clone a repo that contained my playbooks onto the VM which then ran them on itself, obviously you'd need git and ansible on the&amp;nbsp;firewall mind you just to run as a client.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;With this approach&amp;nbsp;jenkins can detect a change when you push to the repo at the next poll, run the infrastructure pipeline, deploy a fresh VM, and apply the configuration.&amp;nbsp; You can always intoduce an interactive step in the pipeline if you are worried about outages caused by unscheduled changes - but being able to effective version control infratructure and configuration was very appealing -&amp;nbsp;namely&amp;nbsp;precision you get with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;I'll check out this more in my free time but looks very interesting - I guess you can get it to create a SIC&amp;nbsp;and&amp;nbsp;request the latest policy too right? Ideally, I'd like to see " and end to upgrades" and do a fresh install everytime.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;Anyone done anything similar?&amp;nbsp; I ask as from what I can gather gaia is 'just' linux right? (not meant to be detrimental) - maybe I am being too ambitious deploying firewalls as a pipeline... (not for my current use case that's for sure!!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2018 06:17:22 GMT</pubDate>
    <dc:creator>Nicholas_Sherid</dc:creator>
    <dc:date>2018-09-27T06:17:22Z</dc:date>
    <item>
      <title>Automatic Configuration of Appliance on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29147#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi forum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linux has a 'cloud-init' script that allows a server to be created and run scripts at time of creation, which something that I've used&amp;nbsp;before with&amp;nbsp;ansible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The net effect of this is it creates a infrastructure that is completely defined as code, and allows the management of the device through version control, and modified through redeployment.&amp;nbsp; It also allows a 'complete package' to be deployed, effectly allowing infrastructure definition and configuration management to be&amp;nbsp;managed more as a single unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone aware of any such configuraton option available in gaia?&amp;nbsp; Just to emphasise this is automatic configuration at the point of instantiation, and &lt;STRONG&gt;not at reboot&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask as there is all this cool ansible stuff avialable now for checkpoint, ideally I just want to be able to&amp;nbsp;deploy a firewall with minimum manual involvement, and be less 'precious' about the VM,&amp;nbsp;so I can&amp;nbsp;be more 'precious' abut the policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 06:34:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29147#M2303</guid>
      <dc:creator>Nicholas_Sherid</dc:creator>
      <dc:date>2018-09-24T06:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29148#M2304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you consider Blink as an option?&amp;nbsp;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk120193&amp;amp;partition=General&amp;amp;product=Branch#How%20to%20use%20the%20Blink%20mechanism" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk120193&amp;amp;partition=General&amp;amp;product=Branch#How%20to%20use%20the%20Blink%20mechanism"&gt;Blink - Gaia Fast Deployment&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 10:14:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29148#M2304</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2018-09-24T10:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29149#M2305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Valeri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks just the ticket! thanks &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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:10:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29149#M2305</guid>
      <dc:creator>Nicholas_Sherid</dc:creator>
      <dc:date>2018-09-24T13:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29150#M2306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you referring to the physical machine or virtual machine?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;AFAIK cloud-init - is been used for the &lt;SPAN&gt;CloudGaurd IaaS&lt;/SPAN&gt; - you can see Check Point CloudGaurd IaaS solution for KVM/Azure/AWS/Google that leverage it :&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/R80.10/WebAdminGuides/EN/CP_vSEC_R80.10_Gateway_for_OpenStack_AdminGuide/html_frameset.htm" title="https://sc1.checkpoint.com/documents/R80.10/WebAdminGuides/EN/CP_vSEC_R80.10_Gateway_for_OpenStack_AdminGuide/html_frameset.htm"&gt;vSEC for OpenStack R80.10 Administration Guide&lt;/A&gt;&amp;nbsp; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="background-color: inherit; font-weight: 300; text-decoration: none; margin: 0.5cm 0cm 3pt; padding: 15px 0pt 0pt;"&gt;To launch a Gateway instance with an automated script:&lt;/P&gt;&lt;OL class="" style="margin-top: 6pt; margin-bottom: 0pt;"&gt;&lt;LI class="" style="color: #000000; background-color: inherit; font-weight: normal; text-decoration: none; text-indent: 0cm; margin: 6pt 0pt 0pt; padding: 0pt;"&gt;Create a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;CODE class="" style="background-color: inherit; padding: 0pt;"&gt;&lt;CODE class="" style="background-color: inherit; padding: 0pt;"&gt;USER-SCRIPT&lt;/CODE&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that runs at the time the computer boots up for the first time. Use these commands in the script to configure the password for the OS admin user and to set the gateway as a standalone Security Management Server and Security Gateway. "&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Azure:&amp;nbsp;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk105242&amp;amp;partition=General&amp;amp;product=vSEC" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk105242&amp;amp;partition=General&amp;amp;product=vSEC"&gt;Using Custom Data to execute an initialization script when you launch your Check Point Security Gateway in Microsoft Azu…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AWS:&amp;nbsp;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk104080&amp;amp;partition=General&amp;amp;product=vSEC" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk104080&amp;amp;partition=General&amp;amp;product=vSEC"&gt;Using User Data to execute an initialization script when you launch your Check Point Security Gateway in AWS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Google Cloud :&amp;nbsp;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk114577&amp;amp;partition=General&amp;amp;product=CloudGuard#Deployment" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk114577&amp;amp;partition=General&amp;amp;product=CloudGuard#Deployment"&gt;Check Point CloudGuard IaaS reference architecture for Google Cloud Platform&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; under "&lt;STRONG&gt;Advanced deployment options:"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the physical machine:&lt;/P&gt;&lt;P&gt;You can use kickstart or Blink as &lt;A href="https://community.checkpoint.com/migrated-users/2138"&gt;Valeri Loukine&lt;/A&gt;‌ mention or any other automation as A&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;nsible and etc..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I'm personally using Blink , I created&amp;nbsp;install_content.sh file with content&amp;nbsp;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;#!/bin/bash -f&lt;BR /&gt;source /etc/profile.d/CP.sh&lt;BR /&gt;clish -ic "lock database override"&lt;BR /&gt;clish -ic "set user admin shell /bin/bash"&lt;BR /&gt;clish -ic "set password-controls complexity 1"&lt;BR /&gt;clish -ic "set password-controls history-checking false"&lt;BR /&gt;clish -ic "set message banner off"&lt;BR /&gt;clish -ic "set message caption on"&lt;BR /&gt;clish -ic "set timezone Asia / Jerusalem"&lt;BR /&gt;clish -ic "save config"&lt;BR /&gt;clish -ic "unlock database"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I use Blink as follow: I first copy to the machine the Blink files&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;--&lt;SPAN&gt;blink_genrate_answers.sh is a scrip that I made for genrate the Blink answer file &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;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;The flow that I use with my Blink , you can use Ansible simple paybook that will run it &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;tar -tvf /var/log/MyDIR/blink_image_1.0_Check_Point_R80.10_T462_Jumbo_T103.tgz&lt;BR /&gt;tar -zxvf blink.tgz&lt;BR /&gt;chmod -v +x blink&lt;BR /&gt;mkdir -p /var/log/bli&lt;BR /&gt;./blink -i /var/log/MyDIR/blink_image_1.0_Check_Point_R80.10_T462_Jumbo_T103.tgz -x -d /var/log/bli/&lt;BR /&gt;chmod 777 blink_genrate_answers.sh&lt;BR /&gt;chmod 777 install_content.sh&lt;BR /&gt;dos2unix install_content.sh&lt;BR /&gt;cp /var/log/MyDIR/install_content.sh /var/log/bli/user_updates/&lt;BR /&gt;dos2unix blink_genrate_answers.sh&lt;BR /&gt;cd /var/log/bli/installation_logic/&lt;BR /&gt;/var/log/MyDIR/blink_genrate_answers.sh&lt;BR /&gt;cd /var/log/bli&lt;BR /&gt;cat /var/log/bli/installation_logic/answers.xml&lt;BR /&gt;cat /var/log/bli/user_updates/install_content.sh&lt;BR /&gt;cd /var/log/bli/&lt;BR /&gt;nohup ./BlinkInstaller --reimage --delete-old-partition --force &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 18:32:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29150#M2306</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2018-09-25T18:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29151#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect explanation, &lt;A href="https://community.checkpoint.com/migrated-users/5015"&gt;Ofir Sh&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 07:51:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29151#M2307</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2018-09-26T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29152#M2308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;Awesome posts guys!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;Last time I used cloud-init I used git to clone a repo that contained my playbooks onto the VM which then ran them on itself, obviously you'd need git and ansible on the&amp;nbsp;firewall mind you just to run as a client.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;With this approach&amp;nbsp;jenkins can detect a change when you push to the repo at the next poll, run the infrastructure pipeline, deploy a fresh VM, and apply the configuration.&amp;nbsp; You can always intoduce an interactive step in the pipeline if you are worried about outages caused by unscheduled changes - but being able to effective version control infratructure and configuration was very appealing -&amp;nbsp;namely&amp;nbsp;precision you get with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;I'll check out this more in my free time but looks very interesting - I guess you can get it to create a SIC&amp;nbsp;and&amp;nbsp;request the latest policy too right? Ideally, I'd like to see " and end to upgrades" and do a fresh install everytime.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e45785; background-color: #ffffff;"&gt;Anyone done anything similar?&amp;nbsp; I ask as from what I can gather gaia is 'just' linux right? (not meant to be detrimental) - maybe I am being too ambitious deploying firewalls as a pipeline... (not for my current use case that's for sure!!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 06:17:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29152#M2308</guid>
      <dc:creator>Nicholas_Sherid</dc:creator>
      <dc:date>2018-09-27T06:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29153#M2309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/51278"&gt;Kfir Bachar&lt;/A&gt;‌ + &lt;A href="https://community.checkpoint.com/migrated-users/46319"&gt;Tsahi Etziony&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the ISO for installation&amp;nbsp;or the ovf&amp;nbsp;format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the ISO format on ESX + PXE server, I fully automate end to end Check Point :&lt;/P&gt;&lt;P&gt;1. Install CKP&lt;/P&gt;&lt;P&gt;2. Pull the OS settings&lt;/P&gt;&lt;P&gt;3. Configure the OS&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Connect to the MGMT to establish the SIC and GW object&lt;/P&gt;&lt;P&gt;5. Push policy to the GW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For physical appliance I use Blink &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;do not have experience with Jenkins &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://community.checkpoint.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&amp;nbsp;I was not able to understand what I can do with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Ofir S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 14:20:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29153#M2309</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2018-09-28T14:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29154#M2310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah right - I am only really interested in azure - so I guess its a case of creating a custom image with packer or something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got any pointers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jenkins just keeps track of a repo and manages worker nodes (it executes groovy pipelines) when it sees changes, in it's simplest form.&amp;nbsp; CI/CD stuff.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Because we are all one 'agile' devops happy family right?&lt;/EM&gt; &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;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;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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2018 10:27:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29154#M2310</guid>
      <dc:creator>Nicholas_Sherid</dc:creator>
      <dc:date>2018-09-29T10:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration of Appliance on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29155#M2311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk105242" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk105242"&gt;Using Custom Data to execute an initialization script when you launch your Check Point Security Gateway in Microsoft Azu…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-weight: bold; font-size: 22px;"&gt;Using Custom Data to execute an initialization script when you launch your Check Point Security Gateway in Microsoft Azure&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="color: #333333; font-weight: bold; font-size: 22px;"&gt;Solution&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; font-size: 14px;"&gt;&lt;H2 style="color: #333333; font-weight: bold; font-size: 22px; padding: 10px 0px 0px;"&gt;Introduction&lt;/H2&gt;&lt;P&gt;It is now possible to create an initialization script that would be executed the first time you launch your Check Point Security Gateway instance in Microsoft Azure.&lt;BR /&gt;This initialization script can be used to set operating system configuration and to automate the Security Gateway's provisioning process.&lt;/P&gt;&lt;H2 style="color: #333333; font-weight: bold; font-size: 22px; padding: 10px 0px 0px;"&gt;Prerequisites&lt;/H2&gt;&lt;P&gt;It is assumed that the reader is familiar with general Microsoft Azure&amp;nbsp;concepts and services.&lt;/P&gt;&lt;H2 style="color: #333333; font-weight: bold; font-size: 22px; padding: 10px 0px 0px;"&gt;Overview&lt;/H2&gt;&lt;P&gt;When you launch an instance in Microsoft Azure, you can optionally pass your own custom data to it. The Check Point Security Gateway treats this data as an initialization script. This script can be used to modify operating system settings, as well as to replace the First Time Configuration Wizard configuration process.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If no custom data is supplied at boot time, the machine will boot normally and you would need to complete its configuration manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2 style="color: #333333; font-weight: bold; font-size: 22px; padding: 10px 0px 0px;"&gt;Known Limitations&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;This feature is available starting from&amp;nbsp;&lt;EM&gt;R77.30&lt;/EM&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2 style="color: #333333; font-weight: bold; font-size: 22px; padding: 10px 0px 0px;"&gt;Configuration Flow&lt;/H2&gt;&lt;P&gt;When the Check Point Security Gateway launches for the first time, it fetches the custom data from Microsoft Azure.&lt;/P&gt;&lt;P&gt;The Security Gateway saves the custom&amp;nbsp;data to a temporary script file and then executes it. The output of the script is redirected to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;/var/log/cloud-user-data&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;The script would only be executed when the instance boots for the first time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2 style="color: #333333; font-weight: bold; font-size: 22px; padding: 10px 0px 0px;"&gt;Setup&lt;/H2&gt;&lt;P&gt;Create your own initialization script to be executed when the instance first launches.&lt;/P&gt;&lt;P&gt;You can use the following script as an example:&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE&gt;&lt;EM&gt;#!/bin/bash&amp;nbsp; clish -c 'set hostname HOSTNAME' -s&amp;nbsp; config_system -s 'install_security_gw=true&amp;amp;install_ppak=true&amp;amp;install_security_managment=false&amp;amp;ipstat_v6=off&amp;amp;ftw_sic_key=SIC_KEY'&amp;nbsp; shutdown -r now&lt;/EM&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;TABLE border="1" cellpadding="4" cellspacing="2" style="color: #000000; font-size: 14px;" width="80%"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#d6dff0" class="" style="color: #333333; background: none 0px 0px repeat scroll #ebebeb; font-weight: bold;"&gt;&lt;TD width="20%"&gt;&lt;STRONG&gt;Variable&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="80%"&gt;&lt;STRONG&gt;Usage&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE&gt;HOSTNAME&lt;/CODE&gt;&lt;/TD&gt;&lt;TD&gt;The host name.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE&gt;SIC_KEY&lt;/CODE&gt;&lt;/TD&gt;&lt;TD&gt;Secure Internal communication key - a one-time key used to set up trust with Security Management Server.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This script:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sets the host name&lt;/LI&gt;&lt;LI&gt;Uses the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;config_system&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;utility to automate the First Time Configuration Wizard process&lt;/LI&gt;&lt;LI&gt;Reboots the instance to complete the installation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Pass the script to Microsoft Azure, when you launch the instance, as explained in&amp;nbsp;&lt;A href="http://azure.microsoft.com/blog/2014/04/21/custom-data-and-cloud-init-on-windows-azure" style="color: #905690; text-decoration: none; font-size: 14px;" target="_blank"&gt;Custom Data and Cloud-Init on Microsoft Azure&lt;/A&gt;&amp;nbsp;article.&lt;/P&gt;&lt;H2 style="color: #333333; font-weight: bold; font-size: 22px; padding: 10px 0px 0px;"&gt;&lt;BR /&gt;Additional Information and Resources&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;Custom Data in Microsoft Azure:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://azure.microsoft.com/blog/2014/04/21/custom-data-and-cloud-init-on-windows-azure" style="color: #905690; text-decoration: none; font-size: 14px;" target="_blank"&gt;http://azure.microsoft.com/blog/2014/04/21/custom-data-and-cloud-init-on-windows-azure&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://supportcontent.checkpoint.com/solutions?id=sk69701" style="color: #905690; text-decoration: none; font-size: 14px;" target="_blank"&gt;sk69701 - How to run the First Time Configuration Wizard through CLI in Gaia&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Examples on how to use this in PowerShell and in ARM templates:&amp;nbsp; (Check Point templates are now available as marketplace solution templates.)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2 style="color: #333333; font-weight: bold; font-size: 22px; padding: 10px 0px 0px;"&gt;Troubleshooting:&lt;/H2&gt;&lt;P&gt;The output of the script is saved to the&amp;nbsp;&lt;EM&gt;/var/log/cloud-user-data&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2018 17:21:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29155#M2311</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2018-09-29T17:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration of Appliance on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29156#M2312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome - just came acros this, this morning - you beat me to it - thanks! &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #000000; background-color: transparent; font-weight: 400; text-decoration: none;"&gt;Custom initialisation script &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk105242" style="text-decoration: none;"&gt;&lt;SPAN style="font-size: 10pt; color: #1155cc; background-color: transparent; font-weight: 400; text-decoration: underline;"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk105242&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #000000; background-color: transparent; font-weight: 400; text-decoration: none;"&gt;Cloud-init on Azure&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;A href="https://azure.microsoft.com/en-gb/blog/custom-data-and-cloud-init-on-windows-azure/" style="text-decoration: none;"&gt;&lt;SPAN style="font-size: 10pt; color: #1155cc; background-color: transparent; font-weight: 400; text-decoration: underline;"&gt;https://azure.microsoft.com/en-gb/blog/custom-data-and-cloud-init-on-windows-azure/&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2018 09:04:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29156#M2312</guid>
      <dc:creator>Nicholas_Sherid</dc:creator>
      <dc:date>2018-09-30T09:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration of Appliance on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29157#M2313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrote up a python script to help generate the file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 11px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;#!/usr/bin/env python&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; jinja2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; argparse&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;def&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;request_template_parameters&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; parser &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; argparse.ArgumentParser(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;description&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'Gather parameters for generating custom data file'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; parser.add_argument(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'--hostname'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;action&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"store"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;str&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;help&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'The hostname of the firewall'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; parser.add_argument(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'--install_security_gw'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;action&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"store"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;str&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;help&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'Defining a secure gateway or management function - values are true or false'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; parser.add_argument(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'--install_ppak'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;action&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"store"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;str&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;help&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'values are true or false'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; parser.add_argument(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'--install_security_managment'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;action&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"store"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;str&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;help&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'values are true or false'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; parser.add_argument(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'--ipstat_v6'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;action&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"store"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;str&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;help&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'values are true or false for ipv6'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; parser.add_argument(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'--sic_key'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;action&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"store"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;str&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;help&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'The one time Secure Internal Communication key'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; args &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; parser.parse_args()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; hostname &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; args.hostname&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_security_gw &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; args.install_security_gw&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_ppak &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; args.install_ppak&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_security_managment &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; args.install_security_managment&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ipstat_v6 &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; args.ipstat_v6&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; sic_key &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; args.sic_key&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; hostname, install_security_gw, install_ppak, install_security_managment, ipstat_v6, sic_key &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;def&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;load_template&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;template_filename&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; templateLoader &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; jinja2.FileSystemLoader(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;searchpath&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"./"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; templateEnv &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; jinja2.Environment(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;loader&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;templateLoader)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; template_object &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; template_filename&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; template &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; templateEnv.get_template(template_object)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; template&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;def&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;write_to_file&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;contents&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;open&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(filename,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"w"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.write(contents)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.close()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;def&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;main&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; script_input &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; request_template_parameters()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; hostname_input &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; script_input[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_security_gw_input &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; script_input[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_ppak_input &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; script_input[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_security_managment_input &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; script_input[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ipstat_v6_input &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; script_input[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; sic_key_input &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; script_input[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; template &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; load_template(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"cloudguard_init.j2"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #6a9955;"&gt;# Place arguments here to build up a configuration file to pass to --cloud&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; outputText &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; template.render(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;hostname&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; hostname_input ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;install_security_gw&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_security_gw_input ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;install_ppak&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_ppak_input ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;install_security_managment&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; install_security_managment_input ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;ipstat_v6&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ipstat_v6_input , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;sic_key&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; sic_key_input&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'cloudguard-init.txt file generated in present working directory'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; write_to_file(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"cloudguard-init.txt"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,outputText)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;__name__&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; main()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the template file&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 11px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;#!/bin/bash&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;clish -c 'set hostname {{ hostname }} ' -s&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;config_system -s 'install_security_gw={{ install_security_gw }}&amp;amp;install_ppak={{ install_ppak }}&amp;amp;install_security_managment={{ install_security_managment }}&amp;amp;ipstat_v6={{ ipstat_v6 }}&amp;amp;ftw_sic_key={{ sic_key }}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;shutdown -r now&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and usage:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 11px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ./template_engine.py \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; --hostname some_firewall_hostnme \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; --install_security_gw true \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; --install_ppak true \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; --install_security_managment false \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; --ipstat_v6 false \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; --sic_key some_complex_key&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2018 13:10:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29157#M2313</guid>
      <dc:creator>Nicholas_Sherid</dc:creator>
      <dc:date>2018-09-30T13:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Configuration of Appliance on boot</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29158#M2314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow amazing &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;&lt;/P&gt;&lt;P&gt;Do you think that you can share it with all under Developer Network&lt;SPAN style="color: #8b8b8b; background-color: #f0f0f0; font-weight: 300;"&gt;&amp;nbsp;&lt;/SPAN&gt;? it will be more awesome&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.checkpoint.com/news?streamSource=publication&amp;amp;streamID=87802" title="https://community.checkpoint.com/news?streamSource=publication&amp;amp;streamID=87802"&gt;https://community.checkpoint.com/news?streamSource=publication&amp;amp;streamID=87802&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Sep 2018 13:13:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Automatic-Configuration-of-Appliance-on-boot/m-p/29158#M2314</guid>
      <dc:creator>Ofir_Shikolski</dc:creator>
      <dc:date>2018-09-30T13:13:20Z</dc:date>
    </item>
  </channel>
</rss>

