Adding custom task to Fog Server
-
@Tom-Elliott
The custom menu is doing kickstart installation ( just like the default memory test that comes with fog ). I can see the menu when I pxe boot just like any other menu. ( again same like memory test) but that is a manual process especially when I want to manage large number of hosts.
All I wanted to do now is to create a custom task ( which calls the custom menu ). So I can assign the task to a host that is registered.Thank you
Chakri -
Did you install the task type plugin?
-
Yes I installed task type plugin. Like I shared the snapshots in the initial conversation. I can create a custom task but that isn’t calling the menu. That is where I needed help on how call my custom menu. If you can’t find the snapshot in the beginning of this tickets. I will re-post it.
Thank you
Chakri -
@csa I was right. There is a hook already for this.
The hook to call is:
IPXE_EDIT
The Particular variable will be:
$arguments['Send']['task']
That’s called within the hook.
Can you post what the sequence to that tasking will be to boot it INTO the tasking?
-
https://fog.mastacontrola.com/service/ipxe/boot.php?mac=00:0c:29:bd:f2:ba
Does this look right for tasking?
-
Sorry I am little confused on following your instructions but here is a screen shot of “Task Type Management” of my custom task. So can you tell me which field gets the “IPXE_EDIT” and which the arguments?
Once again thank you so much for your time and effort.
Thank you
Chakri -
Yes that is correct. I use that entries in my custom menu that I call manually. It works like a champ. Now I need to do the same in my tasking or call the menu from tasking.
Thank you
Chakri -
@csa I’m trying to chat with you.
-
@Tom-Elliott
Fixed the password issues and upgrade to the latest revision. Switched the flag in “/var/www/fog/lib/hooks/boottask.hook.php to true”.Do you have couple of min to chat.
-
@csa Did you had success making your own custom task type ?