forked from deploymenttheory/terraform-demo-jamfpro-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackend.tf
99 lines (84 loc) · 2.93 KB
/
backend.tf
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
terraform {
required_providers {
jamfpro = {
source = "deploymenttheory/jamfpro"
version = "~> 0.4.0"
}
}
cloud {
organization = "jl-test-org"
workspaces {
# This is only relevant for CLI calls and is ignored by API calls via pipelines, therefore it can be safely left here.
name = "terraform-demo-jamfpro-v2-sandbox"
}
}
}
provider "jamfpro" {
jamfpro_instance_fqdn = var.jamfpro_instance_fqdn
auth_method = var.jamfpro_auth_method
client_id = var.jamfpro_client_id
client_secret = var.jamfpro_client_secret
enable_client_sdk_logs = var.enable_client_sdk_logs
client_sdk_log_export_path = var.client_sdk_log_export_path
hide_sensitive_data = var.jamfpro_hide_sensitive_data
jamfpro_load_balancer_lock = var.jamfpro_load_balancer_lock
token_refresh_buffer_period_seconds = var.jamfpro_token_refresh_buffer_period_seconds
mandatory_request_delay_milliseconds = var.jamfpro_mandatory_request_delay_milliseconds
}
variable "jamfpro_instance_fqdn" {
description = "The Jamf Pro FQDN (fully qualified domain name). Example: https://mycompany.jamfcloud.com"
sensitive = true
}
variable "jamfpro_auth_method" {
description = "Auth method chosen for Jamf. Options are 'basic' or 'oauth2'."
sensitive = true
type = string
}
variable "jamfpro_client_id" {
description = "The Jamf Pro Client ID for authentication."
sensitive = true
type = string
}
variable "jamfpro_client_secret" {
description = "The Jamf Pro Client Secret for authentication."
sensitive = true
type = string
}
variable "enable_client_sdk_logs" {
description = "Enable client SDK logs."
type = bool
default = false
}
variable "client_sdk_log_export_path" {
description = "Specify the path to export http client logs to."
type = string
default = ""
}
variable "jamfpro_hide_sensitive_data" {
description = "Define whether sensitive fields should be hidden in logs."
type = bool
default = true
}
variable "jamfpro_custom_cookies" {
description = "Custom cookies for the HTTP client."
type = list(object({
name = string
value = string
}))
default = []
}
variable "jamfpro_load_balancer_lock" {
description = "Programmatically determines all available web app members in the load balancer and locks all instances of httpclient to the app for faster executions."
type = bool
default = true
}
variable "jamfpro_token_refresh_buffer_period_seconds" {
description = "The buffer period in seconds for token refresh."
type = number
default = 300
}
variable "jamfpro_mandatory_request_delay_milliseconds" {
description = "A mandatory delay after each request before returning to reduce high volume of requests in a short time."
type = number
default = 100
}