Commit graph

1255 commits

Author SHA1 Message Date
8fcffb2fa2 hswaw/laserproxy: improve username suggestions
Change-Id: I64a683d83ec383fa1cf289c1795cc9ed61144239
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1454
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-01-29 16:21:36 +00:00
9851b38608 WORKSPACE,third_party/py: bump rules_{python,docker} and some py packages
Those are far from the latest versions still, but this change should be
non-breaking.

Change-Id: Ieeb9d6b301184f46677d821fe8276391346d6285
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1459
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-01-29 01:40:25 +00:00
3b2a2a2ce1 cluster/k0: add paperless to admitomatic config
Change-Id: I54df444cddca8a05febfb96af07b9e2f614639fc
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1453
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-01-05 09:12:18 +00:00
142c8e6504 hswaw/sound: add password file to mosquitto
Change-Id: Ifda90bb0fb6be681a04381335d18d19ffab81298
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1448
Reviewed-by: vuko <vuko@hackerspace.pl>
2022-12-27 21:04:12 +00:00
6204ccdf92 hswaw/sound: open mosquitto firewall port
Change-Id: Ie46cbe27b1d47bc0ad90bde193283f134ba767be
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1447
Reviewed-by: vuko <vuko@hackerspace.pl>
2022-12-27 21:04:00 +00:00
f0ab6c498a hswaw/sound: add spejsiot-api
Change-Id: If40cdbeadb570d8c33b4c950482c01f4b2bbd1c4
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1446
Reviewed-by: vuko <vuko@hackerspace.pl>
2022-12-27 21:03:49 +00:00
aa7303ec45 hswaw/sound: use officiall ip address
Change-Id: I7b99762e280884eb83f69a6803eddbb86fedc3b3
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1445
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-12-27 21:03:34 +00:00
4fe6e02942 hswaw/sound: refactor home-assistant
Change-Id: I80442defc97fc7aaf4422f8e2fe6b956b1e130cf
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1444
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-12-27 21:03:26 +00:00
a2bcfeaf0b cluster: bump vm.max_map_count sysctl tunable to a higher value
This is needed for running some memory-intensive workloads, like
ElasticSearch/OpenSearch.

Change-Id: I7b00ec5faca73ec69bdbf1ca41c025d7efeae55c
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1443
Reviewed-by: implr <implr@hackerspace.pl>
2022-12-11 20:28:51 +00:00
3c9b825ec7 games/valheim: create serviceaccount for external users/systems
q3k uses this to give access to someone who plays on the valheim server
so that they can get logs / restart things / etc.

Change-Id: If205709142d386c460eeb835829888957d28a654
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1442
Reviewed-by: patryk <patryk@hackerspace.pl>
2022-11-27 16:35:56 +00:00
28742b8106 Make golang deps fetching go faster
This commit aims to increase the speed of hscloud rebuild process
by optimizing the behavior of Go dependency fetching routines.

Gazelle v0.25.0 introduced a new dependency resolution mode
where it does not reach out for external dependencies; instead,
it operates solely on what is contained inside the workspace.

Because static dependency resolution mode is now the default
behavior in go_repository() rules, we are also updating the
contents of //third_party/go/repositories.bzl.

Also, I changed some of the bigger Go dependencies to be downloaded
by a tarball fetch in order to speed up the rebuild process.

Other changes:
  * Bump nixpkgs to a fresh snapshot
  * Upgrade to Bazel v5

Change-Id: Icfe752411b3128bcd5b25fa28bb76bec45ae2f71
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1441
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-11-27 16:27:53 +00:00
d171263d6e k0: remove waw-hdd-yolo-3
This was never used and only caused scary warnings during OSDs reboots
due to lack of availability.

Change-Id: I14eacd88855bc56e06f2a61cc2d914d985330852
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1423
Reviewed-by: implr <implr@hackerspace.pl>
2022-11-20 12:28:20 +00:00
4d98cf5ca8 calico: move from etcd to crd
Leaving the CRD definitions as YAML, extracted without modifications
from the original install file - this should make upgrades simpler.

Change-Id: I7211d2711e2af014b36dd887a951abb9e1032eb9
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1179
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-11-19 21:40:34 +00:00
e3dd96adb0 app/mastodon: complete migration to versioned postgres
Change-Id: Ib09a42e60cc3bf7a0388b5199a22df6a1271b5a3
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1424
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-11-19 12:38:55 +00:00
65b30af78e kube/postgres: add versioned library
also use in mastodon-qa

Change-Id: I628293fcfe9081c350087572ecda9e51ee18238f
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1422
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-11-18 14:52:05 +00:00
16842119d1 app/mastodon: deploy
Change-Id: I88c104d1a8d5627355b01a8c48dc235635fca5ed
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1421
Reviewed-by: implr <implr@hackerspace.pl>
2022-11-18 12:15:22 +00:00
08c32996e5 hswaw: deploy 1405
Change-Id: If765bdc35d662d644701d2b81a3817ac56ccecb9
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1406
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-11-07 00:24:09 +00:00
15b5bc1783 hswaw/site: fix catch-all, add robots.txt
Change-Id: I23db4e18185f029a094ea4f69ac0f469d3dd8a8e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1405
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-11-07 00:24:09 +00:00
9171451c53 bgpwtf: delegate /29 to customer
Change-Id: I3607580126477560f642ec5d9c4ccba7022de559
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1404
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-11-06 17:05:02 +00:00
ee41e94e0a k0: bump certs
Change-Id: I9d7a48d64de5d1aa82a134a8c22bfc50ba8ad270
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1402
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-10-09 20:22:43 +00:00
deeeff861e hswaw/machines: add sound.waw.hackerspace.pl
Change-Id: Id0e6a02d9ae4cf61d758713a99d21c6da0c72b66
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1401
Reviewed-by: vuko <vuko@hackerspace.pl>
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-10-09 19:35:18 +00:00
0d22d0bcb6 bgpwtf/m/edge01: allow 10.10.32.0/24 (dcr03 mgmt)
Change-Id: Ide36e7fbcb39c178b0d51dd0da8534c6bf60954b
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1403
Reviewed-by: patryk <patryk@hackerspace.pl>
2022-10-08 18:12:21 +00:00
aa67387717 hswaw/machines/tv: enable avahi
This fixes webrtc mdns discovery. (to be used sometime later for desktop
casting in a separate tool)

Change-Id: Ic3d454c67ff930d13990481b7ed33f9bf1f5c5e0
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1341
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-09-28 23:01:55 +00:00
dc1878c3cc app/matrix: bump element-web to v1.11.8
Change-Id: I667d694f39ff75ec98fb68620037c06b1475ae9e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1392
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
d3c14e5cbc app/matrix: bump appservice-irc to v0.35.1
Change-Id: Ie884f75dd9c068363f160598d23e21de49f8a95d
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1393
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
654dd80e03 app/matrix: bump matrix-media-repo to v1.2.12
Change-Id: I4192c6a54537c10724c63c373083eca5bd0c298e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1391
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
a8bb615464 app/matrix: adjust resources configuration for prod changes
Change-Id: Ib81847bd65e254cbd650d60456185e681e2b1e88
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1390
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
3f0bc2083b app/matrix: bump appservice-irc to v0.35.0
Change-Id: Ie1b7c014e46fc1e06e434ad9394cf591248c92cb
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1389
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
690ed45f66 app/matrix: add coturn deployment
TURN server is required for proper cross-NAT voice/video calls via
Matrix.

Change-Id: I8182292dd8ef30690ae4b9487c22aedcff098710
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1387
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
b39edc3256 shell.nix: pin bazel version
Change-Id: I34e665bf19069162a5ee671147eaf057a26e6381
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1388
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-09-28 23:01:35 +00:00
3c31f32307 cluster: bump prodvider certs
Change-Id: Ieefe3c733dd40a94c13a5e1c1648dd43d27c180a
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1386
Reviewed-by: implr <implr@hackerspace.pl>
2022-09-10 15:46:39 +00:00
467ff086f1 hswaw/site: deploy
Change-Id: If2589a5fdf0e7fdedbce0cfac7c73e36ef96341b
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1383
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-08-30 17:30:50 +00:00
a63c315f7d prodimage: bump to focal
Change-Id: I502ef4bbc593dae4db900eb10dc4ad93daad3985
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1382
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-08-30 17:30:50 +00:00
a8f3efc410 hswaw/site: update visiting info
Change-Id: I1f2ca212224343db76064963cf447937aa128ce5
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1361
Reviewed-by: woju <woju@hackerspace.pl>
2022-08-26 11:24:28 +00:00
b56b8fca92 hswaw/checkinator: add notice about random MACs
Nowadays both smartphones and iphones have MAC address randomisation
turned on by default. This breaks checkinator because, while the claim
works as intended, the address added to the database is the random one
and on the next visit the address is different, so the device is
categorised as unknown.

The simplest way to fix this is by the user to ensure that MAC address
is randomised per network, not per-connection (which at least on Android
is itself a per-network knob). This change adds a notice to remind the
user about this.

Signed-off-by: Wojtek Porczyk <woju@hackerspace.pl>
Change-Id: Ieee74d09114e6f0479f44429d9828e47c95eb6bd
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1362
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-08-26 10:30:10 +00:00
211d88a34f dc/hbj11: add hardware info
Change-Id: I34c3906e241117fe56ed903e7cd11f8b804d9e30
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1381
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-08-25 23:50:05 +00:00
a7dbf25588 hswaw/signage: reuse compiled shader, better error handling
Shader will now only be recompiled whenever its code changes. This helps
with hangs on node transitions on underpowered devices.

If shader reload failed an error message will now be rendered over an
existing shader.

File load errors are properly handled.

Change-Id: I97a75b85620614252040b76e4f3aaa0ea1f0a7e3
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1337
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-07-11 08:35:12 +00:00
8f986c181b hswaw/signage: add development tip
Change-Id: I6dff93498ba2de959f1c7760a21c0972c2277037
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1336
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-07-11 08:35:12 +00:00
e1aa63c7dd bgpwtf: add rsh tests, fix startup sequencing
Change-Id: Idba53905d3965db6f805221da3e48548d7a01811
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1340
Reviewed-by: implr <implr@hackerspace.pl>
2022-07-07 23:51:57 +00:00
957d91180a bgpwtf: edge01: bump nixpkgs, use networkd
Change-Id: I038f9518e090aecc90f464475f29c5b3c1570eff
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1339
Reviewed-by: implr <implr@hackerspace.pl>
2022-07-07 23:51:57 +00:00
d635dc85ce bgpwtf: edge01: fix tests
Change-Id: I66852cc75f3d5a6ce3cc67790c09e248874b0a9b
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1338
Reviewed-by: implr <implr@hackerspace.pl>
2022-07-07 23:51:57 +00:00
18c1a263cf signage: bring in from external repo
This is b28e6f07aa48f1e2f01eb37bffa180f97a7b03bd from
https://code.hackerspace.pl/q3k/love2d-signage/. We only keep code
commited by inf and q3k, and we're both now licensing this code under
the ISC license, as per COPYING in the root of hscloud.

Change-Id: Ibeee2e6923605e4b1a17a1d295867c056863ef59
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1335
Reviewed-by: informatic <informatic@hackerspace.pl>
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-07-07 23:09:07 +00:00
9c5d866105 h/m/customs/beyondspace: oauth2-based members-only proxy
Change-Id: I4f7102b4c4ddd9d0f085653ad08e071f172f289d
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1307
Reviewed-by: vuko <vuko@hackerspace.pl>
2022-07-07 20:24:01 +00:00
c35ea6a220 ops: inject the machine's pkgs into the machine's hscloud tree
This ensures, for example, that the packets are for the correct
architecture.

Change-Id: If17c307fbad02ee72c6dd21a874c59514415ab2e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1334
Reviewed-by: implr <implr@hackerspace.pl>
2022-07-07 18:10:40 +00:00
dcdbd8425c hswaw/machines: add tv2
Change-Id: I657c316bcc663c79b6886d5843b9de5cbf17f1c3
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1333
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-07-07 18:07:18 +00:00
36ce764818 hswaw/machines: add informatic to larrythebuilder
Change-Id: I756218c857ecbeb9ea398fb259bdc66d72b51194
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1331
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-07-07 00:35:59 +00:00
5ac5e4bec3 hswaw/machines: add tv1, larrythebuilder
This adds two brand new AArch64 machines: a generic builder (and
instructions on how to use it) and tv1.waw, an RPi4 acting as digital
signage in the space.

Change-Id: I8d38344ec35f99f4b872cf9526f6e6771fbffc43
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1330
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-07-06 19:49:37 +00:00
2f6c92c998 customs: add tv1.waw to dns/dhcp
Also drive-by fix build for laserproxy.

Change-Id: I37a5a5fc947e77a4507f5b6a660499ab93c3505d
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1329
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-07-06 19:48:57 +00:00
4ea5cdb0eb WORKSPACE: bump protobuf
Change-Id: I7dcf4abc0a4717fd9d6d4ea43cdcfac11fdff359
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1325
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-07-05 22:51:04 +00:00
e69e98da47 third_party/py: update rules_python, use pip-compile for requirements
Change-Id: If8309e8e3a4b58142f7479005a9eb4cbb1043cdb
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1324
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-07-05 21:27:31 +00:00