Skip to content

Instantly share code, notes, and snippets.

@wbclark
Last active September 2, 2020 15:21
Show Gist options
  • Save wbclark/46ac36f1f81e10c761c1574aa0a295fb to your computer and use it in GitHub Desktop.
Save wbclark/46ac36f1f81e10c761c1574aa0a295fb to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Importing Subscription Pools from Candlepin to Katello (what is displayed on the WebUI)."
echo '
namespace :katello do
task :import_subscriptions => ["environment"] do
User.current = User.anonymous_api_admin
puts _("Importing Subscriptions")
Katello::Subscription.import_all
Katello::Pool.import_all
end
end
' | foreman-rake console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment