t
This commit is contained in:
parent
0f57df0692
commit
a039557abb
@ -39,8 +39,12 @@ module "compute" {
|
||||
source = "../../modules/compute"
|
||||
|
||||
# Variables d'entrée
|
||||
instance-type = "e2-micro"
|
||||
zone = "europe-west4-a"
|
||||
|
||||
# Autres variables spécifiques au module
|
||||
zone = var.zone
|
||||
instance_type = var.instance_type
|
||||
frontend_subnet_id = module.network.id_subnetwork["frontend"]
|
||||
backend_subnet_id = module.network.id_subnetwork["backend"]
|
||||
database_subnet_id = module.network.id_subnetwork["databse"]
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
# Output d'un module
|
||||
output "vpc_id" {
|
||||
value = google_compute_network.vpc.id
|
||||
}
|
||||
|
||||
output "subnet_ids" {
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.subnet_front.id,
|
||||
backend = google_compute_subnetwork.subnet_back.id,
|
||||
database = google_compute_subnetwork.subnet_db.id
|
||||
}
|
||||
}
|
0
templates/ansible.cfg.tpl
Normal file
0
templates/ansible.cfg.tpl
Normal file
Loading…
Reference in New Issue
Block a user