How to provision Fedora through foreman

unable to provision fedora through foreman.

Expected outcome:
sucessfully installed fedora
Foreman and Proxy versions:
Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7
Other relevant data:
I am able to provision CentOS.
In default Kickstart file there is a if clause, which is causing to use mirror from internet for installation. Is there a reason why? I want to use the local synced repositories for provisioning. How to provide this?

<% if == ‘Fedora’ -%>
repo --name=fedora-everything --mirrorlist=<%= host.operatingsystem.major %>&arch=<%= host.architecture %><%= proxy_string %> --proxy=“http://xyz:8000
<% end -%>

causes in:
repo --name=fedora-everything --mirrorlist=

Weird, indeed this is nonsense and it’s been there like forever. I propose to delete the block, tell me how it works without it:

Honestly, we mostly test CentOS/Debian/Ubuntu.