So i am provisioning a server to a debian after that is done i have ansible that is transforming my debian 12 to a proxmox server. The only problem is after i deleted debian and os-prober i do a reboot. After the reboot my foreman loses contact because it get’s a new ip for some reason. Foreman does not manage my dhcp it is seperated. Can sombody maybe help ty!
root@foreman:~# cat /etc/dhcp/dhcpd.conf
omapi-port 7911;
default-lease-time 43200;
max-lease-time 86400;
deny duplicates;
ignore client-updates;
authoritative;
ddns-update-style none;
option domain-name “example.be”;
option domain-name-servers X.X.X.X;
option ntp-servers none;
allow booting;
allow bootp;
option fqdn.no-client-update on; # set the “O” and “S” flag bits
option fqdn.rcode2 255;
option pxegrub code 150 = text ;
required for UEFI HTTP boot
if substring(option vendor-class-identifier, 0, 10) = “HTTPClient” {
option vendor-class-identifier “HTTPClient”;
}
promote vendor in dhcpd.leases
set vendor-string = option vendor-class-identifier;
next server and filename options
next-server X.X.X.X;
option architecture code 93 = unsigned integer 16 ;
if exists user-class and option user-class = “iPXE” {
filename “http://foreman.example.be:8000/unattended/iPXE”;
} elsif option architecture = 00:06 {
filename “grub2/grubia32.efi”;
} elsif option architecture = 00:07 {
filename “grub2/grubx64.efi”;
} elsif option architecture = 00:09 {
filename “grub2/grubx64.efi”;
} else {
filename “pxelinux.0”;
}
log-facility local7;
include “/etc/dhcp/dhcpd.hosts”;
#################################
class httpclients
#################################
class “httpclients” {
match if substring(option vendor-class-identifier, 0, 10) = “HTTPClient”;
if option architecture = 00:0F {
filename “http://X.X.X.X:8000/EFI/grub2/shimia32.efi”;
} else if option architecture = 00:10 {
filename “http://X.X.X.X:8000/EFI/grub2/shim.efi”;
}
option vendor-class-identifier “HTTPClient”
;
}
subnet X.X.X.X netmask 255.255.255.0 {
pool
{
range X.X.X.X X.X.X.X;
}
option subnet-mask 255.255.255.0;
option routers X.X.X.X;
}