Piotr Dobrowolski | 0572fff | 2021-02-06 22:23:53 +0100 | [diff] [blame] | 1 | # |
| 2 | # issues.hackerspace.pl redmine deployment |
| 3 | # |
| 4 | # Bootstrap: |
| 5 | # |
| 6 | # ns=redmine |
Piotr Dobrowolski | 054c5b4 | 2021-02-09 10:05:59 +0100 | [diff] [blame] | 7 | # 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 Dobrowolski | 0572fff | 2021-02-06 22:23:53 +0100 | [diff] [blame] | 8 | # |
| 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 | |
| 13 | local redmine = import "./redmine.libsonnet"; |
| 14 | |
| 15 | { |
| 16 | issues: redmine { |
| 17 | cfg+: { |
| 18 | namespace: "redmine", |
| 19 | domain: "issues.hackerspace.pl", |
| 20 | |
Serge Bazanski | 877cf0a | 2021-02-08 00:34:34 +0100 | [diff] [blame] | 21 | 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 Dobrowolski | 0572fff | 2021-02-06 22:23:53 +0100 | [diff] [blame] | 30 | 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 Dobrowolski | 054c5b4 | 2021-02-09 10:05:59 +0100 | [diff] [blame] | 47 | |
| 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 Dobrowolski | 0572fff | 2021-02-06 22:23:53 +0100 | [diff] [blame] | 54 | }, |
| 55 | }, |
| 56 | } |