with older version of opsi, I modified the /usr/bin/opsipxeconfd file to call a perl script.
With the new version, i'm not sure this run correctly.
In the old version, this is my opsipxeconfd file :
Code: Alles auswählen
def updateBootConfiguration(self, hostId):
try:
hostId = forceHostId(hostId)
logger.info(u"Updating PXE boot configuration for host '%s'" % hostId)
# Remove current pxe config for host
currentPcws = []
self._pxeConfigWritersLock.acquire()
try:
for pcw in self._pxeConfigWriters:
if (pcw.hostId == hostId):
currentPcws.append(pcw)
for pcw in currentPcws:
self._pxeConfigWriters.remove(pcw)
finally:
self._pxeConfigWritersLock.release()
for pcw in currentPcws:
pcw.stop()
while pcw.isAlive():
time.sleep(0.1)
logger.notice(u"PXE boot configuration for host '%s' removed" % hostId)
# Suppression de la liste des paquets FUSION
subprocess.call(["/path_to_perl_script.pl", hostId])
Version of OPSI : 4.2.0.3
I used OPSI only for deploy OS by pxe boot.
Thanks for the help
Olivier