add fb page token vars [CI SKIP]
This commit is contained in:
parent
a1c2618187
commit
d7c5eb6bc5
5 changed files with 11 additions and 1 deletions
3
main.tf
3
main.tf
|
|
@ -33,6 +33,7 @@ variable "drone_rpc_secret" {}
|
||||||
variable "oauth_client_id" {}
|
variable "oauth_client_id" {}
|
||||||
variable "oauth_client_secret" {}
|
variable "oauth_client_secret" {}
|
||||||
variable "webhook_handler_fb_verify_token" {}
|
variable "webhook_handler_fb_verify_token" {}
|
||||||
|
variable "webhook_handler_fb_page_token" {}
|
||||||
|
|
||||||
variable "ansible_prefix" {
|
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"
|
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
|
mailserver_opendkim_key = var.mailserver_opendkim_key
|
||||||
pihole_web_password = var.pihole_web_password
|
pihole_web_password = var.pihole_web_password
|
||||||
|
|
||||||
|
# Webhook tokens
|
||||||
webhook_handler_secret = var.webhook_handler_secret
|
webhook_handler_secret = var.webhook_handler_secret
|
||||||
webhook_handler_fb_verify_token = var.webhook_handler_fb_verify_token
|
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_conf = var.wireguard_wg_0_conf
|
||||||
wireguard_wg_0_key = var.wireguard_wg_0_key
|
wireguard_wg_0_key = var.wireguard_wg_0_key
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ variable "drone_rpc_secret" {}
|
||||||
variable "oauth_client_id" {}
|
variable "oauth_client_id" {}
|
||||||
variable "oauth_client_secret" {}
|
variable "oauth_client_secret" {}
|
||||||
variable "webhook_handler_fb_verify_token" {}
|
variable "webhook_handler_fb_verify_token" {}
|
||||||
|
variable "webhook_handler_fb_page_token" {}
|
||||||
|
|
||||||
resource "null_resource" "core_services" {
|
resource "null_resource" "core_services" {
|
||||||
# List all the core modules that must be provisioned first
|
# List all the core modules that must be provisioned first
|
||||||
|
|
@ -158,6 +159,7 @@ module "webhook_handler" {
|
||||||
tls_secret_name = var.tls_secret_name
|
tls_secret_name = var.tls_secret_name
|
||||||
webhook_secret = var.webhook_handler_secret
|
webhook_secret = var.webhook_handler_secret
|
||||||
fb_verify_token = var.webhook_handler_fb_verify_token
|
fb_verify_token = var.webhook_handler_fb_verify_token
|
||||||
|
fb_page_token = var.webhook_handler_fb_page_token
|
||||||
|
|
||||||
depends_on = [null_resource.core_services]
|
depends_on = [null_resource.core_services]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
variable "tls_secret_name" {}
|
variable "tls_secret_name" {}
|
||||||
variable "webhook_secret" {}
|
variable "webhook_secret" {}
|
||||||
variable "fb_verify_token" {}
|
variable "fb_verify_token" {}
|
||||||
|
variable "fb_page_token" {}
|
||||||
|
|
||||||
resource "kubernetes_namespace" "webhook-handler" {
|
resource "kubernetes_namespace" "webhook-handler" {
|
||||||
metadata {
|
metadata {
|
||||||
|
|
@ -88,9 +89,13 @@ resource "kubernetes_deployment" "webhook_handler" {
|
||||||
value = var.webhook_secret
|
value = var.webhook_secret
|
||||||
}
|
}
|
||||||
env {
|
env {
|
||||||
name = "FBVerifyToken"
|
name = "FB_VERIFY_TOKEN"
|
||||||
value = var.fb_verify_token
|
value = var.fb_verify_token
|
||||||
}
|
}
|
||||||
|
env {
|
||||||
|
name = "FB_PAGE_TOKEN"
|
||||||
|
value = var.fb_page_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