add fb page token vars [CI SKIP]

This commit is contained in:
viktorbarzin 2021-02-27 20:56:14 +00:00
parent a1c2618187
commit d7c5eb6bc5
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 11 additions and 1 deletions

View file

@ -33,6 +33,7 @@ variable "drone_rpc_secret" {}
variable "oauth_client_id" {}
variable "oauth_client_secret" {}
variable "webhook_handler_fb_verify_token" {}
variable "webhook_handler_fb_page_token" {}
variable "ansible_prefix" {
default = "ANSIBLE_VAULT_PASSWORD_FILE=~/.ansible/vault_pass.txt ansible-playbook -i playbook/hosts.yaml playbook/linux.yml -t linux/initial_setup"
@ -180,8 +181,10 @@ module "kubernetes_cluster" {
mailserver_opendkim_key = var.mailserver_opendkim_key
pihole_web_password = var.pihole_web_password
# Webhook tokens
webhook_handler_secret = var.webhook_handler_secret
webhook_handler_fb_verify_token = var.webhook_handler_fb_verify_token
webhook_handler_fb_page_token = var.webhook_handler_fb_page_token
wireguard_wg_0_conf = var.wireguard_wg_0_conf
wireguard_wg_0_key = var.wireguard_wg_0_key

View file

@ -20,6 +20,7 @@ variable "drone_rpc_secret" {}
variable "oauth_client_id" {}
variable "oauth_client_secret" {}
variable "webhook_handler_fb_verify_token" {}
variable "webhook_handler_fb_page_token" {}
resource "null_resource" "core_services" {
# List all the core modules that must be provisioned first
@ -158,6 +159,7 @@ module "webhook_handler" {
tls_secret_name = var.tls_secret_name
webhook_secret = var.webhook_handler_secret
fb_verify_token = var.webhook_handler_fb_verify_token
fb_page_token = var.webhook_handler_fb_page_token
depends_on = [null_resource.core_services]
}

View file

@ -2,6 +2,7 @@
variable "tls_secret_name" {}
variable "webhook_secret" {}
variable "fb_verify_token" {}
variable "fb_page_token" {}
resource "kubernetes_namespace" "webhook-handler" {
metadata {
@ -88,9 +89,13 @@ resource "kubernetes_deployment" "webhook_handler" {
value = var.webhook_secret
}
env {
name = "FBVerifyToken"
name = "FB_VERIFY_TOKEN"
value = var.fb_verify_token
}
env {
name = "FB_PAGE_TOKEN"
value = var.fb_page_token
}
}
}
}

Binary file not shown.

Binary file not shown.