app/helpers/katello/content_source_helper.rb in katello-4.6.2.1 vs app/helpers/katello/content_source_helper.rb in katello-4.7.0.rc1
- old
+ new
@@ -39,7 +39,16 @@
--rhsm.baseurl="#{content_source.pulp_content_url}"
subscription-manager facts --update
CMD
end
+
+ def reconfigure_yggdrasild(host)
+ template = Template.find_by(name: 'remote_execution_pull_setup')
+ return '' unless template
+
+ source = Foreman::Renderer.get_source(template: template, host: host)
+ scope = Foreman::Renderer.get_scope(source: source, host: host)
+ Foreman::Renderer.render(source, scope)
+ end
end
end