Project

General

Profile

Actions

Bug #4974

closed

When not selecting puppet master, setting rhsm repo_url is not correct

Added by Ivan Necas almost 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

1. provisiong a host usint Katello Kickstart without selecting puppet master
2. see the preview of provisioning template for the host

It contains

subscription-manager config --rhsm.baseurl=https:///pulp/repos

These lines should not be there. The template for subscription_manager_registration should have something like this to handle that properly:

<% @host.puppetmaster && !@host.puppetmaster.empty? %>
  subscription-manager config --rhsm.baseurl=https://<%= @host.puppetmaster %>/pulp/repos
<% end %>
Actions

Also available in: Atom PDF