-
Notifications
You must be signed in to change notification settings - Fork 54
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
Conversation
There was a problem hiding this 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 usepdk 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
tasks/pe_uninstall.sh
Outdated
# and the command-line flags, visit: | ||
# https://puppet.com/docs/pe/2019.8/uninstalling.html | ||
|
||
sudo ./puppet-enterprise-uninstaller -d -p -y |
There was a problem hiding this comment.
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.
Co-authored-by: Reid Vandewiele <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
Changes
In this PR I'm introducing the
peadm::uninstall
Bolt plan with a proper spec file