forked from kkramineni/microcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
35 lines (30 loc) · 842 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
// VMware provider details
provider "vsphere" {
vsphere_server = "vcsa.cloudbricks.local"
allow_unverified_ssl = true
user = "Administrator@vsphere.local"
password = "VMware1!"
}
// Module wise
// this module will provision 3 VMs with required configuration
module "provision" {
source = "./modules/provision"
}
// this module configures the provisioned VMs (snap refresh, install lxd, microcloud, microceph, microovn)
module "node1" {
source = "./modules/node1"
depends_on = [ module.provision ]
}
module "node2" {
source = "./modules/node2"
depends_on = [ module.node1 ]
}
module "node3" {
source = "./modules/node3"
depends_on = [ module.node2 ]
}
// this module automates the "Microcloud" initialisation and configuration
module "micro_init" {
source = "./modules/micro_init"
depends_on = [ module.node3 ]
}