Using global params in global/default pxelinux/pxegrub2 templates vs ipxe one

It appears that I can’t use any of the global params defined in Foreman within my pxelinux or pxegrub/pxegrub2 global default templates like I can with iPXE ones. Unlike ipxe default template, I get the following error when I try to use something like “set my_param=”<%= @host.params[‘my_param’] %>"" in either pxelinux or oxegrub2 template and try to deploy default files to TFTP proxies:

undefined method `params’ for nil:NilClass (PXEGrub2)

Expected outcome:
Template is rendered just like ipxe one and value of global “my_param” is populated into resulting default files on TFTP proxies. iPXE does not create any files, but if I hit bootstrap URL like below, I do not get errors and I do see my_param value in returned output:


Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:
If there’s a different I should be referring to global parameters within pxelinux or pxegrub2 template, please let me know, but in previously used Foreman versionsI was never been able to do so. Seeing how this works in 3.3 for iPXE gave me hope for pxelinux and pxegrub2.