mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
temp tf
This commit is contained in:
parent
a5e2fdc7a7
commit
ec505739c8
31 changed files with 1394 additions and 0 deletions
56
terraform/platform/services/provision.tf
Normal file
56
terraform/platform/services/provision.tf
Normal file
|
@ -0,0 +1,56 @@
|
|||
terraform {
|
||||
required_version = ">=0.12.6"
|
||||
|
||||
backend "remote" {
|
||||
organization = "Roleypoly"
|
||||
|
||||
workspaces {
|
||||
name = "roleypoly-platform-services"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
DigitalOcean
|
||||
*/
|
||||
variable "digitalocean_token" { type = string }
|
||||
provider "digitalocean" {
|
||||
version = ">=1.16.0"
|
||||
token = var.digitalocean_token
|
||||
}
|
||||
|
||||
/*
|
||||
Cloudflare
|
||||
*/
|
||||
variable "cloudflare_token" { type = string }
|
||||
variable "cloudflare_email" { type = string }
|
||||
variable "cloudflare_zone_id" { type = string }
|
||||
variable "cloudflare_origin_ca_token" { type = string }
|
||||
provider "cloudflare" {
|
||||
version = ">=2.0"
|
||||
email = var.cloudflare_email
|
||||
api_token = var.cloudflare_token
|
||||
api_user_service_key = var.cloudflare_origin_ca_token
|
||||
}
|
||||
|
||||
/*
|
||||
Kubernetes
|
||||
*/
|
||||
variable "k8s_endpoint" { type = string }
|
||||
variable "k8s_token" { type = string }
|
||||
variable "k8s_cert" { type = string }
|
||||
provider "kubernetes" {
|
||||
load_config_file = false
|
||||
token = var.k8s_token
|
||||
host = var.k8s_endpoint
|
||||
cluster_ca_certificate = var.k8s_cert
|
||||
}
|
||||
|
||||
/*
|
||||
Others
|
||||
*/
|
||||
variable "vault_gcs_token" { type = string }
|
||||
variable "vault_gcs_url" { type = string }
|
||||
variable "gcp_project" { type = string }
|
||||
variable "gcp_region" { type = string }
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue