-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrke2.tfvars.example
95 lines (79 loc) · 3.14 KB
/
rke2.tfvars.example
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
## RKE2 variables -- Fill these in with your desired values.
rke2_version="v1.27.4+rke2r1"
rke2_channel="testing"
server_flags = "profile: cis\n"
worker_flags = "profile: cis\n"
# For hardened on v1.23 or v1.24, set the server and worker flags to be: "selinux: true\nprofile: cis-1.6".
# For v1.25+: "selinux: true\nprofile: cis" Note: "profile: cis-1.23" is getting deprecated.
# If using optional PSA, make sure to include that in the server_flags to: pod-security-admission-config-file: /etc/rancher/rke2/custom-psa.yaml
resource_name = "<prefix_name_for_your_resources>"
key_name = "jenkins-rke-validation"
access_key = "/go/src/github.com/rancher/distros-test-framework/config/.ssh/aws_key.pem"
create_lb = false
# Used to set Elastic ip to the instances
create_eip = false
arch = "amd64"
# "/etc/rancher/rke2/custom-psa.yaml,https://gist.githubusercontent.com/rancher-max/e1c728805b1e5aae8b547b075261bb56/raw/99feb324959d7de9f640d934f098319813202d4a/pod_security_config.yaml"
optional_files = ""
# INSTALL_RKE2_VERSION or INSTALL_RKE2_COMMIT
install_mode = "INSTALL_RKE2_VERSION"
# leave blank or choose 'tar' or 'rpm'; For selinux testing, set to 'rpm' mode of install
install_method = ""
## Windows agent variables
#server_flags = "cni: calico\n"
windows_ec2_instance_class = "t3.xlarge"
windows_aws_ami = "<ami-id>"
no_of_windows_worker_nodes = 0
## Custom Vars
node_os = "sles15"
aws_ami = "<ami-id>"
aws_user = "ec2-user"
# This is also known as an "all-roles" node
no_of_server_nodes = 3
no_of_worker_nodes = 1
split_roles = false
etcd_only_nodes = 0
etcd_cp_nodes = 0
etcd_worker_nodes = 0
cp_only_nodes = 0
cp_worker_nodes = 0
# Numbers 1-6 correspond to: all-roles (1), etcd-only (2), etcd-cp (3), etcd-worker (4), cp-only (5), cp-worker (6).
role_order = "1,2,3,4,5,6"
## Rhel7 variables
username = "ShylajaD"
## AWS variables
region = "us-east-2"
hosted_zone = "qa.rancher.space"
ec2_instance_class = "t3a.medium"
vpc_id = "<vpc-id>"
subnets = "<subnet-id>"
availability_zone = "us-east-2a"
sg_id = "<sg-id>"
iam_role = "<iam_role>"
volume_size = "20"
datastore_type = "etcd"
############## external db variables #################
# to use external db set datastore_type to ""
db_username = "<db_user>"
db_password = "<db_password>"
# mysql
external_db = "mysql"
external_db_version = "8.0.32"
instance_class = "db.t3.micro"
db_group_name = "default.mysql8.0"
#external_db = "postgres"
#external_db_version = "14.6"
#db_group_name = "default.postgres14"
#instance_class = "db.t3.micro"
#aurora-mysql
#external_db = "aurora-mysql"
#external_db_version = "5.7.mysql_aurora.2.11.2"
#instance_class = "db.t3.medium"
#db_group_name = "default.aurora-mysql5.7"
environment = "dev"
engine_mode = "provisioned"
## mariadb
#external_db = "mariadb"
#external_db_version = "10.6.11"
#instance_class = "db.t3.medium"
#db_group_name = "default.mariadb10.6"