1
0
Fork 0

cluster: add nextcloud user for object store

Change-Id: Ib08be16f71ff5e1b72ca6ad436de4b12427dd407
master
q3k 2019-09-02 16:32:40 +02:00
parent 42553cd044
commit 9496d9910a
2 changed files with 13 additions and 2 deletions

View File

@ -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",
},
},
},
}

View File

@ -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)"