Hi -
I’m trying to set up a chef machine working through Chef Rally. but the install command fails as below
PS C:\Users\Administrator> . { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -project chefdk -channel
stable -version 2.5.3
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 0.0 Omnitruck {Get-ProjectMetadata, Install-Project, install}
There was an error:
Exception calling "DownloadString" with "1" argument(s): "The remote name could not be resolved: 'omnitruck.chef
.io'"
The remote name could not be resolved: 'omnitruck.chef.io'
Failed to download from https://omnitruck.chef.io/stable/chefdk/metadata?v=2.5.3&p=windows&pv=2012r2&m=x86_64.
At line:70 char:5
+ throw "Failed to download from $uri."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Failed to downl...012r2&m=x86_64.:String) [], RuntimeException
+ FullyQualifiedErrorId : Failed to download from https://omnitruck.chef.io/stable/chefdk/metadata?v=2.5.3&p=windo
ws&pv=2012r2&m=x86_64.
I think I’ve resolved it by installing chocolatey. I am not sure why it works via chocolatey but not the command provided? But was thinking perhaps you could include the chocolatey install steps in chef rally?
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Choco Install ChefDK
Choco Install VSCode
thought this might help someone else getting started.