fix finaux

This commit is contained in:
Lucas BERGER 2024-12-06 15:39:48 +00:00
parent 7b1ff431c0
commit f811f22f90
7 changed files with 632 additions and 1166 deletions

View File

@ -1,8 +0,0 @@
[defaults]
host_key_checking = False
inventory = gcp_compute.yml
interpreter_python = auto_silent
remote_user = berger_lu2004_gmail_com
[inventory]
enable_plugins = gcp_compute, auto, host_list, yaml, ini, toml, script

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,40 +1,40 @@
#- project_name (string) #nom de projet
variable "project_name" { variable "project_name" {
description = "Nom du projet" description = "Nom du projet"
type = string type = string
default = "automatisation-tp" default = "automatisation-tp"
} }
#- project_id (string) # id de projet
variable "project_id" { variable "project_id" {
description = "ID du projet" description = "ID du projet"
type = string type = string
default = "automatisation-tp" default = "automatisation-tp"
} }
# - region (string) # la region
variable "region" { variable "region" {
description = "Région du projet" description = "Région du projet"
type = string type = string
default = "us-central1" default = "us-central1"
} }
# - frontend_cidr (string) # frontend
variable "frontend_cidr" { variable "frontend_cidr" {
description = "cidr du frontend" description = "cidr du frontend"
type = string type = string
default = "10.0.1.0/24" default = "10.0.1.0/24"
} }
# - backend_cidr (string) # backend
variable "backend_cidr" { variable "backend_cidr" {
description = "cidr du backend" description = "cidr du backend"
type = string type = string
default = "10.0.2.0/24" default = "10.0.2.0/24"
} }
# - database_cidr (string) # database
variable "database_cidr" { variable "database_cidr" {
description = "cidr du database" description = "cidr du database"
type = string type = string
default = "10.0.3.0/24" default = "10.0.3.0/24"
} }
# - ssh_source_ranges (string) # source ssh
variable "ssh_source_ranges" { variable "ssh_source_ranges" {
description = "Accès à internet" description = "Accès à internet"
type = string type = string

View File

@ -27,7 +27,7 @@ variable "database_cidr" {
type = string type = string
default = "10.0.3.0/24" default = "10.0.3.0/24"
} }
# variables (network)
variable "ssh_source_ranges" { variable "ssh_source_ranges" {
description = "ssh access" description = "ssh access"
type = string type = string

View File

@ -0,0 +1,9 @@
{
"version": 4,
"terraform_version": "1.10.1",
"serial": 1,
"lineage": "64e94aea-a8be-47e6-ac8d-a55010e54ac4",
"outputs": {},
"resources": [],
"check_results": null
}