Project

General

Profile

Actions

Feature #20895

closed

provisiong template @mediapath is static and not picking up content source from host

Added by Oliver Weinmann over 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Hi,

while deploying a fresh host via Katello in our DMZ I noticed that it tries to pull the intall files from the main katello server instead of the capsule selected under content source. I figured that in the provisioning template @mediapath is somehow static and pointing to the main katello server. As I usually do when facing problems with Katello I joined the IRC chat and immediatley got an answer with a workaround that works perfectly.

I replaced <%= @mediapath %> in the kickstart provisioning template with:

<%= @mediapath.gsub(foreman_server_fqdn.to_s, @host.content_source.to_s) %>

and now mediapath points to the selected content source.


Files

katello_centos7-newhost.PNG View katello_centos7-newhost.PNG 36.5 KB Oliver Weinmann, 09/21/2017 04:25 AM
repodetails.PNG View repodetails.PNG 60.4 KB Oliver Weinmann, 09/21/2017 05:17 AM
hostgroup_1.PNG View hostgroup_1.PNG 38 KB Oliver Weinmann, 09/21/2017 05:20 AM
hostgroup_2.PNG View hostgroup_2.PNG 45 KB Oliver Weinmann, 09/21/2017 05:42 AM
Actions

Also available in: Atom PDF