|
|
@ -9,7 +9,8 @@
|
|
|
|
[dda.c4k-common.base64 :as b64]
|
|
|
|
[dda.c4k-common.base64 :as b64]
|
|
|
|
[dda.c4k-common.predicate :as cp]
|
|
|
|
[dda.c4k-common.predicate :as cp]
|
|
|
|
[dda.c4k-common.postgres :as postgres]
|
|
|
|
[dda.c4k-common.postgres :as postgres]
|
|
|
|
[dda.c4k-common.common :as cm]))
|
|
|
|
[dda.c4k-common.common :as cm]
|
|
|
|
|
|
|
|
[dda.c4k-common.monitoring :as mon]))
|
|
|
|
|
|
|
|
|
|
|
|
(s/def ::fqdn cp/fqdn-string?)
|
|
|
|
(s/def ::fqdn cp/fqdn-string?)
|
|
|
|
(s/def ::issuer cp/letsencrypt-issuer?)
|
|
|
|
(s/def ::issuer cp/letsencrypt-issuer?)
|
|
|
@ -27,12 +28,14 @@
|
|
|
|
:opt-un [::issuer
|
|
|
|
:opt-un [::issuer
|
|
|
|
::restic-repository
|
|
|
|
::restic-repository
|
|
|
|
::pv-storage-size-gb
|
|
|
|
::pv-storage-size-gb
|
|
|
|
::pvc-storage-class-name]))
|
|
|
|
::pvc-storage-class-name
|
|
|
|
|
|
|
|
::mon/mon-cfg]))
|
|
|
|
|
|
|
|
|
|
|
|
(def auth? (s/keys :req-un [::postgres/postgres-db-user ::postgres/postgres-db-password
|
|
|
|
(def auth? (s/keys :req-un [::postgres/postgres-db-user ::postgres/postgres-db-password
|
|
|
|
::nextcloud-admin-user ::nextcloud-admin-password
|
|
|
|
::nextcloud-admin-user ::nextcloud-admin-password
|
|
|
|
::aws-access-key-id ::aws-secret-access-key
|
|
|
|
::aws-access-key-id ::aws-secret-access-key
|
|
|
|
::restic-password]))
|
|
|
|
::restic-password]
|
|
|
|
|
|
|
|
:opt-un [::mon/mon-auth]))
|
|
|
|
|
|
|
|
|
|
|
|
#?(:cljs
|
|
|
|
#?(:cljs
|
|
|
|
(defmethod yaml/load-resource :nextcloud [resource-name]
|
|
|
|
(defmethod yaml/load-resource :nextcloud [resource-name]
|
|
|
|