Actions
Feature #20895
closedprovisiong template @mediapath is static and not picking up content source from host
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
Updated by Andrew Kofink over 7 years ago
- Assignee set to Partha Aji
- Translation missing: en.field_release set to 250
Updated by Oliver Weinmann over 7 years ago
- File katello_centos7-newhost.PNG katello_centos7-newhost.PNGkatello_centos7-newhost.PNG added
- File repodetails.PNG repodetails.PNGrepodetails.PNG added
- File hostgroup_1.PNG hostgroup_1.PNGhostgroup_1.PNG added
- File hostgroup_2.PNG hostgroup_2.PNGhostgroup_2.PNG added
- Translation missing: en.field_release changed from 250 to 226
Actions