From 9496d9910a2459e4ba6991a74be50ab89d8d611c Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Mon, 2 Sep 2019 16:32:40 +0200 Subject: [PATCH] cluster: add nextcloud user for object store Change-Id: Ib08be16f71ff5e1b72ca6ad436de4b12427dd407 --- cluster/kube/cluster.jsonnet | 11 +++++++++++ cluster/tools/rook-s3cmd-config | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/cluster/kube/cluster.jsonnet b/cluster/kube/cluster.jsonnet index 1226354c..605b32d3 100644 --- a/cluster/kube/cluster.jsonnet +++ b/cluster/kube/cluster.jsonnet @@ -308,5 +308,16 @@ local Cluster(fqdn) = { }, }, }, + + # Used for owncloud.hackerspace.pl, which for now lices on boston-packets.hackerspace.pl. + nextcloud: kube._Object("ceph.rook.io/v1", "CephObjectStoreUser", "nextcloud") { + metadata+: { + namespace: "ceph-waw2", + }, + spec: { + store: "waw-hdd-redundant-2-object", + displayName: "nextcloud", + }, + }, }, } diff --git a/cluster/tools/rook-s3cmd-config b/cluster/tools/rook-s3cmd-config index 6ee5a085..3ec34e5c 100755 --- a/cluster/tools/rook-s3cmd-config +++ b/cluster/tools/rook-s3cmd-config @@ -11,8 +11,8 @@ set -e username="${1:-registry}" -storename="${2:-waw-hdd-redundant-1-object}" -clustername="${3:-ceph-waw1}" +storename="${2:-waw-hdd-redundant-2-object}" +clustername="${3:-ceph-waw2}" secret="$(kubectl get secrets rook-ceph-object-user-$storename-$username -n $clustername -o json)" accesskey="$(echo "$secret" | jq -r '.data.AccessKey' | base64 -d)"