2025-03-25 20:51:32 +01:00
2025-03-25 20:51:32 +01:00
2024-12-06 22:39:45 +01:00
2024-12-02 21:58:12 -05:00
2024-12-06 22:39:45 +01:00
2024-12-03 20:05:31 +01:00
2023-11-28 19:48:39 +01:00
2025-03-25 22:44:58 +01:00
2025-03-25 22:44:58 +01:00

These setup files provide the text-only configurations for DMZ.

It should not contain private data.

Aspirations

  • Each service should reside in its own directory.
  • Everything should be automated, including:
    • backups,
    • turning the backup back into a service,
    • configuring the service to run,
    • Makefile (or similar) wherever practical,
    • Idempotency.
  • All secrets stored elsewhere (probably in the dmzadmin repo)
  • Any maintenance scripts.
  • Configurations should reside in shadow-directories, e.g. a backup soft-serve's config.yaml should reside in this repo under splint.rs/soft-serve/etc/soft/config.yaml.

Network Database

I have a half-baked plan to finally make use of plain-text databases, and it's already half-working. Try these commands:

Ask what types of _rec_ords it contains:

recinf network.rec
recsel network.rec --type router
recsel network.rec --include-descriptors --type lxc
recsel network.rec -d -t lxc
recsel network.rec -d -t lxc --expression
recsel network.rec -t lxc --expression "name ~ 'nginx'"
recsel network.rec -t lxc --expression "name = 'nginx12'"

If you can select something, you can also set its fields with recset.

Use -f to set the field, and -a to add, or -s to set.

recset network.rec -t lxc --expression "name = 'nginx12'" -f proxies --add soft-serve
recsel network.rec -t lxc --expression "name = 'nginx11'" -p proxies[0]
recset network.rec -t lxc --expression "name = 'nginx11'" -f proxies[0] -s wiki9

Insert a new record with recins.

recins network.rec -t lxc -r "name: bob" -r "service: bob" -r "host: moxx"
Description
No description provided
Readme 214 KiB
Languages
Shell 60.2%
Python 23.3%
Makefile 16.5%