-
Notifications
You must be signed in to change notification settings - Fork 0
/
vthunder.tf
67 lines (61 loc) · 1.3 KB
/
vthunder.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
#
# vThunder configs for TKC demo of SSL Passthrough
#
# John D. Allen
# Global Solutions Architect - Cloud, IOT, & Automation
# A10 Networks, Inc.
# Apache v2.0 License applies.
# November, 2021
#
terraform {
required_providers {
thunder = {
source = "a10networks/thunder"
version = "0.5.18-beta"
}
linux = {
source = "mavidser/linux"
version = ">=1.0.2"
}
}
}
provider "thunder" {
address = var.thunder_ip_address
username = var.thunder_username
password = var.thunder_password
# partition = "shared"
}
resource "thunder_slb_template_virtual_server" "bw-control" {
name = "bw-control"
conn_limit = 20
conn_rate_limit = 20
}
resource "thunder_virtual_server" "ws-vip" {
depends_on = [
thunder_slb_template_virtual_server.bw-control
]
name = "ws-vip"
ip_address = var.thunder_vip
template_virtual_server = "bw-control"
port_list {
port_number = 443
protocol = "tcp"
}
}
resource "thunder_glm" "license-glm" {
depends_on = [
thunder_virtual_server.ws-vip
]
appliance_name = "Demo.Test521"
token = var.thunder_glm_token
use_mgmt_port = 0
enable_requests = 1
allocate_bandwidth = 1000
interval = 1
}
resource "thunder_glm_send" "get-license" {
depends_on = [
thunder_glm.license-glm
]
license_request = 1
}