On 20/12/16 16:24, Brian Witt wrote: > Hi, is there a way to have foreman go through all managed interfaces > (bmc and front-end) and re-inject (delete, then add) leases for each > one? I'm using foreman 1.11.4 with smart proxy 1.11.4 with isc dhcpd > and it seems that leases get lost on a regular basis (restarting dhcpd?) > so we're frequently using this procedure to re-inject a lease for bmc > for instance when a host goes down and we discover the bmc is not > responding on the network: > > edit host -> interfaces -> edit BMC -> change IP address -> OK -> Save > -> edit host -> interfaces -> edit BMC -> change IP address back -> OK > -> Save -> Overwrite > > Then since the bmc likely picked up the 'wrong' address, need to reset > it back to the correct address. > > It'd be great if there was a button to re-create all leases (or even > just the leases for a particular host or interface) but I don't see one.
Via the host list, tick the checkbox next to one or more hosts, then choose "Rebuild Config" from the Select Action dropdown menu. See the 1.10 release notes for more details: https://theforeman.org/manuals/1.10/index.html#Headlinefeatures -- Dominic Cleal [email protected] -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
