feat: add s3 storage provisioning for opencloud

Signed-off-by: Bert-Jan Fikse <bert-jan@whatwedo.ch>
This commit is contained in:
Bert-Jan Fikse 2026-03-05 16:24:12 +01:00
parent ad1f8a1999
commit 6e115c20c7
Signed by: bert-jan
GPG key ID: C1E0AB516AC16D1A
2 changed files with 13 additions and 1 deletions

View file

@ -17,4 +17,8 @@ garage_s3_keys:
- name: "nextcloud-backup" - name: "nextcloud-backup"
buckets: buckets:
- name: "nextcloud" - name: "nextcloud"
permissions: ["read"] permissions: ["read"]
- name: "opencloud"
buckets:
- name: "opencloud"
permissions: ["read", "write"]

View file

@ -3,6 +3,7 @@ opencloud_admin_password: "admin"
opencloud_extra_hosts: opencloud_extra_hosts:
- "opencloud.local.test:host-gateway" - "opencloud.local.test:host-gateway"
- "keycloak.local.test:host-gateway" - "keycloak.local.test:host-gateway"
- "storage.local.test:192.168.56.11"
# OIDC configuration (Keycloak) # OIDC configuration (Keycloak)
opencloud_oidc_issuer: "https://keycloak.local.test/realms/vagrant" opencloud_oidc_issuer: "https://keycloak.local.test/realms/vagrant"
@ -10,6 +11,13 @@ opencloud_oidc_client_id: "opencloud"
opencloud_oidc_client_secret: "opencloud-secret-change-in-production" opencloud_oidc_client_secret: "opencloud-secret-change-in-production"
opencloud_oidc_account_edit_url: "https://keycloak.local.test/realms/vagrant/account" opencloud_oidc_account_edit_url: "https://keycloak.local.test/realms/vagrant/account"
# S3 storage configuration using Garage
opencloud_use_s3_storage: true
opencloud_s3_endpoint: "http://{{ hostvars['backend']['garage_s3_domain'] }}"
opencloud_s3_access_key: "{{ lookup('digitalboard.core.garage_credentials', 'opencloud', host='backend')['key_id'] }}"
opencloud_s3_secret_key: "{{ lookup('digitalboard.core.garage_credentials', 'opencloud', host='backend')['secret_key'] }}"
opencloud_s3_bucket: "opencloud"
# Allow OpenCloud to connect to Keycloak for OIDC discovery # Allow OpenCloud to connect to Keycloak for OIDC discovery
opencloud_csp_extra_connect_src: opencloud_csp_extra_connect_src:
- "https://keycloak.local.test/" - "https://keycloak.local.test/"