Sergiusz Bazanski | 6f773e0 | 2019-10-02 20:46:48 +0200 | [diff] [blame] | 1 | local mirko = import "../../kube/mirko.libsonnet"; |
| 2 | local kube = import "../../kube/kube.libsonnet"; |
| 3 | |
Sergiusz Bazanski | d0ec2c6 | 2019-11-21 00:08:52 +0100 | [diff] [blame] | 4 | local smsgw = import "smsgw.libsonnet"; |
| 5 | local ldapweb = import "ldapweb.libsonnet"; |
Sergiusz Bazanski | c315aac | 2020-01-02 16:43:39 +0100 | [diff] [blame] | 6 | local teleimg = import "teleimg.libsonnet"; |
Sergiusz Bazanski | 6494696 | 2020-02-02 17:15:55 +0100 | [diff] [blame] | 7 | local frab = import "frab.libsonnet"; |
Sergiusz Bazanski | 74818e1 | 2020-02-18 22:56:21 +0100 | [diff] [blame] | 8 | local pretalx = import "pretalx.libsonnet"; |
Serge Bazanski | 95ba05d | 2021-05-12 21:28:10 +0000 | [diff] [blame] | 9 | local cebulacamp = import "cebulacamp.libsonnet"; |
Serge Bazanski | d0c9c41 | 2021-08-30 20:14:58 +0000 | [diff] [blame] | 10 | local site = import "site.libsonnet"; |
Sergiusz Bazanski | d0ec2c6 | 2019-11-21 00:08:52 +0100 | [diff] [blame] | 11 | |
Sergiusz Bazanski | 6f773e0 | 2019-10-02 20:46:48 +0200 | [diff] [blame] | 12 | { |
| 13 | hswaw(name):: mirko.Environment(name) { |
| 14 | local env = self, |
| 15 | local cfg = self.cfg, |
| 16 | |
| 17 | cfg+: { |
Sergiusz Bazanski | d0ec2c6 | 2019-11-21 00:08:52 +0100 | [diff] [blame] | 18 | smsgw: smsgw.cfg, |
| 19 | ldapweb: ldapweb.cfg, |
Sergiusz Bazanski | c315aac | 2020-01-02 16:43:39 +0100 | [diff] [blame] | 20 | teleimg: teleimg.cfg, |
Sergiusz Bazanski | 6494696 | 2020-02-02 17:15:55 +0100 | [diff] [blame] | 21 | frab: frab.cfg, |
Sergiusz Bazanski | 74818e1 | 2020-02-18 22:56:21 +0100 | [diff] [blame] | 22 | pretalx: pretalx.cfg, |
Serge Bazanski | 95ba05d | 2021-05-12 21:28:10 +0000 | [diff] [blame] | 23 | cebulacamp: cebulacamp.cfg, |
Serge Bazanski | d0c9c41 | 2021-08-30 20:14:58 +0000 | [diff] [blame] | 24 | site: site.cfg, |
Sergiusz Bazanski | 6f773e0 | 2019-10-02 20:46:48 +0200 | [diff] [blame] | 25 | }, |
| 26 | |
| 27 | components: { |
Sergiusz Bazanski | d0ec2c6 | 2019-11-21 00:08:52 +0100 | [diff] [blame] | 28 | smsgw: smsgw.component(cfg.smsgw, env), |
| 29 | ldapweb: ldapweb.component(cfg.ldapweb, env), |
Sergiusz Bazanski | a885488 | 2020-01-05 00:34:38 +0100 | [diff] [blame] | 30 | teleimg: teleimg.teleimg(cfg.teleimg, env), |
| 31 | lelegram: teleimg.lelegram(cfg.teleimg, env), |
Sergiusz Bazanski | 6494696 | 2020-02-02 17:15:55 +0100 | [diff] [blame] | 32 | frab: frab.component(cfg.frab, env), |
Sergiusz Bazanski | 74818e1 | 2020-02-18 22:56:21 +0100 | [diff] [blame] | 33 | pretalx: pretalx.component(cfg.pretalx, env), |
Serge Bazanski | 95ba05d | 2021-05-12 21:28:10 +0000 | [diff] [blame] | 34 | cebulacamp: cebulacamp.component(cfg.cebulacamp, env), |
Serge Bazanski | d0c9c41 | 2021-08-30 20:14:58 +0000 | [diff] [blame] | 35 | site: site.component(cfg.site, env), |
Sergiusz Bazanski | 6f773e0 | 2019-10-02 20:46:48 +0200 | [diff] [blame] | 36 | }, |
| 37 | }, |
| 38 | |
| 39 | prod: self.hswaw("hswaw-prod") { |
| 40 | cfg+: { |
| 41 | smsgw+: { |
| 42 | secret+: { |
| 43 | twilio_token: std.base64(std.split(importstr "secrets/plain/prod-twilio-token", "\n")[0]), |
| 44 | }, |
| 45 | webhookFQDN: "smsgw-webhook-prod.hswaw.net", |
Sergiusz Bazanski | 5b86662 | 2019-10-18 14:54:36 +0200 | [diff] [blame] | 46 | }, |
| 47 | ldapweb+: { |
Sergiusz Bazanski | 831a54a | 2019-10-20 17:38:22 +0200 | [diff] [blame] | 48 | webFQDN: "profile.hackerspace.pl", |
Sergiusz Bazanski | 5b86662 | 2019-10-18 14:54:36 +0200 | [diff] [blame] | 49 | }, |
Sergiusz Bazanski | c315aac | 2020-01-02 16:43:39 +0100 | [diff] [blame] | 50 | teleimg+: { |
| 51 | webFQDN: "teleimg.hswaw.net", |
| 52 | secret+: { |
| 53 | telegram_token: std.base64(std.split(importstr "secrets/plain/prod-telegram-token", "\n")[0]), |
| 54 | }, |
| 55 | }, |
Sergiusz Bazanski | 6494696 | 2020-02-02 17:15:55 +0100 | [diff] [blame] | 56 | frab+: { |
| 57 | storageClassName: "waw-hdd-redundant-3", |
| 58 | webFQDN: "frab.hackerspace.pl", |
| 59 | secret+: { |
| 60 | secretKeyBase: std.base64(std.split(importstr "secrets/plain/prod-frab-smtp-password", "\n")[0]), |
| 61 | smtpPassword: std.base64(std.split(importstr "secrets/plain/prod-frab-secret-key-base", "\n")[0]), |
| 62 | }, |
| 63 | }, |
Sergiusz Bazanski | 74818e1 | 2020-02-18 22:56:21 +0100 | [diff] [blame] | 64 | pretalx+: { |
| 65 | storageClassName: "waw-hdd-redundant-3", |
| 66 | webFQDN: "cfp.cebula.camp", |
| 67 | smtpPassword: std.base64(std.split(importstr "secrets/plain/prod-pretalx-smtp-password", "\n")[0]), |
| 68 | s3+: { |
| 69 | credsSecret: import "secrets/plain/prod-pretalx-s3.json", |
| 70 | }, |
| 71 | }, |
Serge Bazanski | 95ba05d | 2021-05-12 21:28:10 +0000 | [diff] [blame] | 72 | cebulacamp+: { |
| 73 | webFQDN: "cebula.camp", |
| 74 | }, |
Serge Bazanski | d0c9c41 | 2021-08-30 20:14:58 +0000 | [diff] [blame] | 75 | site+: { |
| 76 | webFQDN: "new.hackerspace.pl", |
| 77 | }, |
Sergiusz Bazanski | 6f773e0 | 2019-10-02 20:46:48 +0200 | [diff] [blame] | 78 | }, |
| 79 | }, |
| 80 | } |