Skip to content

Commit

Permalink
Update sample.hcl
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr authored Nov 1, 2022
1 parent a517522 commit db10828
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions sample.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,46 @@ buffer_period {
}

# Vault Config Options
# Only required if you are using Vault to retrieve ZIA API Credentials
# vault {}

# Consul Config Options
consul {
address = "10.0.31.151:8500"
address = "192.168.1.50:8500"
}

# Terraform Driver Options
driver "terraform" {
log = true
persist_log = false
required_providers {
zia = {
source = "zscaler/zia"
}
}
}

# Zscaler Internet Access Workflow Options
# terraform_provider "zia" {
# username = "{{ with secret \"zscaler/ziacloud\" }}{{ .Data.data.username }}{{ end }}"
# password = "{{ with secret \"zscaler/ziacloud\" }}{{ .Data.data.password }}{{ end }}"
# api_key = "{{ with secret \"zscaler/ziacloud\" }}{{ .Data.data.api_key }}{{ end }}"
# zia_cloud = "{{ with secret \"zscaler/ziacloud\" }}{{ .Data.data.zia_cloud }}{{ end }}"
# }

terraform_provider "zpa" {
/*
################################################################################
# For Customer utilizing Vault to Store ZIA API Credentials, enable this field
################################################################################
terraform_provider "zia" {
username = "{{ with secret \"zscaler/ziacloud\" }}{{ .Data.data.username }}{{ end }}"
password = "{{ with secret \"zscaler/ziacloud\" }}{{ .Data.data.password }}{{ end }}"
api_key = "{{ with secret \"zscaler/ziacloud\" }}{{ .Data.data.api_key }}{{ end }}"
zia_cloud = "{{ with secret \"zscaler/ziacloud\" }}{{ .Data.data.zia_cloud }}{{ end }}"
}
*/

terraform_provider "zia" {
username = ""
password = ""
api_key = ""
zia_cloud = ""
}

task {
name = "zia_cfw_source_ip_group"
description = "Create Source IP Group"
name = "Create_Source_IP_Group_ZIA_CFW"
description = "Zscaler Internet Access Cloud Firewall Source IP Group based on service definition"
enabled = true,
module = "./"
variable_files = []
Expand Down

0 comments on commit db10828

Please sign in to comment.