Skip to content
Russell Seymour edited this page Jan 8, 2015 · 7 revisions

Introduction

POSHChef Icon POSHChef has been built as a native chef client on Windows using PowerShell. Although support for Windows platforms in Chef is continually expanding the way it is implemented means that developers and system administrators need to understand Ruby in order to correctly write recipes and cookbooks. In addition it is not easy to test any PowerShell code that has been written as it is passed to a Chef recource, which is running under Ruby, and then it is executed using a call to 'powershell.exe'.

So POSHChef was developed. It had 3 main goals:

  • Must be interoperable with Chef and community cookbooks
  • Use PowerShell as the main language so that testing can be achieved through tools such as Pester
  • Utilise Microsoft Desired State Configuration (DSC) to configure machines

POSHChef is installed as a module and has a dependency on another module called 'Logging'. This latter module is used to log messages to different providers (such as Screen, Log Files, Event Viewer).

The accompanying cookbook, called POSHChef_cookbook, is necessary to get the most out POSHChef in terms of running POSHChef as a scheduled task. It also contains various examples of the concepts and ideas that are discussed in this wiki.

Clone this wiki locally