Comments (11)
Hmm... I've had it just reboot the box by itself after it installs. Did that not happen for you?
from powershell.
Which version of powershell is that for? Also, were you installing anything else? AFAIK, there's no direct support for reboot in this cookbook, but something else may be doing it accidentally...
from powershell.
Running into the same issue. 2008R2 machine w. PSv2.0, using this to bring it to PSv4.0. Works fine after a reboot, but ideally the cookbook would handle it.
from powershell.
We have 'powershell::windows_reboot recipe'. Please check, it might help you. Currently we used this in PS4 recipe.
https://github.com/chef-windows/powershell/blob/master/recipes/powershell4.rb#L34
from powershell.
Really, it should just do the windows_reboot notify all the time, and then leave it up to the user to do the allow_pending_reboots/allow_reboot_on_failure attributes if they want it to trigger
from powershell.
Ah, I'm getting my cookbooks via 'knife cookbook site install powershell' - that version doesn't have the reboot code. Is there a better way to do this? (I understand Berkshelf is recommended, but haven't had a chance to investigate yet)
from powershell.
@palfrey, Thanks for pointing this out! Right now user can set 'allow_pending_reboot' and 'allow_reboot_on_failure' attributes only by modifying windows_reboot recipe itself.
We have powershell::dsc recipe which sets up environment ( i.e install PS > 4.0) for windows DSC. And we implemented powershell::windows_reboot recipe for doing reboot after required environment is set-up. We will add windows_reboot support for other PS version as well.
from powershell.
With reference to @christrotter's comment, it looks like master is 60 commits ahead of the 3.0.7 tag.
Can we get a new version released/tagged? Lots of good stuff in those 60 commits... @NimishaS
from powershell.
@tjnicholas , yes we'll release the changes.
from powershell.
@palfrey , @christrotter Reboot code has been added to all powershell cookbooks in the master branch. It's not released yet. Please use master branch code till the release.
from powershell.
Closing this out since the commit was merged. We'll try to get a release out shortly.
from powershell.
Related Issues (20)
- Switch from windows_package to package resource to prevent warnings on each run HOT 3
- Name of module is not valid when installed with powershell_module HOT 2
- Kitchen Converge fails with PowerShell5 and Windows cookbook version 3.0.0 HOT 2
- Add support for Windows Management Framework (WMF) 5.1 HOT 10
- powershell5 recipe error on 2008R2 HOT 3
- powershell5 upgrade exits with '5' HOT 3
- Files are not copied recursively for a locally-sourced PowerShell module HOT 2
- Setting ['installation_reboot_mode'] = 'immediate_reboot' should not stop Chef run HOT 1
- Install Powershell 6 support? HOT 2
- Add: Delay windows reboot HOT 3
- Deprecation messsages from windows cookbook
- Dependency Dashboard
- Fix CI tests
- powershell5 not installing... image file did not contain a resource section HOT 9
- Undefined node attribute or method `<' on `node' HOT 2
- Clarify use of installation recipes in the README HOT 1
- Failure to install WMF5
- (low pri) deprecated warning HOT 2
- Is there a way to suppress the reboot handler exception (via attribute?) HOT 5
- Powershell cookbook on the supermarket fails with the latest version of the windows cookbook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershell.