home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7c183873ae1b64baea3c3112b137110e0038a106
parent dc09196888b8fbad69f32d611cd59a69b57b7654
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 22 Oct 2021 11:56:06 +0200

ops: start a "hosts" file for networks and hosts

One of the goal here is to generate wireguard, bind, ssh
configurations (and more) from it, and remove the need for the
`machines.nix` and secret sync hack.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Aops/hosts.toml | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/ops/hosts.toml b/ops/hosts.toml @@ -0,0 +1,27 @@ +[networks.vpn] +v4 = "10.100.0.0" #/24 + +[hosts.naruhodo] +network = "vpn" +ssh = { pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7zGAceSiqFtWHwt7HVjN24SCyWCC26l6YrgUP/qtPc vincent@naruhodo" } + +[hosts.naruhodo.wireguard] +pubkey = "XXyyJ9GlIiZnUm+Bkpz+NSrFiosjfY4FB2PgLXVPLkI=" +addrs = { v4 = "10.100.0.15" } + +[hosts.aomi] +network = "vpn" +ssh = { pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHJ3QqVCUiE4BIFKTJLN6mSnp9bLSnJ3gE8ScbAajGsH vincent@aomi" } +addrs = { v4 = "192.168.1.23" } + +[hosts.aomi.wireguard] +pubkey = "XT4D9YLeVHwMb9R4mhBLSWHYF8iBO" +addrs = { v4 = "10.100.0.17" } + +[hosts.kerkouane] +network = "vpn" +addrs = { v4 = "167.99.17.238" } # FIXME probably not right + +[hosts.kerkounae.wireguard] +addrs = { v4 = "10.100.0.1" } +port = 51820+ \ No newline at end of file