Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BC-8267 - aktivate for dev thr only the one mongo cluster for all mode #998

Merged
merged 2 commits into from
Oct 17, 2024
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
3 changes: 2 additions & 1 deletion ansible/group_vars/all/mongodb.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
MONGO_MANAGEMENT_PREFIX: ""
MONGO_MANAGEMENT_PREFIX: ""
MONGO_MANAGEMENT_POSTFIX: ""
2 changes: 1 addition & 1 deletion ansible/group_vars/develop/mongodb_query_exporter.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mongodb_query_exporter_mongodb_sc_db_name: "{{ MONGO_MANAGEMENT_PREFIX if WITH_BRANCH_MONGO_DB_MANAGEMENT else '' }}scapp"
mongodb_query_exporter_mongodb_sc_db_name: "{{ MONGO_MANAGEMENT_PREFIX if WITH_BRANCH_MONGO_DB_MANAGEMENT else '' }}scapp{{ MONGO_MANAGEMENT_POSTFIX if WITH_BRANCH_MONGO_DB_MANAGEMENT else '' }}"
5 changes: 5 additions & 0 deletions ansible/host_vars/thr_host/shared_mongodb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
EXTERNAL_SECRETS_OPERATOR: true
EXTERNAL_SECRETS_POSTFIX: "-source"
WITH_MONGO_DATABASES: false
WITH_BRANCH_MONGO_DB_MANAGEMENT: true
MONGO_MANAGEMENT_POSTFIX: "?replicaSet=scapp&authSource=admin"
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
engineVersion: v2
mergePolicy: Merge
data:
DB_URL: "{{ '{{ .MONGO_MANAGEMENT_TEMPLATE_URL }}/' ~ MONGO_MANAGEMENT_PREFIX ~ 'etherpad' }}"
DB_URL: "{{ '{{ .MONGO_MANAGEMENT_TEMPLATE_URL }}/' ~ MONGO_MANAGEMENT_PREFIX ~ 'etherpad' ~ MONGO_MANAGEMENT_POSTFIX }}"
dataFrom:
- extract:
key: etherpad-secret{{ EXTERNAL_SECRETS_POSTFIX }}
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/rocketchat/templates/external-secret.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
engineVersion: v2
mergePolicy: Merge
data:
MONGO_URL: "{{ '{{ .MONGO_MANAGEMENT_TEMPLATE_URL }}/' ~ MONGO_MANAGEMENT_PREFIX ~ 'rocketchat' }}"
MONGO_URL: "{{ '{{ .MONGO_MANAGEMENT_TEMPLATE_URL }}/' ~ MONGO_MANAGEMENT_PREFIX ~ 'rocketchat' ~ MONGO_MANAGEMENT_POSTFIX }}"
dataFrom:
- extract:
key: rocketchat-secret{{ EXTERNAL_SECRETS_POSTFIX }}
Expand Down