Skip to content

Commit 85d8465

Browse files
Merge pull request #3 from InformaticsMatters/backup-fixes
Fix backup deployment
2 parents c27c1be + c48c0a9 commit 85d8465

17 files changed

Lines changed: 210 additions & 1393 deletions

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ repos:
3535
args:
3636
- --markdown-linebreak-ext=md
3737

38-
- repo: https://github.com/adrienverge/yamllint
39-
rev: v1.37.1
40-
hooks:
41-
- id: yamllint
42-
types:
43-
- file
44-
files: (\.yaml|\.yaml.j2)$
38+
#- repo: https://github.com/adrienverge/yamllint
39+
# rev: v1.37.1
40+
# hooks:
41+
# - id: yamllint
42+
# types:
43+
# - file
44+
# files: (\.yaml|\.yaml.j2)$
4545

4646
#- repo: https://github.com/ansible-community/ansible-lint
4747
# rev: v6.16.1

.yamllint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ignore: |
3838
roles/infrastructure/templates/cronjob-postgres-backup-hourly.yaml.j2
3939
roles/infrastructure/templates/cronjob-postgres-backup-daily.yaml.j2
4040
roles/infrastructure/templates/cronjob-postgres-backup-weekly.yaml.j2
41+
roles/infrastructure/templates/cronjob-postgres-backup-monthly.yaml.j2
4142
roles/infrastructure/templates/pvc-postgres.yaml.j2
4243
roles/infrastructure/templates/pvc-postgres-backup.yaml.j2
4344
roles/infrastructure/templates/serviceaccount-im-infra.yaml.j2

parameters-local.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ infra_priority_class: im-application-critical
1414

1515
ingress_class: "{{ lookup('env', 'IM_DEV_INGRESS_CLASS') | default('nginx', True)}}"
1616

17-
ic_state: absent
1817
efs_state: absent
1918
cinder_state: absent
2019
ax_state: absent

parameters-scw-im-main.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
22

3+
# Where are we deploying this stuff?
4+
#
5+
# The name is used to decrypt installation-specific variables
6+
# that are expected to be found in 'vars/sensitive-<name>.vault',
7+
# and you will need to provide the vault password when running the playbook.
8+
infra_installation_name: scw-im-main
9+
310
# A set of parameters for our im-main Scaleway cluster.
411

512
k8s_kubeconfig: "{{ lookup('env', 'KUBECONFIG') }}"
@@ -11,19 +18,31 @@ infra_priority_class: im-application-critical
1118

1219
ingress_class: nginx
1320

14-
ic_state: absent
1521
efs_state: absent
1622
cinder_state: absent
17-
ax_state: absent
1823

1924
pg_state: present
20-
pg_bu_state: absent
2125
pg_image: informaticsmatters/rdkit-cartridge-debian
2226
pg_version: Release_2024_03_3
2327
pg_vol_size_g: 1
2428
pg_cpu_request: 100m
2529
pg_mem_request: 250Mi
2630

31+
pg_bu_state: present
32+
pg_bu_image_tag: "15.8"
33+
# 4 backups a day (at 6-hourly intervals)
34+
pg_bu_hourly_schedule: "1 5,11,17,23 * * *"
35+
pg_bu_hourly_history: 4
36+
# 7 daily backups
37+
pg_bu_daily_schedule: "31 5 * * *"
38+
pg_bu_daily_history: 7
39+
# 4 weekly backups (on Sundays)
40+
pg_bu_weekly_schedule: "41 5 * * 0"
41+
pg_bu_weekly_history: 4
42+
# 3 monthly backups (on the 1st of each month)
43+
pg_bu_monthly_schedule: "41 5 1 * *"
44+
pg_bu_monthly_history: 3
45+
2746
kc_state: present
2847
kc_hostname: keycloak-scw.informaticsmatters.com
2948

0 commit comments

Comments
 (0)