Giter Site home page Giter Site logo

Comments (11)

juliandunn avatar juliandunn commented on June 11, 2024

Hmm... I've had it just reboot the box by itself after it installs. Did that not happen for you?

from powershell.

palfrey avatar palfrey commented on June 11, 2024

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.

christrotter avatar christrotter commented on June 11, 2024

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.

siddheshwar-more avatar siddheshwar-more commented on June 11, 2024

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.

palfrey avatar palfrey commented on June 11, 2024

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.

christrotter avatar christrotter commented on June 11, 2024

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.

NimishaS avatar NimishaS commented on June 11, 2024

@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.

tjnicholas avatar tjnicholas commented on June 11, 2024

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.

NimishaS avatar NimishaS commented on June 11, 2024

@tjnicholas , yes we'll release the changes.

from powershell.

NimishaS avatar NimishaS commented on June 11, 2024

@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.

tas50 avatar tas50 commented on June 11, 2024

Closing this out since the commit was merged. We'll try to get a release out shortly.

from powershell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.