Skip to content

Commit 2135e57

Browse files
author
Roth, Jason
committed
adding chef workstation
1 parent 5039d45 commit 2135e57

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Build_Chef_Workstation.ps1

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Setup my execution policy for both the 64 bit and 32 bit shells
2+
set-executionpolicy remotesigned
3+
start-job -runas32 {set-executionpolicy remotesigned} | receive-job -wait
4+
5+
# Install the latest stable ChefDK
6+
invoke-restmethod 'https://omnitruck.chef.io/install.ps1' | iex
7+
install-project chefdk -verbose
8+
9+
# Install Chocolatey
10+
invoke-expression ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
11+
choco feature enable -n allowGlobalConfirmation
12+
13+
# Get a basic setup recipe
14+
invoke-restmethod 'https://gist.github.com/jasonroth/55516bd4f19adb769572d0e2886df123/raw' | out-file -encoding ascii -FilePath c:/chef_workstation.rb
15+
16+
# Use Chef Apply to setup
17+
chef-apply c:/chef_workstation.rb

0 commit comments

Comments
 (0)