<?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 PAN config for ansible jinja in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/pan-config-for-ansible-jinja/m-p/321941#M82366</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am trying to create a configuration template which I can change certain variables and pushed the config to multiple firewalls.&lt;/P&gt;&lt;P&gt;However PAN is not behaving the way I need. I have two problems which seems to be related to PAN's design.&lt;/P&gt;&lt;P&gt;1) Even if you fetch the config in set mode and pasted in back in CLI due to strict reference check it fails to run.&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/General-Topics/cli-scripting-mode-without-strict-check/m-p/319921#M81967" target="_blank"&gt;https://live.paloaltonetworks.com/t5/General-Topics/cli-scripting-mode-without-strict-check/m-p/319921#M81967&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Because of this problem, I base my template of XML config then I import it on the new firewalls however XML is quite&lt;/P&gt;&lt;P&gt;dependent on PAN-OS version so my config generated from template might fail to load on 9.0 version in the future. With set based,&lt;/P&gt;&lt;P&gt;it is easier for me to fix the errors but XML is harder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder what other people do (except recommending panorama as we use it for most but for certain config panorama isn't really efficient) to create a&amp;nbsp; golden template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because of this strict check on CLI, I have to defer to XML but it has its own challenges.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 17:15:58 GMT</pubDate>
    <dc:creator>tirexxerit</dc:creator>
    <dc:date>2020-04-09T17:15:58Z</dc:date>
    <item>
      <title>PAN config for ansible jinja</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pan-config-for-ansible-jinja/m-p/321941#M82366</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am trying to create a configuration template which I can change certain variables and pushed the config to multiple firewalls.&lt;/P&gt;&lt;P&gt;However PAN is not behaving the way I need. I have two problems which seems to be related to PAN's design.&lt;/P&gt;&lt;P&gt;1) Even if you fetch the config in set mode and pasted in back in CLI due to strict reference check it fails to run.&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/General-Topics/cli-scripting-mode-without-strict-check/m-p/319921#M81967" target="_blank"&gt;https://live.paloaltonetworks.com/t5/General-Topics/cli-scripting-mode-without-strict-check/m-p/319921#M81967&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Because of this problem, I base my template of XML config then I import it on the new firewalls however XML is quite&lt;/P&gt;&lt;P&gt;dependent on PAN-OS version so my config generated from template might fail to load on 9.0 version in the future. With set based,&lt;/P&gt;&lt;P&gt;it is easier for me to fix the errors but XML is harder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder what other people do (except recommending panorama as we use it for most but for certain config panorama isn't really efficient) to create a&amp;nbsp; golden template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because of this strict check on CLI, I have to defer to XML but it has its own challenges.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 17:15:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pan-config-for-ansible-jinja/m-p/321941#M82366</guid>
      <dc:creator>tirexxerit</dc:creator>
      <dc:date>2020-04-09T17:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: PAN config for ansible jinja</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pan-config-for-ansible-jinja/m-p/321984#M82373</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Looks like you might want to check out Iron Skillet. I created my own base template off of it and just do a search and replace in the xml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Blogs/IronSkillet-Best-Practices-Templates/ba-p/233175" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Blogs/IronSkillet-Best-Practices-Templates/ba-p/233175&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 21:14:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pan-config-for-ansible-jinja/m-p/321984#M82373</guid>
      <dc:creator>OtakarKlier</dc:creator>
      <dc:date>2020-04-09T21:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: PAN config for ansible jinja</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pan-config-for-ansible-jinja/m-p/322022#M82393</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/80006"&gt;@tirexxerit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To add onto the IronSkillet approach that&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/27580"&gt;@OtakarKlier&lt;/a&gt;&amp;nbsp;brought up. Generally the pieces of the configuration that most people actually care about templating aren't actually dependent on PAN-OS release. So you could make generic XML templates for the major versions, and then further pull in the rulebase and objects and such.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 22:27:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pan-config-for-ansible-jinja/m-p/322022#M82393</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2020-04-09T22:27:00Z</dc:date>
    </item>
  </channel>
</rss>

