Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions argocd-applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ applications:
# info:
# - name: url
# value: https://argoproj.github.io/
bot-prod:
name: bot-prod
namespace: argocd
project: default
source:
repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
targetRevision: HEAD
path: bot-prod
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: bot-prod
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=false
info:
- name: url
value: https://argoproj.github.io/
# bot-prod:
# name: bot-prod
# namespace: argocd
# project: default
# source:
# repoURL: https://github.com/poliNetworkOrg/polinetwork-cd
# targetRevision: HEAD
# path: bot-prod
# directory:
# recurse: true
# destination:
# server: https://kubernetes.default.svc
# namespace: bot-prod
# syncPolicy:
# automated:
# prune: true
# selfHeal: true
# syncOptions:
# - CreateNamespace=false
# info:
# - name: url
# value: https://argoproj.github.io/
# bot-mat:
# name: bot-mat
# namespace: argocd
Expand Down
17 changes: 1 addition & 16 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,8 @@ module "bot_mod_prod" {
module.mariadb
]

source = "./modules/bots/"

source = "./modules/bots-migration/"
bot_namespace = "bot-prod"
bot_token = data.azurerm_key_vault_secret.prod_mod_bot_token.value
bot_onMessage = "m"
db_database = "polinetwork"
db_host = local.mariadb_internal_ip
db_password = data.azurerm_key_vault_secret.prod_db_password.value
db_user = data.azurerm_key_vault_secret.prod_mod_db_user.value

git_config = true
git_user = "PoliNetworkDev"
git_email = data.azurerm_key_vault_secret.prod_mod_git_email.value
git_password = data.azurerm_key_vault_secret.prod_mod_git_password.value
git_data_repo = "git@github.com:PoliNetworkDev/polinetworkWebsiteData.git"
git_remote_repo = "https://github.com/PoliNetworkOrg/polinetworkWebsiteData.git"
git_path = "./data/polinetworkWebsiteData/"
}

module "bot_mat_migration" {
Expand Down
Loading