mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +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:
|
dhcp:
|
||||||
build: ./dhcp
|
build: ./dhcp
|
||||||
volumes:
|
volumes:
|
||||||
- ./dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf
|
- ./data/pxe-config/dhcpd.conf:/etc/dhcp/dhcpd.conf
|
||||||
network_mode: host
|
network_mode: host
|
||||||
tftp:
|
tftp:
|
||||||
build: ./tftp
|
build: ./tftp
|
||||||
network_mode: host
|
network_mode: host
|
||||||
volumes:
|
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/EFI/BOOT/grubx64.efi:/var/lib/tftpboot/grubx64.efi
|
||||||
- ./data/os/images/pxeboot/initrd.img:/var/lib/tftpboot/initrd.img
|
- ./data/os/images/pxeboot/initrd.img:/var/lib/tftpboot/initrd.img
|
||||||
- ./data/os/images/pxeboot/vmlinuz:/var/lib/tftpboot/vmlinuz
|
- ./data/os/images/pxeboot/vmlinuz:/var/lib/tftpboot/vmlinuz
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
- name: Render DHCP config
|
- name: Render DHCP config
|
||||||
template:
|
template:
|
||||||
src: dhcpd.conf.j2
|
src: dhcpd.conf.j2
|
||||||
dest: "{{ role_path }}/files/dhcp/dhcpd.conf"
|
dest: "{{ role_path }}/files/data/pxe-config/dhcpd.conf"
|
||||||
|
|
||||||
- name: Render GRUB config
|
- name: Render GRUB config
|
||||||
template:
|
template:
|
||||||
src: grub.cfg.j2
|
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
|
- name: Render machine specific init config
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user