Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an experimental peadm::uninstall plan #195

Merged
merged 7 commits into from
Aug 2, 2021
Merged

Add an experimental peadm::uninstall plan #195

merged 7 commits into from
Aug 2, 2021

Conversation

mcka1n
Copy link
Contributor

@mcka1n mcka1n commented Aug 2, 2021

Changes

In this PR I'm introducing the peadm::uninstall Bolt plan with a proper spec file

Copy link
Contributor

@reidmv reidmv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Use pdk bundle exec to get the right Ruby version(s), or use pdk test unit
  • In the event the uninstall script isn't present, we should print an error message stating the problem, and stating that the uninstall task cannot be used to uninstall PE from that target at this time
  • Use an absolute path to the uninstall script
  • Remove $version parameter and check; don't need it for uninstall

.ruby-gemset Outdated
@@ -0,0 +1 @@
peadm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per pdk comments, let's remove this file

.ruby-version Outdated
@@ -0,0 +1 @@
ruby-2.5.7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per pdk comments, let's remove this file

# and the command-line flags, visit:
# https://puppet.com/docs/pe/2019.8/uninstalling.html

sudo ./puppet-enterprise-uninstaller -d -p -y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use an absolute path here, otherwise we'll probably not run the command correctly.

@mcka1n mcka1n changed the title Solarch 531 Solarch 531: Implement a peadm::uninstall plan to remove PE installation from a node Aug 2, 2021
@mcka1n mcka1n changed the title Solarch 531: Implement a peadm::uninstall plan to remove PE installation from a node Solarch 531: Implement a peadm::uninstall plan to remove PE installation from a target Aug 2, 2021
@mcka1n mcka1n marked this pull request as ready for review August 2, 2021 21:14
@mcka1n mcka1n requested a review from a team as a code owner August 2, 2021 21:14
@mcka1n mcka1n requested a review from reidmv August 2, 2021 21:15
Copy link
Contributor

@reidmv reidmv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@reidmv reidmv merged commit d3ca355 into main Aug 2, 2021
@reidmv reidmv deleted the SOLARCH-531 branch August 2, 2021 21:50
@reidmv reidmv added the feature label Sep 10, 2021
@reidmv reidmv changed the title Solarch 531: Implement a peadm::uninstall plan to remove PE installation from a target Add an experimental peadm::uninstall plan Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants