-
Notifications
You must be signed in to change notification settings - Fork 56
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
(FM-8611) Reinstall module #209
Conversation
Depends on #208 |
Codecov Report
@@ Coverage Diff @@
## master #209 +/- ##
=========================================
- Coverage 59.62% 59.5% -0.13%
=========================================
Files 6 6
Lines 535 563 +28
=========================================
+ Hits 319 335 +16
- Misses 216 228 +12
Continue to review full report at Codecov.
|
09d79f6
to
2b528d9
Compare
Should this be rebased on master now that the rake task refactor is merged, @florindragos? |
2b528d9
to
4837fe6
Compare
done |
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.
Minor implementation question, otherwise LGTM!
lib/puppet_litmus/rake_helper.rb
Outdated
@@ -184,4 +184,21 @@ def install_module(inventory_hash, target_node_name, module_tar) | |||
install_module_command = "puppet module install /tmp/#{File.basename(module_tar)}" | |||
run_command(install_module_command, target_nodes, config: nil, inventory: inventory_hash) | |||
end | |||
|
|||
def uninstall_module(inventory_hash, target_node_name) |
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.
Should this be more generically able to uninstall any given module? Then we could specify metadata_module_name
to remove that one or any of the dependencies or other modules.
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.
It could default to uninstalling the working directory's module, I think.
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.
We could do that but I'm not sure what the use case for this would be.
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.
Uninstalling dependencies to check behavior is the first thing that comes to mind.
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.
Added a a parameter for the module name but if we want to uninstall dependencies, we need to use --force
4837fe6
to
43bace3
Compare
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.
Minor typo spotted, otherwise LGTM
lib/puppet_litmus/rake_tasks.rb
Outdated
# Reinstall the puppet module under test on a collection of nodes | ||
# | ||
# @param :target_node_name [Array] nodes on which to install a puppet module for testing. | ||
desc 'reinstall_module - reinstgall module' |
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.
Typo in reinstgall
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.
nice catch
43bace3
to
a357548
Compare
No description provided.