bifrost/playbooks/roles/ironic-install/templates/agent_config.template.j2
Ricardo Carrillo Cruz f494491ac4 Add extra_kernel_parameters
In some hardware, it may be needed to pass kernel parameters for boot.
This parameterizes the options and allows to pass them via a variable.

Change-Id: Ic55edc9e4fb68da617bb56610b4b3acba612e68a
2015-07-31 16:31:01 -04:00

13 lines
664 B
Django/Jinja

#!ipxe
dhcp
goto deploy
:deploy
kernel http://{{ hostvars[inventory_hostname]['ansible_' + network_interface]['ipv4']['address'] }}:{{nginx_port}}{{ '{{' }} pxe_options.deployment_aki_path {{ '}}' }} {{ extra_kernel_options|default('') }} ip=${ip}:${next-server}:${gateway}:${netmask} BOOTIF=${mac} text {{ '{{' }} pxe_options.pxe_append_params {{ '}}' }} ipa-api-url={{ '{{' }} pxe_options['ipa-api-url'] {{ '}}' }} ipa-driver-name={{ '{{' }} pxe_options['ipa-driver-name'] {{ '}}' }}
initrd http://{{ hostvars[inventory_hostname]['ansible_' + network_interface]['ipv4']['address'] }}:{{nginx_port}}{{ '{{' }} pxe_options.deployment_ari_path {{ '}}' }}
boot