Skip to content

lornasong/terraform-panos-cts_tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PANOS Tag Module for Consul Terraform Sync

This Terraform module creates tags in a Palo Alto FW. Using this module in automation with Consul Terraform Sync (CTS) will dynamically create or delete tags based off of configured services. This module is useful for testing CTS to observe how changes in service instances play out in a Palo Alto instance.

Feature

The module uses the panos Terraform provider to create tags. The tags are named after the monitored Consul service instances.

Requirements

Ecosystem Requirements

Ecosystem Version
consul >= 1.7
consul-terraform-sync >= 0.1.0
terraform >= 0.13

Terraform Providers

Name Version
panos >= 1.8.0

Setup

This module expects that the user has already setup a PANOS firewall with a username and password / token.

Usage

User Config for Consul Terraform Sync

See Securely Configure Terraform Providers for alternatives to directly inserting token in config file.

example.hcl

task {
  name           = "task_d"
  services       = ["api"]
  providers      = ["panos"]
  version        = "0.0.1"
  source         = "lornasong/panos_tag/cts"
}

terraform_provider "panos" {
  hostname = "ZZ.ZZ.ZZ.ZZ"
  username = "YYYY"
  api_key = "XXXX"
}

About

Terraform module that uses CTS to create panos tags

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages