So i just spent the better part of the past two days trying to figure out why my brandy new Chef 12.0.7 Server wouldn’t play with uploading a cookbook.  Turns out that I needed to add the hostname and FQDN to the loopback definition in the hosts file of my server (Ubuntu 14.04 AMI from AWS).  Once that was in place my chef-server-ctl test runs went from over 2 hrs to under 2 minutes.   GGGRRRRR….I hate linux, but I learn something new every day.


So that i don’t forget….

When trying to add Credential functionality to a PowerShell script so that you can take credentials from the user to pass through to a cmdlet you need to add an additional decoration to the Parameter definition like this:

[parameter(Mandatory=$false)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.CredentialAttribute()]
$Credential=$null

A big thanks to Dave Wyatt for helping me with this over at the PowerShell.org forums


So this is the first post to my new WordPress blog on technology and woodworking.  Hopefully I will keep it up and this will become a long living tome of information on both topics.




The WordPress.com Blog

The latest news on WordPress.com and the WordPress community.