r/netboot/basementhud: Configure NBD export

The *netboot/basementhud* Ansible role configures two network block
devices for the basement HUD machine:

* The immutable root filesystem
* An ephemeral swap device
btop
Dustin 2022-06-23 09:47:16 -05:00
parent 4622240c6c
commit 9c364b1f06
3 changed files with 17 additions and 0 deletions

View File

@ -4,3 +4,5 @@
tags: pxe
- role: netboot/jenkins-agent
tags: netboot/jenkins-agent
- role: netboot/basementhud
tags: netboot/basementhud

View File

@ -0,0 +1,7 @@
- name: ensure basementhud nbd export is configured
template:
src: basementhud.ini.j2
dest: /etc/nbd-server/config.d/basementhud.conf
mode: u=rw,go=r
tags:
- nbd-config

View File

@ -0,0 +1,8 @@
[basementhud]
exportname = /var/lib/nbd/basementhud.squashfs
readonly = true
[basementhud-swap]
exportname = /var/lib/nbd/
temporary = true
filesize = 8589934592