Project

General

Custom queries

Profile

Actions

Feature #20895

closed

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

Added by Oliver Weinmann over 7 years ago. Updated over 6 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
#1

Updated by Andrew Kofink over 7 years ago

  • Assignee set to Partha Aji
  • Translation missing: en.field_release set to 250
#2

Updated by Brad Buckingham over 7 years ago

  • Target version set to 217

Updated by Oliver Weinmann over 7 years ago

#6

Updated by Brad Buckingham over 7 years ago

  • Target version changed from 217 to 225
#8

Updated by Brad Buckingham over 7 years ago

  • Target version changed from 225 to 160
#9

Updated by Andrew Kofink over 6 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF