blob: 21e283312ff3e93550f56dc109dc3b523b4b1178 [file] [log] [blame]
Piotr Dobrowolski0572fff2021-02-06 22:23:53 +01001#
2# issues.hackerspace.pl redmine deployment
3#
4# Bootstrap:
5#
6# ns=redmine
Piotr Dobrowolski054c5b42021-02-09 10:05:59 +01007# kubectl -n $ns create secret generic redmine --from-literal=secret_key=$(pwgen 24 1) --from-literal=postgres_password=$(pwgen 32 1) --from-literal=mailing_password=... --from-literal=oidc_secret=...
Piotr Dobrowolski0572fff2021-02-06 22:23:53 +01008#
9# ceph_ns=ceph-waw3; ceph_pool=waw-hdd-redundant-3
10# kubectl -n $ceph_ns get secrets rook-ceph-object-user-${ceph_pool}-object-issues -o json | jq 'del(.metadata.namespace,.metadata.resourceVersion,.metadata.uid) | .metadata.creationTimestamp=null' | kubectl replace -f - -n $ns
11#
12
13local redmine = import "./redmine.libsonnet";
14
15{
16 issues: redmine {
17 cfg+: {
18 namespace: "redmine",
19 domain: "issues.hackerspace.pl",
20
Serge Bazanski877cf0a2021-02-08 00:34:34 +010021 b: {
22 domains: [
23 "b.hackerspace.pl",
24 "b.hswaw.net",
25 "xn--137h.hswaw.net",
26 "xn--137h.hackerspace.pl",
27 ],
28 },
29
Piotr Dobrowolski0572fff2021-02-06 22:23:53 +010030 storage+: {
31 endpoint: "https://object.ceph-waw3.hswaw.net",
32 bucket: "issues",
33
34 # This is required for redmine_s3 to properly create a bucket
35 region: "us-east-1",
36
37 local rookSecret = "rook-ceph-object-user-waw-hdd-redundant-3-object-issues",
38 accessKey: { secretKeyRef: { name: rookSecret, key: "AccessKey" } },
39 secretKey: { secretKeyRef: { name: rookSecret, key: "SecretKey" } },
40 },
41
42 oidc+: {
43 server: "https://sso.hackerspace.pl",
44 clientID: "70ee2821-2657-4409-a298-98649d1f689f",
45 clientSecret: { secretKeyRef: { name: "redmine", key: "oidc_secret" } },
46 },
Piotr Dobrowolski054c5b42021-02-09 10:05:59 +010047
48 mailing+: {
49 address: "mail.hackerspace.pl",
50 user_name: "issues",
51 domain: "hackerspace.pl",
52 password: { secretKeyRef: { name: "redmine", key: "mailing_password" } },
53 },
Piotr Dobrowolski0572fff2021-02-06 22:23:53 +010054 },
55 },
56}