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
This commit is contained in:
2
pxe.yml
2
pxe.yml
@@ -4,3 +4,5 @@
|
|||||||
tags: pxe
|
tags: pxe
|
||||||
- role: netboot/jenkins-agent
|
- role: netboot/jenkins-agent
|
||||||
tags: netboot/jenkins-agent
|
tags: netboot/jenkins-agent
|
||||||
|
- role: netboot/basementhud
|
||||||
|
tags: netboot/basementhud
|
||||||
|
|||||||
7
roles/netboot/basementhud/tasks/main.yml
Normal file
7
roles/netboot/basementhud/tasks/main.yml
Normal 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
|
||||||
8
roles/netboot/basementhud/templates/basementhud.ini.j2
Normal file
8
roles/netboot/basementhud/templates/basementhud.ini.j2
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[basementhud]
|
||||||
|
exportname = /var/lib/nbd/basementhud.squashfs
|
||||||
|
readonly = true
|
||||||
|
|
||||||
|
[basementhud-swap]
|
||||||
|
exportname = /var/lib/nbd/
|
||||||
|
temporary = true
|
||||||
|
filesize = 8589934592
|
||||||
Reference in New Issue
Block a user