Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #355 from bbuckingham/issue-15297
Browse files Browse the repository at this point in the history
fixes #15297: post upgrade to update puppet repositories
  • Loading branch information
bbuckingham committed Jun 6, 2016
2 parents 4cfddef + 6dd9649 commit b52f578
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hooks/post/30-upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def remove_docker_v1_content
Kafo::Helpers.execute('foreman-rake katello:upgrades:3.0:delete_docker_v1_content')
end

def update_puppet_repository_distributors
Kafo::Helpers.execute('foreman-rake katello:upgrades:3.0:update_puppet_repository_distributors')
end

def remove_gutterball
return true unless Kafo::Helpers.execute('rpm -q gutterball')
Kafo::Helpers.execute("yum erase -y gutterball tfm-rubygem-foreman_gutterball gutterball-certs tfm-rubygem-hammer_cli_gutterball")
Expand Down Expand Up @@ -78,6 +82,7 @@ def fail_and_exit(message)
upgrade_step :import_subscriptions, :long_running => true
upgrade_step :elasticsearch_message
upgrade_step :remove_docker_v1_content, :long_running => true
upgrade_step :update_puppet_repository_distributors, :long_running => true
upgrade_step :remove_gutterball
end

Expand Down

0 comments on commit b52f578

Please sign in to comment.