-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.hcl
executable file
·65 lines (56 loc) · 1.48 KB
/
sample.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Global Config Options
log_level = "INFO"
port = 8558
working_dir = "sync-tasks"
syslog {
enabled = false
}
buffer_period {
enabled = true
min = "5s"
max = "20s"
}
# Vault Config Options
# Only required if you are using Vault to retrieve ZIA API Credentials
# vault {}
# Consul Config Options
consul {
address = "192.168.1.50:8500"
}
# Terraform Driver Options
driver "terraform" {
log = true
required_providers {
zia = {
source = "zscaler/zia"
}
}
}
/*
################################################################################
# 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 = "Create_Source_IP_Group_ZIA_CFW"
description = "Zscaler Internet Access Cloud Firewall Source IP Group based on service definition"
enabled = true,
module = "./"
variable_files = []
providers = ["zia"]
condition "services" {
names = ["nginx", "web", "api"]
}
}