You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

135 lines
2.8 KiB

variable "do_token" {}
variable "cf_token_custom" {}
variable "cf_token_general" {}
variable "cf_email" {}
variable "h_token" {}
variable "hdns_token" {}
variable wasabi_main_region {}
variable wasabi_secret_key {}
variable wasabi_access_key {}
variable wasabi_account {}
terraform {
required_version = ">= 0.13"
backend "s3" {
# actually wasabi, and needs -backend-config to be passed to terraform
endpoint = "https://s3.eu-central-2.wasabisys.com"
skip_requesting_account_id = true
skip_credentials_validation = true
skip_get_ec2_platforms = true
skip_metadata_api_check = true
skip_region_validation = true
}
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
}
digitalocean = {
source = "digitalocean/digitalocean"
}
hcloud = {
source = "hetznercloud/hcloud"
}
hetznerdns = {
source = "timohirt/hetznerdns"
}
oci = {
source = "oracle/oci"
}
wasabi = {
source = "terrabitz/wasabi"
}
libvirt = {
source = "dmacvicar/libvirt"
}
}
}
provider "wasabi" {
region = "us-east-1"
access_key = var.wasabi_access_key
secret_key = var.wasabi_secret_key
}
provider "wasabi" {
# frankfurt
alias = "eu-central-2"
region = "eu-central-2"
access_key = var.wasabi_access_key
secret_key = var.wasabi_secret_key
endpoints {
#sts = "https://sts.wasabisys.com"
#iam = "https://iam.wasabisys.com"
s3 = "https://s3.eu-central-2.wasabisys.com"
}
}
provider "wasabi" {
# london
alias = "eu-west-1"
region = "eu-west-1"
access_key = var.wasabi_access_key
secret_key = var.wasabi_secret_key
endpoints {
s3 = "https://s3.eu-west-1.wasabisys.com"
}
}
provider "wasabi" {
# amsterdam
alias = "eu-central-1"
region = "eu-central-1"
access_key = var.wasabi_access_key
secret_key = var.wasabi_secret_key
endpoints {
s3 = "https://s3.eu-central-1.wasabisys.com"
}
}
provider "digitalocean" {
token = var.do_token
}
provider "cloudflare" {
email = var.cf_email
api_token = var.cf_token_custom
#api_key = var.cf_token_general
}
provider "hcloud" {
token = var.h_token
}
provider "hetznerdns" {
apitoken = var.hdns_token
}
provider "oci" {
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.oracle_api_key_fingerprint
private_key_path = var.oracle_api_private_key_path
region = var.region
}
provider "libvirt" {
uri = "qemu+ssh://bear.s21.sudo.is/system"
}
provider "libvirt" {
alias = "fsn_g0"
uri = "qemu+ssh://fsn-g0.vpn.sudo.is/system?known_hosts_verify=ignore"
}
provider "libvirt" {
alias = "fra2"
uri = "qemu+ssh://fra2.vpn.sudo.is/system?known_hosts_verify=ignore"
}
# module "kvm_fsn" {
# source = "./kvm_fsn"
# # providers = {
# # libvirt = libvirt.fsn_g0
# # }
# }