ibmcloud-panorama

PANW Panorama Terraform template for IBM Cloud deployments
ibmcloud
panorama
terraform-module

Deploy Panorama VSI on IBM Cloud

This directory contains the terraform code to create a Panorama Instance with one network interface(management).

Use this template to create Panorama virtual instance using qcow2 image from your IBM Cloud account in IBM Cloud VPC Gen2 by using Terraform or IBM Cloud Schematics.  Schematics uses Terraform as the infrastructure-as-code engine.  With this template, you can create and manage infrastructure as a single unit as follows. For more information about how to use this template, see the IBM Cloud Schematics documentation.

Deployment Options

Note :

  • You can either run the code using your own Terraform CLI or use the IBM Cloud Schematics Workspace which can run Terraform for you.
  • (Option 1) IBM Cloud Schematics: Create a schematics workspace and provide the github repository url (https://github.com/PaloAltoNetworks/ibmcloud) under settings to pull the latest code, so that you can set up your deployment variables from the Create page. Once the template is applied, IBM Cloud Schematics provisions the resources based on the values that were specified for the deployment variables.
  • (Option 2) Terraform CLI v0.12.x:

Prerequisites

Dependencies

Before you can apply the template in IBM Cloud, complete the following steps.

  1. Ensure that you have the following permissions in IBM Cloud Identity and Access Management:
    • Manager service access role for IBM Cloud Schematics
    • Operator platform role for VPC Infrastructure
  2. Ensure the following resources exist in your VPC Gen 2 environment
    • VPC ()
    • SSH Key: Public SSH Key Doc
    • VPC has 3 subnets
    • (Optional): A Floating IP Address to assign to the management interface of Panorama instance post deployment

Required Parameters for Deployment

Fill in the following values, based on the steps that you completed before you began.

Key Definition Value Example
region The VPC region that you want your VPC virtual servers to be provisioned. "us-south"
vnf_cos_image_url This is the vendor COS image SQL URL where the image(Panorama qcow2 image) is located. This is to copy the image from COS to VPC custom image in your IBM Cloud account VPC Infrastructure. First time, the image needs to be copied to your VPC cloud account. "cos://us-east/palo-alto/Panorama-KVM-10.0.4.qcow2"
vnf_profile The profile of compute CPU and memory resources to be used when provisioning the vnf instance. To list available profiles, run ibmcloud is instance-profiles. "bx2-8x32"
subnet_id1 The ID of the subnet(management) which will be associated with first interface of the VNF instance. Click on the subnet details in the VPC Subnet Listing to determine this value "0717-xxxxxx-xxxx-xxxxx-8fae-xxxxx"
vnf_security_group The name of the security group to which the VNF Instance's first interface(management) belong to "panorama-mgmt-sg"
vnf_vpc_image_name The starting name of the Panorama qcow2 Custom Image to be provisioned in your IBM Cloud account and (if already available) to be used to create the Panorama virtual server instance. The name is appended with UUID, to create a unique custom image for every run. "panorama-image"
vnf_instance_name The name of the VNF instance to be provisioned. "panorama-vsi"
ssh_key_name The name of your public SSH key to be used for VSI. Follow Public SSH Key Doc for creating and managing ssh key. "panorama-ssh-key"

Notes

If there is any failure during VSI creation, the created resources must be destroyed before attempting to instantiate again.

  • If you are using IBM Cloud Schematics:
    • To destroy resources go to Schematics -> Workspaces -> [Your Workspace] -> Actions -> Delete to delete all associated resources.
  • If you are using Terraform CLI:
    • Execute terraform destroy --auto-approve

Post Panorama VSI Instance Spin-up (Optional)

  1. From the VPC list, confirm the Panorama VSI is powered ON with green button
  2. Assign a Floating IP to the Panorama VSI. Refer the steps below to associate floating IP
    • Go to VPC Infrastructure Gen 2 from IBM Cloud
    • Click Floating IPs from the left pane
    • Click Reserve floating IP -> Click Reserve IP
    • There will be a (new) Floating IP address with status Unbind
    • Click Three Dot Button corresponding to the Unbound IP address -> Click Bind
    • Select Panorama instance (eth0) from Instance to bind column.
    • After clicking Bind, you can see the IP address assigned to your Panorama-VSI Instance.
  3. Wait for Panorama VSI to boot up.
  4. From the CLI, run ssh -i private_key.pem admin@<Floating IP>.

Note: Default credentials are "admin":"admin" when using the Panorama qcow2 image. After the first login, you will be prompted to change your password for security reasons.

Support Policy

The code and script in the repo are released under an as-is, best effort, support policy. These scripts should be seen as community supported and Palo Alto Networks will contribute our expertise as and when possible. We do not provide technical support or help in using or troubleshooting the components of the project through our normal support options such as Palo Alto Networks support teams, or ASC (Authorized Support Centers) partners and backline support options. The underlying product used (Panorama) by the scripts are still supported, but the support is only for the product functionality and not for help in deploying or using the script itself. Unless explicitly tagged, all projects or work posted in our GitHub repository (at https://github.com/PaloAltoNetworks) or sites other than our official Downloads page on https://support.paloaltonetworks.com are provided under the best effort policy.

Developer Sites

Social


Copyright © 2024 Palo Alto Networks, Inc. All rights reserved.