Skip to content

Commit

Permalink
Fixes #38111 - Change content source & REX Pull provider
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Dec 18, 2024
1 parent b551d41 commit 44deb07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/helpers/katello/content_source_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ def reconfigure_yggdrasild(host)

source = Foreman::Renderer.get_source(template: template, host: host)
scope = Foreman::Renderer.get_scope(source: source, host: host)
Foreman::Renderer.render(source, scope)

<<~CMD
if [ -f /etc/yggdrasil/config.toml ]; then
cp /etc/yggdrasil/config.toml /etc/yggdrasil/config.toml.bak
export YGGDRASIL_RESTART_DELAY=10
#{Foreman::Renderer.render(source, scope)}
fi
CMD
end
end
end

0 comments on commit 44deb07

Please sign in to comment.