-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
35 lines (35 loc) · 850 Bytes
/
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
module "instance1" {
source = "./huaweiyun"
hostname = "node1"
admin_pass = "123456"
os = "CentOS 7.6 64bit"
flavor = "t6.large.2"
region = "cn-north-1"
availability_zone = "cn-north-1a"
tenant_name = "cn-north-1_lab"
network = {
vpc = "vpc-omd"
subnet = "vpc-omd-bak"
}
security_groups = ["Sys-default", "nomad-cluster"]
root_volume = {
type = "SAS"
size = 100
}
data_volume = {
enable = false
type = "SAS"
size = 100
}
metadata = {
ansible_group = "kubernetes consul registry"
docker_registry = "true"
consul_node_name = "node1"
consul_node_role = "server"
consul_bootstrap_expect = "true"
}
commands = [
"systemctl status sshd",
"hostname"
]
}