Sha256: e5cf3299cb010c6c53e679e804941ea1dd0d7f52dbfe3fb54d977b28f6e883d4

Contents?: true

Size: 639 Bytes

Versions: 11

Compression:

Stored size: 639 Bytes

Contents

namespace :katello do
  namespace :upgrades do
    namespace '2.2' do
      task :update_gpg_key_urls => ["environment"]  do
        User.current = User.anonymous_api_admin
        puts _("Importing GPG Key Urls to support Capsule Communication")

        Katello::Product.find_each do |product|
          unless product.redhat?
            product.repositories.each do |repo|
              if repo.yum_gpg_key_url && repo.yum_gpg_key_url != repo.content.gpgUrl
                ForemanTasks.sync_task(::Actions::Katello::Repository::Update, repo, {})
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
katello-2.4.5 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.4.4 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.4.3 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.4.2 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-3.0.0.rc1 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.4.1 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.4.0 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.4.0.rc3 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.4.0.rc2 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.4.0.rc1 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake
katello-2.2.2 lib/katello/tasks/upgrades/2.2/update_gpg_key_urls.rake