mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-03 21:40:34 +07:00
Move dhcp and grub config to data
This commit is contained in:
parent
5d44f46401
commit
1ddab8a2a4
2
metal/roles/pxe-server/files/data/pxe-config/.gitignore
vendored
Normal file
2
metal/roles/pxe-server/files/data/pxe-config/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
@ -4,13 +4,13 @@ services:
|
||||
dhcp:
|
||||
build: ./dhcp
|
||||
volumes:
|
||||
- ./dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf
|
||||
- ./data/pxe-config/dhcpd.conf:/etc/dhcp/dhcpd.conf
|
||||
network_mode: host
|
||||
tftp:
|
||||
build: ./tftp
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./tftp/grub.cfg:/var/lib/tftpboot/grub.cfg
|
||||
- ./data/pxe-config/grub.cfg:/var/lib/tftpboot/grub.cfg
|
||||
- ./data/os/EFI/BOOT/grubx64.efi:/var/lib/tftpboot/grubx64.efi
|
||||
- ./data/os/images/pxeboot/initrd.img:/var/lib/tftpboot/initrd.img
|
||||
- ./data/os/images/pxeboot/vmlinuz:/var/lib/tftpboot/vmlinuz
|
||||
|
@ -13,12 +13,12 @@
|
||||
- name: Render DHCP config
|
||||
template:
|
||||
src: dhcpd.conf.j2
|
||||
dest: "{{ role_path }}/files/dhcp/dhcpd.conf"
|
||||
dest: "{{ role_path }}/files/data/pxe-config/dhcpd.conf"
|
||||
|
||||
- name: Render GRUB config
|
||||
template:
|
||||
src: grub.cfg.j2
|
||||
dest: "{{ role_path }}/files/tftp/grub.cfg"
|
||||
dest: "{{ role_path }}/files/data/pxe-config/grub.cfg"
|
||||
|
||||
- name: Render machine specific init config
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user