puppetlabs/tasks-hands-on-lab

Installing puppet agent task fails on Windows vagrant box

Opened this issue · 1 comments

Hi,

When running the bolt task run puppet_agent::install task on the windows Vagrant box (mwrock/WindowsNano) the following error occurs:

The task failed with exit code 1:
  $private:tempArgs = Get-ContentAsJson (
   : System.Management.Automation.PSArgumentException: Cannot find type [system.net.webclient]: verify that the assembly containing this type is loaded.
     at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
      + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException

That's expected, the puppet-agent package is an MSI (which cannot be installed on Microsoft Nano Server). Can you point to the portion of the lab that suggests doing that?