Move dhcp and grub config to data

This commit is contained in:
Khue Doan 2021-08-31 05:11:42 +07:00
parent 5d44f46401
commit 1ddab8a2a4
3 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -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

View File

@ -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: