From 59d7fcabbc6ed165961199e7e30f254217d9bad7 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Wed, 24 Jul 2024 17:13:59 +0200 Subject: [PATCH] Add intial configuration --- nspawn/archrepo-web.nspawn | 10 ++++++++++ nspawn/cloud.nspawn | 7 +++++++ nspawn/endlessh.nspawn | 7 +++++++ nspawn/fstab | 31 +++++++++++++++++++++++++++++++ nspawn/git.nspawn | 7 +++++++ nspawn/passbolt.nspawn | 7 +++++++ nspawn/pro.nspawn | 10 ++++++++++ nspawn/pyfrance.nspawn | 10 ++++++++++ nspawn/rss.nspawn | 7 +++++++ nspawn/tang.nspawn | 10 ++++++++++ nspawn/webssh.nspawn | 10 ++++++++++ nspawn/webstatic.nspawn | 10 ++++++++++ nspawn/wg-ext.nspawn | 10 ++++++++++ nspawn/wg-home.nspawn | 10 ++++++++++ nspawn/wg-jab.nspawn | 10 ++++++++++ nspawn/wg-tunnel.nspawn | 10 ++++++++++ 16 files changed, 166 insertions(+) create mode 100644 nspawn/archrepo-web.nspawn create mode 100644 nspawn/cloud.nspawn create mode 100644 nspawn/endlessh.nspawn create mode 100644 nspawn/fstab create mode 100644 nspawn/git.nspawn create mode 100644 nspawn/passbolt.nspawn create mode 100644 nspawn/pro.nspawn create mode 100644 nspawn/pyfrance.nspawn create mode 100644 nspawn/rss.nspawn create mode 100644 nspawn/tang.nspawn create mode 100644 nspawn/webssh.nspawn create mode 100644 nspawn/webstatic.nspawn create mode 100644 nspawn/wg-ext.nspawn create mode 100644 nspawn/wg-home.nspawn create mode 100644 nspawn/wg-jab.nspawn create mode 100644 nspawn/wg-tunnel.nspawn diff --git a/nspawn/archrepo-web.nspawn b/nspawn/archrepo-web.nspawn new file mode 100644 index 0000000..a91bab1 --- /dev/null +++ b/nspawn/archrepo-web.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=archrepo-web.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/cloud.nspawn b/nspawn/cloud.nspawn new file mode 100644 index 0000000..3fda9eb --- /dev/null +++ b/nspawn/cloud.nspawn @@ -0,0 +1,7 @@ +[Exec] +Boot=yes +Hostname=cloud.hp7.infra.kto.black + +[Network] +Bridge=br0 + diff --git a/nspawn/endlessh.nspawn b/nspawn/endlessh.nspawn new file mode 100644 index 0000000..c5c9fb9 --- /dev/null +++ b/nspawn/endlessh.nspawn @@ -0,0 +1,7 @@ +[Exec] +Boot=yes +Hostname=endlessh.hp7.infra.kto.black + +[Network] +Bridge=br0 + diff --git a/nspawn/fstab b/nspawn/fstab new file mode 100644 index 0000000..387ac41 --- /dev/null +++ b/nspawn/fstab @@ -0,0 +1,31 @@ +# Static information about the filesystems. +# See fstab(5) for details. + +# + +# System mounts +UUID=bab2220e-1af5-48da-8313-7d59b34b322d / ext4 rw,relatime 0 1 +#UUID=359fcbda-5c81-4be2-ad3a-091bdc3889f3 /boot ext2 rw,relatime 0 2 +UUID=EF56-1C0A /efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2 +/swap none swap defaults 0 0 + +# /dev/mapper/vg--hp3--1-containers +UUID=97798beb-333a-412f-9697-911576359c80 /mnt/containers btrfs rw,relatime,space_cache,subvol=/,noauto,noatime 0 0 + +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/docker btrfs subvol=/docker,defaults,noatime 0 0 + +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/cloud btrfs subvol=/cloud/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/rss btrfs subvol=/rss/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/endlessh btrfs subvol=/endlessh/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/git btrfs subvol=/git/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/wg-home btrfs subvol=/wg-home/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/wg-ext btrfs subvol=/wg-ext/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/webstatic btrfs subvol=/webstatic/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/archrepo-web btrfs subvol=/archrepo-web/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/pro btrfs subvol=/pro/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/wg-tunnel btrfs subvol=/wg-tunnel/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/tang btrfs subvol=/tang/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/pyfrance btrfs subvol=/pyfrance/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/webssh btrfs subvol=/webssh/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/passbolt btrfs subvol=/passbolt/current,defaults,noatime 0 0 +UUID=97798beb-333a-412f-9697-911576359c80 /var/lib/machines/wg-jab btrfs subvol=/wg-jab/current,defaults,noatime 0 0 diff --git a/nspawn/git.nspawn b/nspawn/git.nspawn new file mode 100644 index 0000000..b9dd27b --- /dev/null +++ b/nspawn/git.nspawn @@ -0,0 +1,7 @@ +[Exec] +Boot=yes +Hostname=git.hp7.infra.kto.black + +[Network] +Bridge=br0 + diff --git a/nspawn/passbolt.nspawn b/nspawn/passbolt.nspawn new file mode 100644 index 0000000..bb8631b --- /dev/null +++ b/nspawn/passbolt.nspawn @@ -0,0 +1,7 @@ +[Exec] +Boot=yes +Hostname=passbolt.hp7.infra.kto.black + +[Network] +Bridge=br0 + diff --git a/nspawn/pro.nspawn b/nspawn/pro.nspawn new file mode 100644 index 0000000..e9d3429 --- /dev/null +++ b/nspawn/pro.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=pro.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/pyfrance.nspawn b/nspawn/pyfrance.nspawn new file mode 100644 index 0000000..5d4b312 --- /dev/null +++ b/nspawn/pyfrance.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=pyfrance.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/rss.nspawn b/nspawn/rss.nspawn new file mode 100644 index 0000000..de2f263 --- /dev/null +++ b/nspawn/rss.nspawn @@ -0,0 +1,7 @@ +[Exec] +Boot=yes +Hostname=rss.hp7.infra.kto.black + +[Network] +Bridge=br0 + diff --git a/nspawn/tang.nspawn b/nspawn/tang.nspawn new file mode 100644 index 0000000..8ba2b71 --- /dev/null +++ b/nspawn/tang.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=tang.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/webssh.nspawn b/nspawn/webssh.nspawn new file mode 100644 index 0000000..4b1d2eb --- /dev/null +++ b/nspawn/webssh.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=webssh.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/webstatic.nspawn b/nspawn/webstatic.nspawn new file mode 100644 index 0000000..4d82885 --- /dev/null +++ b/nspawn/webstatic.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=webstatic.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/wg-ext.nspawn b/nspawn/wg-ext.nspawn new file mode 100644 index 0000000..5b0e48d --- /dev/null +++ b/nspawn/wg-ext.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=wg-ext.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/wg-home.nspawn b/nspawn/wg-home.nspawn new file mode 100644 index 0000000..674b0ef --- /dev/null +++ b/nspawn/wg-home.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=wg-home.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/wg-jab.nspawn b/nspawn/wg-jab.nspawn new file mode 100644 index 0000000..03d5bd7 --- /dev/null +++ b/nspawn/wg-jab.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=wg-jab.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap + diff --git a/nspawn/wg-tunnel.nspawn b/nspawn/wg-tunnel.nspawn new file mode 100644 index 0000000..8705254 --- /dev/null +++ b/nspawn/wg-tunnel.nspawn @@ -0,0 +1,10 @@ +[Exec] +Boot=yes +Hostname=wg-tunnel.hp7.infra.kto.black + +[Network] +Bridge=br0 + +[Files] +Bind=/var/cache/pacman/pkg:/var/cache/pacman/pkg:idmap +