Twog #1: Kitchen converge fails for .NET framework/s without winrm elevation

I wanted to start an occasional series of very short posts addressing some specific methodological or practical issue, to share knowledge which I hadn't found widely publicised. Longer than a Twitter post, shorter than a blog entry, I'll call them "twogs" (though "blitters" would be another possibility).

So: I was testing a number of cookbooks with kitchen. The.NET 4.6.1 framework install consistently failed with a 16389 return code. Since this was a new recipe, I suspected I was passing the wrong flags somewhere -- a view substantiated by.

Unfortunately, this didn't resolve matters, and neither did the suggestion to extract and repackage the.NET framework redistributable. And as for the 16389 code -- it's one I hadn't previously encountered.

And then by chance I found the solution to the problem here.

Until 1.8.0, test-kitchen's winrm transport didn't support elevation, and it was this that was causing the issue. The Chef team even acknowledged that this addressed the very problem I'd been encountering with the.NET framework install, but there doesn't seem to be much visibility of either the problem or its solution -- as noted here and then here to get the kitchen winrm transport documentation updated.

In summary, here's what you need to do:

1. Install test-kitchen 1.8.0 or above

2. Ensure you have the winrm-elevated gem installed (chef gem install winrm-elevated)

3. Add an "elevated: true" to your winrm transport provider in your.kitchen.yml file

This article is part of the GWB Archives. Original Author: Alex Hildyard

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.