Sha256: 860ffbaddced7cbf43ff2885fe58f44129baf801f9b6b39ba395642b1f0338ce

Contents?: true

Size: 825 Bytes

Versions: 52

Compression:

Stored size: 825 Bytes

Contents

namespace :katello do
  namespace :upgrades do
    namespace '3.0' do
      task :update_puppet_repository_distributors => ["environment"] do
        User.current = User.anonymous_api_admin
        puts _("Updating Puppet Repository Distributors")
        Katello::Repository.puppet_type.each do |repo|
          ForemanTasks.sync_task(::Actions::Pulp::Repository::Refresh, repo)
          ForemanTasks.sync_task(::Actions::Katello::Repository::MetadataGenerate, repo)
        end

        puts _("Updating Content View Puppet Environment Distributors")
        Katello::ContentViewPuppetEnvironment.all.each do |repo|
          ForemanTasks.sync_task(::Actions::Pulp::Repository::Refresh, repo)
          ForemanTasks.sync_task(::Actions::Katello::Repository::MetadataGenerate, repo)
        end
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
katello-3.8.1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.7.1.1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.7.1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.8.0 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.8.0.rc3 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.8.0.rc2 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.7.0 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.8.0.rc1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.7.0.rc2 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.7.0.rc1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.5.2 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.6.0 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.6.0.1.rc2 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.6.0.rc2 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.6.0.rc1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.5.1.1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.5.1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.5.0.1 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.5.0 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake
katello-3.5.0.rc2 lib/katello/tasks/upgrades/3.0/update_puppet_repository_distributors.rake