forked from inspec/train-winrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
26 lines (21 loc) · 921 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "chef/windows-server-2016-standard"
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 1
end
# config.vm.provision "shell", name: "install-chocolatey", inline: <<-SHELL
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# choco install chefdk -y
# SHELL
# # Using separate provision block to make sure path is set
# config.vm.provision "shell", name: "chef shell-init", inline: <<-SHELL
# chef shell-init powershell >> C:\\Users\\vagrant\\Documents\\WindowsPowerShell\\Microsoft.PowerShell_profile.ps1
# SHELL
# Using separate provision block to make sure path is set
config.vm.provision "shell", name: "enable winrm", inline: <<-SHELL
winrm quickconfig -q
SHELL
end