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 61c41f7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
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 61c41f7

Please sign in to comment.