add fb app token var to webhook_handler [CI SKIP]
This commit is contained in:
parent
81e3f47f18
commit
c1e76449a4
5 changed files with 9 additions and 0 deletions
2
main.tf
2
main.tf
|
|
@ -34,6 +34,7 @@ variable "oauth_client_id" {}
|
|||
variable "oauth_client_secret" {}
|
||||
variable "webhook_handler_fb_verify_token" {}
|
||||
variable "webhook_handler_fb_page_token" {}
|
||||
variable "webhook_handler_fb_app_secret" {}
|
||||
|
||||
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"
|
||||
|
|
@ -185,6 +186,7 @@ module "kubernetes_cluster" {
|
|||
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
|
||||
webhook_handler_fb_app_secret = var.webhook_handler_fb_app_secret
|
||||
|
||||
wireguard_wg_0_conf = var.wireguard_wg_0_conf
|
||||
wireguard_wg_0_key = var.wireguard_wg_0_key
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ variable "oauth_client_id" {}
|
|||
variable "oauth_client_secret" {}
|
||||
variable "webhook_handler_fb_verify_token" {}
|
||||
variable "webhook_handler_fb_page_token" {}
|
||||
variable "webhook_handler_fb_app_secret" {}
|
||||
|
||||
resource "null_resource" "core_services" {
|
||||
# List all the core modules that must be provisioned first
|
||||
|
|
@ -160,6 +161,7 @@ module "webhook_handler" {
|
|||
webhook_secret = var.webhook_handler_secret
|
||||
fb_verify_token = var.webhook_handler_fb_verify_token
|
||||
fb_page_token = var.webhook_handler_fb_page_token
|
||||
fb_app_secret = var.webhook_handler_fb_app_secret
|
||||
|
||||
depends_on = [null_resource.core_services]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ variable "tls_secret_name" {}
|
|||
variable "webhook_secret" {}
|
||||
variable "fb_verify_token" {}
|
||||
variable "fb_page_token" {}
|
||||
variable "fb_app_secret" {}
|
||||
|
||||
resource "kubernetes_namespace" "webhook-handler" {
|
||||
metadata {
|
||||
|
|
@ -88,6 +89,10 @@ resource "kubernetes_deployment" "webhook_handler" {
|
|||
name = "WEBHOOKSECRET"
|
||||
value = var.webhook_secret
|
||||
}
|
||||
env {
|
||||
name = "FB_APP_SECRET"
|
||||
value = var.fb_app_secret
|
||||
}
|
||||
env {
|
||||
name = "FB_VERIFY_TOKEN"
|
||||
value = var.fb_verify_token
|
||||
|
|
|
|||
Binary file not shown.
BIN
terraform.tfvars
BIN
terraform.tfvars
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue