Skip to content

Instantly share code, notes, and snippets.

@izharikov
Created August 7, 2019 16:03
Show Gist options
  • Save izharikov/07a3b2ff9e26f44c0ecfa2ba697f794e to your computer and use it in GitHub Desktop.
Save izharikov/07a3b2ff9e26f44c0ecfa2ba697f794e to your computer and use it in GitHub Desktop.
Prepare Sitecore Dev VM

After VM Created

  1. Start Powershell as administrator
  2. Run the following code:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

mkdir C:\packer-chef -ErrorAction Continue
mkdir C:\tmp -ErrorAction Continue
mkdir C:\tmp\packer-chef-solo -ErrorAction Continue
mkdir C:\tmp\packer-chef-solo\cache -ErrorAction Continue

Write-Host "Installing Chef Client"
# We might want to bump it later. Testing required
choco install chef-client -y --version 13.4.24 #--version 15.0.300 --force
[Environment]::SetEnvironmentVariable("CHEF_LICENSE", "accept-silent", "Machine")

Write-Host "Installing 7zip"
choco install 7zip.portable -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment