We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5039d45 commit 2135e57Copy full SHA for 2135e57
Build_Chef_Workstation.ps1
@@ -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