Compare commits

..

28 Commits

Author SHA1 Message Date
Philippe Caseiro 03a9af8ceb fup 2023-01-23 15:48:12 +01:00
Philippe Caseiro fbd712bb72 fup 2023-01-12 14:00:02 +01:00
Philippe Caseiro e506d26b65 fup 2023-01-06 12:11:42 +01:00
Philippe Caseiro cc2e938f0a fup 2023-01-06 11:11:28 +01:00
Philippe Caseiro 52c70e8b30 fup 2023-01-05 16:07:17 +01:00
Philippe Caseiro be6d05b075 fup 2023-01-05 15:56:37 +01:00
Philippe Caseiro 6232664fe6 fup 2023-01-05 15:52:00 +01:00
Philippe Caseiro 3b5f18114d fup 2023-01-05 13:51:45 +01:00
Philippe Caseiro 3b88e57992 fup 2023-01-05 11:18:19 +01:00
Philippe Caseiro da99a58d98 fup 2023-01-05 10:43:18 +01:00
Philippe Caseiro 0bef57b467 fup 2023-01-04 15:54:51 +01:00
Philippe Caseiro 6196c22acf fup 2023-01-04 14:45:05 +01:00
Philippe Caseiro 6449c907bb fup 2023-01-04 14:38:34 +01:00
Philippe Caseiro 759d308265 fup 2023-01-04 14:29:20 +01:00
Philippe Caseiro 339e7700f2 fup 2023-01-04 14:27:39 +01:00
Philippe Caseiro d9caab8427 fup 2023-01-04 12:24:54 +01:00
Philippe Caseiro a39738d93b fup 2023-01-04 12:21:47 +01:00
Philippe Caseiro 8b7fee1ea4 fup 2023-01-04 11:58:45 +01:00
Philippe Caseiro 987a8fe67e fup 2023-01-04 11:47:18 +01:00
Philippe Caseiro bd09786714 fup 2023-01-04 11:37:52 +01:00
Philippe Caseiro 013d8b9384 fup 2023-01-04 11:33:37 +01:00
Philippe Caseiro f718356ad9 fup 2023-01-04 11:29:12 +01:00
Philippe Caseiro ff7dac1b94 fup 2023-01-04 11:27:24 +01:00
Philippe Caseiro 73f3fe3550 fup 2023-01-04 10:57:03 +01:00
Philippe Caseiro 7c8b20f2ce fup 2023-01-04 10:36:51 +01:00
Philippe Caseiro 214a84994c feat(recipe): adding alpine 3.17 version 2023-01-04 10:29:11 +01:00
Philippe Caseiro 632c4cd517 fix(recipe): matchbox updating install script 2022-12-27 15:26:03 +01:00
Philippe Caseiro d2c161e9bd First recipes 2022-12-16 09:31:52 +01:00
4 changed files with 10 additions and 31 deletions

View File

@ -71,8 +71,7 @@ locals {
BootingMessage = "Booting from network the Cadoles way" BootingMessage = "Booting from network the Cadoles way"
DHCPRangeStart = "" DHCPRangeStart = ""
DHCPRangeEnd = "" DHCPRangeEnd = ""
DHCPLeaseDuration = "1h" DHCPLeaseDuration = "12h"
TFTPRoot = "/var/lib/tftpboot"
} }
MatchBox = { MatchBox = {
Hostname = "mb.cadoles.com" Hostname = "mb.cadoles.com"

View File

@ -48,12 +48,6 @@ EOF
source = "${local.locations.provisionning}/conf/${build.name}/initmatchbox.start" source = "${local.locations.provisionning}/conf/${build.name}/initmatchbox.start"
} }
// Copy tftp provisionning script
provisioner "file" {
destination = "/etc/local.d/inittftp.start"
source = "${local.locations.provisionning}/conf/${build.name}/inittftp.start"
}
// Generate default configuration for kubernetes // Generate default configuration for kubernetes
provisioner "shell" { provisioner "shell" {
max_retries = 3 max_retries = 3
@ -85,7 +79,6 @@ EOF
provisioner "shell" { provisioner "shell" {
inline = [ inline = [
"chmod +x /etc/local.d/initmatchbox.start", "chmod +x /etc/local.d/initmatchbox.start",
"chmod +x /etc/local.d/inittftp.start",
"chmod +x /etc/one-context.d/net-96-templater" "chmod +x /etc/one-context.d/net-96-templater"
] ]
} }

View File

@ -1,10 +0,0 @@
#!/bin/sh
dest="${1}"
ipxeEFISource="http://boot.ipxe.org/ipxe.efi"
kpxeSource="http://boot.ipxe.org/undionly.kpxe"
cd "${dest}"
wget "${ipxeEFISource}"
wget "${kpxeSource}"

View File

@ -13,25 +13,22 @@ strict-order
addn-hosts=/etc/dnsmasq-hosts.conf addn-hosts=/etc/dnsmasq-hosts.conf
domain=${Vars.PXE.DNSDomain} domain=${Vars.PXE.DNSDomain}
local=/${Vars.PXE.DNSDomain}/ local=/${Vars.PXE.DNSDomain}/
localise-queries
enable-tftp
pxe-prompt="${Vars.PXE.GreetingMessage}",${Vars.PXE.DelayTime}
pxe-service=X86PC,"${Vars.PXE.BootingMessage}", http://${Vars.ETH0.IP}:${Vars.MatchBox.HTTPPort}/boot.ipxe
%{ if Vars.PXE.DHCPMode == "proxy" } %{ if Vars.PXE.DHCPMode == "proxy" }
#dhcp-no-override dhcp-no-override
dhcp-range=${Vars.ETH0.IP},proxy dhcp-range=${Vars.ETH0.IP},proxy
%{ else } %{ else }
dhcp-range=${Vars.PXE.DHCPRangeStart},${Vars.PXE.DHCPRangeEnd},${Vars.PXE.DHCPLeaseDuration} dhcp-range=${Vars.PXE.DHCPRangeStart},${Vars.PXE.DHCPRangeEnd},${Vars.PXE.DHCPLeaseDuration}
dhcp-option=option:router,${Vars.ETH0.GATEWAY} dhcp-option=option:router,${Vars.ETH0.Gateway}
%{ endif } %{ endif }
dhcp-option=option:dns-server,${Vars.ETH0.IP} dhcp-option=option:dns-server,${Vars.ETH0.IP}
dhcp-option=option:domain-name,${Vars.PXE.DNSDomain} dhcp-option=option:domain-name,${Vars.PXE.DNSDomain}
# TFTP Configuration dhcp-match=set:ipxe,175
enable-tftp dhcp-vendorclass=BIOS,PXEClient:Arch:00000
tftp-root="${Vars.PXE.TFTPRoot}"
pxe-prompt="${Vars.PXE.GreetingMessage}",${Vars.PXE.DelayTime}
pxe-service=tag:#ipxe,x86PC,"Legacy boot PXE chainload to iPXE",undionly.kpxe
dhcp-userclass=set:ipxe,iPXE
pxe-service=tag:ipxe,x86PC,"${Vars.PXE.BootingMessage} (iPXE)", http://${Vars.ETH0.IP}:${Vars.MatchBox.HTTPPort}/boot.ipxe