add shlink and parts of dbaas [ci skip]
This commit is contained in:
parent
b94768f00b
commit
6d5556ca75
5 changed files with 37 additions and 0 deletions
9
main.tf
9
main.tf
|
|
@ -32,6 +32,7 @@ variable "drone_rpc_secret" {}
|
||||||
# variable "dockerhub_password" {}
|
# variable "dockerhub_password" {}
|
||||||
variable "oauth_client_id" {}
|
variable "oauth_client_id" {}
|
||||||
variable "oauth_client_secret" {}
|
variable "oauth_client_secret" {}
|
||||||
|
variable "url_shortener_geolite_license_key" {}
|
||||||
variable "webhook_handler_fb_verify_token" {}
|
variable "webhook_handler_fb_verify_token" {}
|
||||||
variable "webhook_handler_fb_page_token" {}
|
variable "webhook_handler_fb_page_token" {}
|
||||||
variable "webhook_handler_fb_app_secret" {}
|
variable "webhook_handler_fb_app_secret" {}
|
||||||
|
|
@ -67,6 +68,12 @@ provider "helm" {
|
||||||
config_path = var.prod ? "" : "~/.kube/config"
|
config_path = var.prod ? "" : "~/.kube/config"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# provider "kubectl" {
|
||||||
|
# host = "kubernetes.viktorbarzin.lan"
|
||||||
|
# cluster_ca_certificate = base64decode(var.eks_cluster_ca)
|
||||||
|
# token = data.aws_eks_cluster_auth.main.token
|
||||||
|
# load_config_file = true
|
||||||
|
# }
|
||||||
|
|
||||||
# Main module to init infra from
|
# Main module to init infra from
|
||||||
module "pxe_server" {
|
module "pxe_server" {
|
||||||
|
|
@ -219,4 +226,6 @@ module "kubernetes_cluster" {
|
||||||
|
|
||||||
idrac_username = var.monitoring_idrac_username
|
idrac_username = var.monitoring_idrac_username
|
||||||
idrac_password = var.monitoring_idrac_password
|
idrac_password = var.monitoring_idrac_password
|
||||||
|
|
||||||
|
url_shortener_geolite_license_key = var.url_shortener_geolite_license_key
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
modules/kubernetes/dbaas/mysql_chart_values.yaml
Normal file
10
modules/kubernetes/dbaas/mysql_chart_values.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
orchestrator:
|
||||||
|
persistence:
|
||||||
|
enabled: false
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
tls:
|
||||||
|
- secretName: ${secretName}
|
||||||
|
hosts:
|
||||||
|
- db.viktorbarzin.me
|
||||||
|
|
@ -19,6 +19,7 @@ variable "drone_rpc_secret" {}
|
||||||
# variable "dockerhub_password" {}
|
# variable "dockerhub_password" {}
|
||||||
variable "oauth_client_id" {}
|
variable "oauth_client_id" {}
|
||||||
variable "oauth_client_secret" {}
|
variable "oauth_client_secret" {}
|
||||||
|
variable "url_shortener_geolite_license_key" {}
|
||||||
variable "webhook_handler_fb_verify_token" {}
|
variable "webhook_handler_fb_verify_token" {}
|
||||||
variable "webhook_handler_fb_page_token" {}
|
variable "webhook_handler_fb_page_token" {}
|
||||||
variable "webhook_handler_fb_app_secret" {}
|
variable "webhook_handler_fb_app_secret" {}
|
||||||
|
|
@ -48,6 +49,11 @@ module "bind" {
|
||||||
named_conf_options = var.bind_named_conf_options
|
named_conf_options = var.bind_named_conf_options
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module "dbaas" {
|
||||||
|
source = "./dbaas"
|
||||||
|
tls_secret_name = var.tls_secret_name
|
||||||
|
}
|
||||||
|
|
||||||
module "dnscrypt" {
|
module "dnscrypt" {
|
||||||
source = "./dnscrypt"
|
source = "./dnscrypt"
|
||||||
}
|
}
|
||||||
|
|
@ -172,6 +178,12 @@ module "reloader" {
|
||||||
source = "./reloader"
|
source = "./reloader"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module "url" {
|
||||||
|
source = "./url-shortener"
|
||||||
|
tls_secret_name = var.tls_secret_name
|
||||||
|
geolite_license_key = var.url_shortener_geolite_license_key
|
||||||
|
}
|
||||||
|
|
||||||
module "webhook_handler" {
|
module "webhook_handler" {
|
||||||
source = "./webhook_handler"
|
source = "./webhook_handler"
|
||||||
tls_secret_name = var.tls_secret_name
|
tls_secret_name = var.tls_secret_name
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ grafana.ini:
|
||||||
auth.anonymous:
|
auth.anonymous:
|
||||||
enabled: true
|
enabled: true
|
||||||
org_role: Viewer
|
org_role: Viewer
|
||||||
|
# auth.google:
|
||||||
|
# enabled: true
|
||||||
analytics:
|
analytics:
|
||||||
check_for_updates: "true"
|
check_for_updates: "true"
|
||||||
grafana_net:
|
grafana_net:
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@ terraform {
|
||||||
kubernetes = {
|
kubernetes = {
|
||||||
source = "hashicorp/kubernetes"
|
source = "hashicorp/kubernetes"
|
||||||
}
|
}
|
||||||
|
# kubectl = {
|
||||||
|
# source = "gavinbunney/kubectl"
|
||||||
|
# version = ">= 1.7.0"
|
||||||
|
# }
|
||||||
}
|
}
|
||||||
required_version = ">= 0.13"
|
required_version = ">= 0.13"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue