This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cookbook Name:: windows | |
# Recipe:: resolver | |
# | |
# Copyright 2011 | |
# | |
# All rights reserved | |
# Set Resolver | |
powershell "Set Resolver" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
******************************************************************************** | |
*RS> Converging **** | |
*RS> Run list: development::setDNS | |
*RS> Starting at Mon Apr 11 05:00:18 +0100 2011 | |
05:00:18: Starting Chef Solo Run | |
*ERROR> Chef converge failed | |
*ERROR> An external command returned an error during the execution of Chef: | |
"powershell -command "&{set-executionpolicy -executionPolicy RemoteSigned -Scope Process; import-module C:\PROGRA~1\RIGHTS~1\SandBox\RIGHT_~1\chef\lib\windows\bin\ChefNodeCmdlet.dll; &C:/Users/RIGHTS~1/AppData/Local/Temp/chef-powershell-06D9AC00-8D64-4213-A46A-611FBAFB4426/powershell_provider_source.ps1; if ($NULL -eq $LastExitCode) { $LastExitCode = 0 }; if ((0 -eq $LastExitCode) -and ($Error.Count -gt 0)) { $RS_message = 'Script exited successfully but $Error contained '+($Error.Count)+' error(s).'; Write-warning $RS_message; $LastExitCode = 1 }; exit $LastExitCode}"" returned 1, expected 0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: development | |
# Recipe:: setDNS | |
# | |
# Copyright 2011, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
powershell "Set Host Resolvers" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cookbook Name:: development | |
# Recipe:: setDNS | |
# | |
# Copyright 2011, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
powershell "Set Host Resolvers" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: development | |
# Recipe:: setDNS | |
# | |
# Copyright 2011, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
powershell "Set Host Resolvers" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: development | |
# Recipe:: setDNS | |
# | |
# Copyright 2011, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
powershell "Set Host Resolvers" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: development | |
# Recipe:: renameComputer | |
# | |
# Copyright 2011, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
powershell "Rename Windows Computer" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: development | |
# Recipe:: renameComputer | |
# | |
# Copyright 2011, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
powershell "Join Active Directory Domain" do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: development | |
# Recipe:: renameComputer | |
# | |
# Copyright 2011, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
powershell "Join Active Directory Domain" do |