-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.tf
86 lines (82 loc) · 2.61 KB
/
main.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
module "sonar_upgrader" {
source = "imperva/dsf-sonar-upgrader/aws"
version = "1.7.22" # latest release tag
# Fill the details of the Agentless Gateways and DSF Hubs that you want to upgrade
agentless_gws = [
{
"main" = {
"host" = "10.0.1.1"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
},
"dr" = {
"host" = "10.2.1.1"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
}
},
{
"main" = {
"host" = "10.0.1.2"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
"proxy" = {
"host" = "52.8.8.8"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
}
},
"dr" = {
"host" = "10.2.1.2"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
"proxy" = {
"host" = "52.8.8.8"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
}
}
},
{
"main" = {
"host" = "10.0.1.3"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
}
},
{
"dr" = {
"host" = "10.0.1.4"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
}
}
]
dsf_hubs = [
{
"main" = {
"host" = "52.8.8.8"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
},
"dr" = {
"host" = "52.8.8.9"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
},
"minor" = {
"host" = "52.8.8.10"
"ssh_user" = "ec2-user"
"ssh_private_key_file_path" = "/home/ssh_key2.pem"
}
}
]
# Fill full Sonar version (short format, e.g., 4.12, is not supported)
target_version = "4.12.0.10.0"
# Configuration options for controlling the upgrade flow
test_connection = true
run_preflight_validations = true
run_upgrade = true
run_postflight_validations = true
stop_on_failure = true
}