Project

General

Profile

Actions

Bug #4463

closed

Default profiles templates default to https:// connection for kickstart

Added by Matt Darcy about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

the default pxe template in foreman 1.4 creates the boot profiles URL based upon the state of the actual web interface page used to generate it,

eg:

if the user is viewing

https://foreman-host/config_templates then the default pxe parameters are generated in the pxelinux default config as

LABEL test - test/virtual
kernel boot/CentOS-6.5-x86_64-vmlinuz
append initrd=boot/CentOS-6.5-x86_64-initrd.img ks=https://foreman-host/unattended/template/test/virtual ksdevice=bootif network kssendmac

which doesn't work as the kickstart connection will try to be made on https, which requires a valid SSL certificate.

if the user generates the pxe menu with the web url

http://foreman-host/config_templates

then the pxe menu will be generated thus
LABEL test - test/virtual
kernel boot/CentOS-6.5-x86_64-vmlinuz
append initrd=boot/CentOS-6.5-x86_64-initrd.img ks=http://foreman-host/unattended/template/test/virtual ksdevice=bootif network kssendmac

to get the kickstart functioning on http - not https I have to set " :require_ssl: false " in /etc/foreman/settings.yaml

which is a security risk and a bit of a dirty hack.

the functionality should be that kickstart/build process is always done over http, unless https is configured for build operations in the unattended_url parameter.


Related issues 4 (0 open4 closed)

Related to Foreman - Bug #8228: default_template_url removed from API controllers, causes PXE menu build failureClosedShlomi Zadok10/31/2014Actions
Related to Foreman - Bug #9773: Default profiles templates create invalid URL'sClosedStephen Benjamin03/16/2015Actions
Has duplicate Foreman - Bug #6833: PXE default menu doesn't honour unattended_url settingDuplicate07/30/2014Actions
Has duplicate Foreman - Bug #7318: Hostgroup provisioning provides HTTPS URLDuplicate09/01/2014Actions
Actions

Also available in: Atom PDF