Skip to content

Instantly share code, notes, and snippets.

@apinter
Created March 21, 2024 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apinter/4783ef261e5bd078f509987c3c6044e8 to your computer and use it in GitHub Desktop.
Save apinter/4783ef261e5bd078f509987c3c6044e8 to your computer and use it in GitHub Desktop.
provider "ovh" {
  endpoint           = var.ovh_endpoint
  application_key    = var.ovh_application_key
  application_secret = var.ovh_application_secret
  consumer_key       = var.ovh_consumer_key
  alias              = "ovh"
}

provider "openstack" {
  user_name   = var.openstack_user
  password    = var.openstack_password
  auth_url    = "https://auth.cloud.ovh.net/v3/"
  domain_name = "default"
  alias       = "ovh"
  tenant_id   = var.ovh_service_name
}

terraform {
  required_providers {
    openstack = {
      source  = "terraform-provider-openstack/openstack"
      version = "1.54.1"
      configuration_aliases = [ openstack.ovh ]
    }
    ovh = {
      source  = "ovh/ovh"
      version = "0.40.0"
      configuration_aliases = [ ovh.ovh ]
    }
  }

backend "http" {
  address        = "[REDACTED]"
  lock_address   = "[REDACTED]"
  unlock_address = "[REDACTED]"
  lock_method    = "POST"
  unlock_method  = "DELETE"
  retry_wait_min = 5
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment