Setup Nextcloud again

This commit is contained in:
2023-03-24 20:07:52 -04:00
parent 2d770a9fcd
commit f7ee670da6
7 changed files with 27 additions and 24 deletions

View File

@@ -81,22 +81,20 @@ apps:
state: present
nextcloud:
enabled: false
enabled: true
namespace: nextcloud
state: present
hello_world:
enabled: true
enabled: false
namespace: default
state: present
funkwhale:
enabled: true
enabled: false
namespace: funkwhale
state: present
redis:
enabled: true
enabled: false
namespace: redis
state: present

View File

@@ -152,17 +152,17 @@ nextcloud:
persistence:
enabled: true
# existingClaim: nextcloud-main-0
nextcloudData:
enabled: true
existingClaim: nextcloud-data-0
existingClaim: nextcloud-main-0
# nextcloudData:
# enabled: true
# existingClaim: nextcloud-data-0
readinessProbe:
initialDelaySeconds: 30
startupProbe:
enabled: true
initialDelaySeconds: 60
initialDelaySeconds: 90
internalDatabase:
enabled: false
@@ -176,6 +176,7 @@ externalDatabase:
redis:
enabled: true
architecture: standalone
cronjob:
enabled: true

View File

@@ -8,23 +8,23 @@
name: "{{apps.nextcloud.namespace}}"
api_version: v1
kind: Namespace
state: "{{apps.nextcloud.state}}"
state: "{{present}}"
become: true
- name: create persistent volume resources
kubernetes.core.k8s:
kubeconfig: "/etc/rancher/k3s/k3s.yaml"
state: "{{apps.nextcloud.state}}"
state: "present"
definition: "{{ lookup('template', item) | from_yaml }}"
loop:
- nextcloud/pv-apps.yaml
- nextcloud/pv-data.yaml
- nextcloud/pv-configs.yaml
# - nextcloud/pv-apps.yaml
# - nextcloud/pv-data.yaml
# - nextcloud/pv-configs.yaml
- nextcloud/pv-main.yaml
- nextcloud/pv-apps-claim.yaml
- nextcloud/pv-data-claim.yaml
- nextcloud/pv-configs-claim.yaml
# - nextcloud/pv-apps-claim.yaml
# - nextcloud/pv-data-claim.yaml
# - nextcloud/pv-configs-claim.yaml
- nextcloud/pv-main-claim.yaml
become: true
@@ -44,7 +44,7 @@
- name: Install Nextcloud Release
local_action:
module: kubernetes.core.helm
release_state: "{{apps.nextcloud.state}}"
release_state: "present"
name: nextcloud
namespace: "{{apps.nextcloud.namespace}}"
create_namespace: yes

View File

@@ -13,5 +13,6 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
path: "/opt/data/nextcloud2/apps"
path: "/opt/data/T2/nextcloud/apps"
# path: "/opt/data/nextcloud2/apps"

View File

@@ -13,5 +13,6 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
path: "/opt/data/nextcloud2/config"
path: "/opt/data/T2/nextcloud/config"
# path: "/opt/data/nextcloud2/config"

View File

@@ -13,5 +13,6 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
path: "/opt/data/nextcloud/2022/data"
path: "/opt/data/T2/nextcloud/data"
# path: "/opt/data/nextcloud/2022/data"

View File

@@ -13,5 +13,6 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
path: "/opt/data/nextcloud2/main"
path: "/opt/data/T2/nextcloud/main"
# path: "/opt/data/nextcloud2/main"