Skip to content

feat(refactor): ARE intriduction #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
292249d
Added advanced routing to multi_nic_common example + fixed other boot…
horiagunica Jul 17, 2025
ec439fb
Added ARE to standalone_vmseries_with_metadata_bootstrap example
horiagunica Jul 19, 2025
c864b77
Added ARE to standalone_vmseries_with_metadata_bootstrap example
horiagunica Jul 19, 2025
fec98d4
Added advanced routing to vmseries_ha example + fixed other bootstrap…
horiagunica Jul 19, 2025
b5bb4e0
Added advanced routing to vpc_peering_common example + fixed other bo…
horiagunica Jul 23, 2025
90a6240
Added advanced routing to vpc_peering_common_dual_stack example + fix…
horiagunica Jul 23, 2025
f04294c
Added advanced routing to vpc_peering_common_with_autoscale + fixed b…
horiagunica Jul 23, 2025
e762b2f
Added advanced routing to vpc_peering_common_with_network_tags + fixe…
horiagunica Jul 23, 2025
959430a
Fixed bootstrapping routing table xml - additional info
horiagunica Jul 29, 2025
76d36f6
Added advanced routing to vpc_peering_dedicated + fixed bootstrap var…
horiagunica Jul 29, 2025
12854b0
Added advanced routing to vpc_peering_dedicated + fixed bootstrap var…
horiagunica Jul 29, 2025
b323180
Merge branch '73-are-introduction' of https://github.com/PaloAltoNetw…
horiagunica Jul 29, 2025
238585a
Added advanced routing to vpc_peering_dedicated_with_autoscale + fixe…
horiagunica Jul 29, 2025
50692ed
Removed testing data
horiagunica Jul 29, 2025
27b2009
Removed testing data
horiagunica Jul 29, 2025
82bbbdf
Pre-commit hooks
horiagunica Jul 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions examples/multi_nic_common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,20 @@ map(object({
service_account_key = optional(string)
service_account = optional(string)
scopes = optional(list(string))
named_ports = optional(list(object({
name = optional(string)
port = optional(number)
})))
bootstrap_bucket_key = optional(string)
bootstrap_template_map = optional(object({
spoke1_gcp_router_ip = optional(string)
spoke2_gcp_router_ip = optional(string)
untrust_gcp_router_ip = optional(string)
private_network_cidr = optional(string)
untrust_loopback_ip = optional(string)
spoke1_loopback_ip = optional(string)
spoke2_loopback_ip = optional(string)
}))
bootstrap_options = optional(object({
type = optional(string)
mgmt-interface-swap = optional(string)
Expand All @@ -595,6 +609,8 @@ map(object({
authcodes = optional(string)
vm-series-auto-registration-pin-id = optional(string)
vm-series-auto-registration-pin-value = optional(string)
dns-primary = optional(string)
dns-secondary = optional(string)
}))
}))
```
Expand Down
6 changes: 3 additions & 3 deletions examples/multi_nic_common/example.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ networks = {
firewall_rules = {
allow-mgmt-ingress = {
name = "allow-mgmt-ingress"
source_ranges = ["1.1.1.1/32"] # Set your own management source IP range.
source_ranges = ["202.181.128.0/24"] # Set your own management source IP range.
priority = "1000"
allowed_protocol = "all"
allowed_ports = []
Expand Down Expand Up @@ -168,14 +168,15 @@ routes = {
# VM-Series
vmseries_common = {
ssh_keys = "admin:<YOUR_SSH_KEY>"
vmseries_image = "vmseries-flex-byol-10210h9"
vmseries_image = "vmseries-flex-byol-1116h7"
machine_type = "n2-standard-4"
min_cpu_platform = "Intel Cascade Lake"
service_account_key = "sa-vmseries-01"
bootstrap_options = {
# TODO: Modify the values below as per deployment requirements
type = "dhcp-client"
mgmt-interface-swap = "enable"
plugin-op-commands = "advance-routing:enable"

## Uncomment for Panorama based bootstrap.
# panorama-server = "1.1.1.1"
Expand All @@ -190,7 +191,6 @@ vmseries_common = {
# vm-series-auto-registration-pin-id = "example-pin-id"
# vm-series-auto-registration-pin-value = "example-pin-value"
# authcodes = "D123456"
# plugin-op-commands = "advance-routing:enable"
}
}

Expand Down
8 changes: 6 additions & 2 deletions examples/multi_nic_common/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ resource "local_sensitive_file" "init_cfg" {
filename = "files/${each.key}/config/init-cfg.txt"
content = templatefile(
"templates/init-cfg.tmpl",
{ bootstrap_options = merge(var.vmseries_common.bootstrap_options, each.value.bootstrap_options) }
{ bootstrap_options = merge(
{ for k, v in var.vmseries_common.bootstrap_options : k => v if v != null },
{ for k, v in each.value.bootstrap_options : k => v if v != null }
)
}
)
}

Expand Down Expand Up @@ -211,4 +215,4 @@ module "lb_external" {

health_check_http_port = each.value.http_health_check_port
health_check_http_request_path = try(each.value.http_health_check_request_path, "/php/login.php")
}
}
Loading
Loading