teaching-webterm/terraform/provider.tf

38 lines
819 B
Terraform
Raw Normal View History

2022-05-26 15:31:39 +00:00
terraform {
required_version = ">= 0.14.0" # Prend en compte les versions de terraform à partir de la 0.14.0
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
version = "~> 1.42.0"
}
ovh = {
source = "ovh/ovh"
version = ">= 0.13.0"
}
gandi = {
2022-06-16 15:53:38 +00:00
source = "go-gandi/gandi"
2022-05-26 15:31:39 +00:00
version = "~> 2.0.1"
}
}
}
provider "gandi" {
2022-06-16 15:53:38 +00:00
key = var.gandi_key
2022-05-26 15:31:39 +00:00
}
provider "openstack" {
auth_url = "https://auth.cloud.ovh.net/v3/" # URL d'authentification
domain_name = "default" # Toujours à "default" pour OVHcloud
alias = "ovh" # Un alias
region = "GRA5"
}
provider "ovh" {
endpoint = "ovh-eu" # Provider entry point
alias = "ovh" # Provider alias
}