<?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 Problem with initial Terraform Panos configuration panos_panorama_template in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260779#M1922</link>
    <description>&lt;P&gt;I am trying to configure a VM100 running version 8.3.1 with terraform. (I also tried the same on VM with version 9.0.1)&lt;/P&gt;&lt;P&gt;I run the following version of Terraform:&lt;/P&gt;&lt;P&gt;&amp;gt; terraform -v&lt;BR /&gt;Terraform v0.11.13&lt;BR /&gt;+ provider.panos v1.5.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured&amp;nbsp;panos_panorama_template,&amp;nbsp;panos_panorama_template_entry,&amp;nbsp;panos_panorama_template_variable,&amp;nbsp;panos_panorama_ethernet_interface and&amp;nbsp;panos_panorama_zone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The terraform plan doesn't report any problems but when I do the terraform apply I get the following error and terraform crashes.&lt;/P&gt;&lt;P&gt;panos_panorama_template.example_templ: Creating...&lt;BR /&gt;default_vsys: "" =&amp;gt; "&amp;lt;computed&amp;gt;"&lt;BR /&gt;devices.#: "" =&amp;gt; "&amp;lt;computed&amp;gt;"&lt;BR /&gt;name: "" =&amp;gt; "example_templ"&lt;/P&gt;&lt;P&gt;Error: Error applying plan:&lt;/P&gt;&lt;P&gt;1 error(s) occurred:&lt;/P&gt;&lt;P&gt;* panos_panorama_template.example_templ: 1 error(s) occurred:&lt;/P&gt;&lt;P&gt;* panos_panorama_template.example_templ: unexpected EOF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;panic: interface conversion: interface {} is *pango.Firewall, not *pango.Panorama&lt;BR /&gt;2019-05-13T17:58:44.410+0200 [DEBUG] plugin.terraform-provider-panos_v1.5.1_x4:&lt;BR /&gt;2019-05-13T17:58:44.410+0200 [DEBUG] plugin.terraform-provider-panos_v1.5.1_x4: goroutine 72 [running]:&lt;BR /&gt;2019/05/13 17:58:44 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:&lt;/P&gt;&lt;P&gt;* panos_panorama_template.example_templ: unexpected EOF&lt;BR /&gt;2019/05/13 17:58:44 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:&lt;/P&gt;&lt;P&gt;* panos_panorama_template.example_templ: unexpected EOF&lt;BR /&gt;2019/05/13 17:58:44 [TRACE] [walkApply] Exiting eval tree: panos_panorama_template.example_templ&lt;BR /&gt;2019-05-13T17:58:44.410+0200 [DEBUG] plugin: plugin process exited: path=/home/rhuyerman/cookbook/terraform/busa/firewall/pa-config/.terraform/plugins/linux_amd64/terraform-provider-panos_v1.5.1_x4&lt;BR /&gt;2019/05/13 17:58:44 [TRACE] dag/walk: upstream errored, not walking "panos_panorama_template_entry.example_tmplentry"&lt;BR /&gt;2019-05-13T17:58:44.410+0200 [DEBUG] plugin.terraform-provider-panos_v1.5.1_x4: github.com/terraform-providers/terraform-provider-panos/panos.createPanoramaTemplate(0xc0001b0d20, 0x10c6060, 0xc0002e8640, 0xc0001b0d20, 0x0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong in my configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the config:&lt;/P&gt;&lt;P&gt;provider "panos" {&lt;BR /&gt;#hostname = "172.16.0.75"&lt;BR /&gt;hostname = "172.16.0.249"&lt;BR /&gt;api_key = "${var.panos_api_key}"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "panos_panorama_template" "example_templ" {&lt;BR /&gt;name = "example_templ"&lt;BR /&gt;# device {&lt;BR /&gt;# serial = "007254000068426"&lt;BR /&gt;# }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "panos_panorama_template_entry" "example_tmplentry" {&lt;BR /&gt;template = "${panos_panorama_template.example_templ.name}"&lt;BR /&gt;#serial = "007254000068426"&lt;BR /&gt;serial = "007054000062810"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "panos_panorama_template_variable" "example_templvar" {&lt;BR /&gt;template = "${panos_panorama_template.example_templ.name}"&lt;BR /&gt;name = "$example_templvar"&lt;BR /&gt;type = "fqdn"&lt;BR /&gt;value = "example.busm.local"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;resource "panos_panorama_ethernet_interface" "eth1-3" {&lt;BR /&gt;name = "ethernet1/3"&lt;BR /&gt;# vsys = "vsys1"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;template = "${panos_panorama_template.example_templ.name}"&lt;BR /&gt;static_ips = ["172.16.16.2/24"]&lt;BR /&gt;comment = "EXP_a_DMZ"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;resource "panos_panorama_zone" "EXP_a_DMZ" {&lt;BR /&gt;name = "EXP_a_DMZ"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;interfaces = ["${panos_panorama_ethernet_interface.eth1-3.name}"]&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 16:05:14 GMT</pubDate>
    <dc:creator>rhuyerman</dc:creator>
    <dc:date>2019-05-13T16:05:14Z</dc:date>
    <item>
      <title>Problem with initial Terraform Panos configuration panos_panorama_template</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260779#M1922</link>
      <description>&lt;P&gt;I am trying to configure a VM100 running version 8.3.1 with terraform. (I also tried the same on VM with version 9.0.1)&lt;/P&gt;&lt;P&gt;I run the following version of Terraform:&lt;/P&gt;&lt;P&gt;&amp;gt; terraform -v&lt;BR /&gt;Terraform v0.11.13&lt;BR /&gt;+ provider.panos v1.5.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured&amp;nbsp;panos_panorama_template,&amp;nbsp;panos_panorama_template_entry,&amp;nbsp;panos_panorama_template_variable,&amp;nbsp;panos_panorama_ethernet_interface and&amp;nbsp;panos_panorama_zone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The terraform plan doesn't report any problems but when I do the terraform apply I get the following error and terraform crashes.&lt;/P&gt;&lt;P&gt;panos_panorama_template.example_templ: Creating...&lt;BR /&gt;default_vsys: "" =&amp;gt; "&amp;lt;computed&amp;gt;"&lt;BR /&gt;devices.#: "" =&amp;gt; "&amp;lt;computed&amp;gt;"&lt;BR /&gt;name: "" =&amp;gt; "example_templ"&lt;/P&gt;&lt;P&gt;Error: Error applying plan:&lt;/P&gt;&lt;P&gt;1 error(s) occurred:&lt;/P&gt;&lt;P&gt;* panos_panorama_template.example_templ: 1 error(s) occurred:&lt;/P&gt;&lt;P&gt;* panos_panorama_template.example_templ: unexpected EOF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;panic: interface conversion: interface {} is *pango.Firewall, not *pango.Panorama&lt;BR /&gt;2019-05-13T17:58:44.410+0200 [DEBUG] plugin.terraform-provider-panos_v1.5.1_x4:&lt;BR /&gt;2019-05-13T17:58:44.410+0200 [DEBUG] plugin.terraform-provider-panos_v1.5.1_x4: goroutine 72 [running]:&lt;BR /&gt;2019/05/13 17:58:44 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:&lt;/P&gt;&lt;P&gt;* panos_panorama_template.example_templ: unexpected EOF&lt;BR /&gt;2019/05/13 17:58:44 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:&lt;/P&gt;&lt;P&gt;* panos_panorama_template.example_templ: unexpected EOF&lt;BR /&gt;2019/05/13 17:58:44 [TRACE] [walkApply] Exiting eval tree: panos_panorama_template.example_templ&lt;BR /&gt;2019-05-13T17:58:44.410+0200 [DEBUG] plugin: plugin process exited: path=/home/rhuyerman/cookbook/terraform/busa/firewall/pa-config/.terraform/plugins/linux_amd64/terraform-provider-panos_v1.5.1_x4&lt;BR /&gt;2019/05/13 17:58:44 [TRACE] dag/walk: upstream errored, not walking "panos_panorama_template_entry.example_tmplentry"&lt;BR /&gt;2019-05-13T17:58:44.410+0200 [DEBUG] plugin.terraform-provider-panos_v1.5.1_x4: github.com/terraform-providers/terraform-provider-panos/panos.createPanoramaTemplate(0xc0001b0d20, 0x10c6060, 0xc0002e8640, 0xc0001b0d20, 0x0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong in my configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the config:&lt;/P&gt;&lt;P&gt;provider "panos" {&lt;BR /&gt;#hostname = "172.16.0.75"&lt;BR /&gt;hostname = "172.16.0.249"&lt;BR /&gt;api_key = "${var.panos_api_key}"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "panos_panorama_template" "example_templ" {&lt;BR /&gt;name = "example_templ"&lt;BR /&gt;# device {&lt;BR /&gt;# serial = "007254000068426"&lt;BR /&gt;# }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "panos_panorama_template_entry" "example_tmplentry" {&lt;BR /&gt;template = "${panos_panorama_template.example_templ.name}"&lt;BR /&gt;#serial = "007254000068426"&lt;BR /&gt;serial = "007054000062810"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;resource "panos_panorama_template_variable" "example_templvar" {&lt;BR /&gt;template = "${panos_panorama_template.example_templ.name}"&lt;BR /&gt;name = "$example_templvar"&lt;BR /&gt;type = "fqdn"&lt;BR /&gt;value = "example.busm.local"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;resource "panos_panorama_ethernet_interface" "eth1-3" {&lt;BR /&gt;name = "ethernet1/3"&lt;BR /&gt;# vsys = "vsys1"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;template = "${panos_panorama_template.example_templ.name}"&lt;BR /&gt;static_ips = ["172.16.16.2/24"]&lt;BR /&gt;comment = "EXP_a_DMZ"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;resource "panos_panorama_zone" "EXP_a_DMZ" {&lt;BR /&gt;name = "EXP_a_DMZ"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;interfaces = ["${panos_panorama_ethernet_interface.eth1-3.name}"]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 16:05:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260779#M1922</guid>
      <dc:creator>rhuyerman</dc:creator>
      <dc:date>2019-05-13T16:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with initial Terraform Panos configuration panos_panorama_template</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260780#M1923</link>
      <description>&lt;P&gt;Hi&amp;nbsp;rhuyerman,&lt;/P&gt;&lt;P&gt;it seems you're using panorama resources while talking to a firewall. If you're directly configuring a firewall (and you don't have a panorama) you should be fine with using:&amp;nbsp;&lt;SPAN class="s1"&gt;panos_ethernet_interface and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;panos_zone&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Rafal&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 16:19:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260780#M1923</guid>
      <dc:creator>RafalWeglarz</dc:creator>
      <dc:date>2019-05-13T16:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with initial Terraform Panos configuration panos_panorama_template</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260785#M1924</link>
      <description>&lt;P&gt;Rafal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That sound logical, I will use that one and let you know of I still have problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 16:23:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260785#M1924</guid>
      <dc:creator>rhuyerman</dc:creator>
      <dc:date>2019-05-13T16:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with initial Terraform Panos configuration panos_panorama_template</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260786#M1925</link>
      <description>&lt;P&gt;Rafal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That works &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;I have create the interface, Zone and Virtual router.&lt;/P&gt;&lt;P&gt;This is the first time I use the Palo Alto Firewalls and I never used Panorama.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the quick help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 16:35:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/problem-with-initial-terraform-panos-configuration-panos/m-p/260786#M1925</guid>
      <dc:creator>rhuyerman</dc:creator>
      <dc:date>2019-05-13T16:35:48Z</dc:date>
    </item>
  </channel>
</rss>

