Skip to content

Commit

Permalink
Adding Back up creation for Azure to Velero role
Browse files Browse the repository at this point in the history
Adding Configs to playboox default/test vars
  • Loading branch information
rmccright-ms3 committed Dec 13, 2021
1 parent 5b07362 commit f35f9ff
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions playbooks/provision_playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
- name: Velero
include_role:
name: ms3_inc.tavros.velero
when: velero.enabled
tags: [ velero ]

- name: PostgreSQL
Expand Down
2 changes: 2 additions & 0 deletions playbooks/provision_playbook/default_vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ all:
keycloak:
realm: 'prod'
flux: {}
velero:
enabled: false
9 changes: 9 additions & 0 deletions roles/velero/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
- name: ns.yaml
- name: kustomization.yaml

- name: Create Backup Blob Container
when: ('dry-run' not in ansible_run_tags) and kubernetes_cluster.cloud_provider == 'aks'
collections:
- azure.azcollection
azure_rm_storageblob:
resource_group: "{{ aks.resource_group }}"
storage_account_name: "{{ aks.storage_account_name }}"
container: "backups"

- name: Apply Resources
tags: [ requires_cluster ]
when: ('dry-run' not in ansible_run_tags)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ all:
flux:
gitea:
password: placeholder18
velero:
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,5 @@ all:
keycloak:
realm: 'prod'
flux: {}
velero:
enabled: false

0 comments on commit f35f9ff

Please sign in to comment.