Auto Merge of PR 20 - mgob-config_2025-09-17T06-52-53
Merged by Trez.One
This commit was merged in pull request #20.
This commit is contained in:
@@ -130,7 +130,7 @@ jobs:
|
||||
uses: dawidd6/action-ansible-playbook@v3
|
||||
with:
|
||||
directory: .
|
||||
playbook: playbooks/tar-valon_config_deploy.yml
|
||||
playbook: tar-valon_config_deploy.yml
|
||||
vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
|
||||
key: ${{ secrets.ANSIBLE_PRIVATE_KEY }}
|
||||
requirements: collections/requirements.yml
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
{% set vault_addr = 'https://vault.trez.wtf' %}
|
||||
{% set secrets_path = 'rinoa-docker/env' %}
|
||||
scheduler:
|
||||
cron: "45 23 * * *" # run every day at 6:00 and 18:00 UTC
|
||||
retention: 14 # Retains 14 local backups
|
||||
timeout: 60 # Operation timeout: 60 minutes
|
||||
target:
|
||||
uri: mongodb://root:{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token)['secret']['MONGO_INITDB_ROOT_PASSWORD'] }}@mongodb:27017/admin?replicaSet=rinoa
|
||||
noGzip: false # Disable gzip compression (false means compression is enabled)
|
||||
|
||||
retry:
|
||||
attempts: 3 # number of retries
|
||||
backoffFactor: 60 # backoff factor * (2 ^ attemptCount) seconds
|
||||
|
||||
validation:
|
||||
database:
|
||||
host: "mongodb"
|
||||
port: 27017
|
||||
noGzip: false
|
||||
database: rocketchat # Database name for restore operation
|
||||
|
||||
# Email notifications (optional)
|
||||
smtp:
|
||||
server: postal-stmp
|
||||
port: 25
|
||||
username: {{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token)['secret']['POSTAL_SMTP_AUTH_USER'] }}
|
||||
password: {{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token)['secret']['POSTAL_SMTP_AUTH_PASSWORD'] }}
|
||||
from: noreply@trez.wtf
|
||||
to:
|
||||
- charish.patel@trez.wtf
|
||||
# 'true' to notify only on failures
|
||||
warnOnly: false
|
||||
Reference in New Issue
Block a user