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 shutdown_only parameter to tasks #224

Merged
merged 2 commits into from
Dec 16, 2019
Merged

Conversation

MikaelSmith
Copy link
Contributor

Adds the shutdown_only parameter which allows shutting down of servers without a reboot (for decommissioning workflows, cloud etc).

Adds ✨ automated unit tests ✨ for the task 😮

Creates a Reboot::Task class for testing with rspec.

Adds ✨ automated tests ✨ for the task 😮
Adds the `shutdown_only` parameter which allows shutting down of servers
without a reboot (for decommissioning workflows, cloud etc).
@MikaelSmith MikaelSmith requested a review from a team as a code owner December 3, 2019 17:59
@MikaelSmith
Copy link
Contributor Author

This tries to pick up #176.

@codecov-io
Copy link

codecov-io commented Dec 3, 2019

Codecov Report

Merging #224 into master will increase coverage by 3.31%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #224      +/-   ##
=========================================
+ Coverage   47.49%   50.8%   +3.31%     
=========================================
  Files           5       6       +1     
  Lines         259     309      +50     
=========================================
+ Hits          123     157      +34     
- Misses        136     152      +16
Impacted Files Coverage Δ
tasks/init.rb 68% <66.66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25a32f0...a519cbd. Read the comment docs.

Copy link
Contributor

@dylanratcliffe dylanratcliffe left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks heaps for this

@TheRealEdwardCullen
Copy link

Instead of 'shutdown_only', how about 'action' => shutdown|reboot?

Would also allow for alternatives like log only or fail/skip remainder of catalogue.

@DavidS DavidS changed the title Shutdowns! (round 2) Add shutdown_only parameter to tasks Dec 16, 2019
@DavidS DavidS added the feature label Dec 16, 2019
@DavidS DavidS merged commit ae2ff97 into puppetlabs:master Dec 16, 2019
@MikaelSmith MikaelSmith deleted the shutdown branch December 16, 2019 19:12
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.

5 participants