Created
March 4, 2015 06:35
-
-
Save double-z/6ab698da400972534657 to your computer and use it in GitHub Desktop.
chef-provisioning-ssh with winrm support
This file contains hidden or 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
with_driver 'ssh' | |
with_chef_server "https://api.opscode.com/organizations/double-z", | |
:client_name => Chef::Config[:node_name], | |
:signing_key_filename => Chef::Config[:client_key] | |
machine "winone" do | |
action [:ready, :setup, :converge] | |
machine_options :transport_options => { | |
'is_windows' => true, | |
'host' => '192.168.33.100', | |
'username' => 'vagrant', | |
'password' => 'vagrant' | |
} | |
recipe 'windows' | |
converge true | |
end | |
################################### | |
################################### | |
remdouble-z01 in ~/chef/code/provisioning/chef-provisioning-ssh/test | |
± |winrm-support U:2 ?:11 ✗| → chef-client -z -o vagrant::test_windows | |
[2015-03-03T22:18:16-08:00] INFO: Started chef-zero at http://localhost:8889 with repository at /Users/double-z/chef/code/provisioning/chef-provisioning-ssh/test | |
One version per cookbook | |
[2015-03-03T22:18:16-08:00] INFO: Forking chef instance to converge... | |
Starting Chef Client, version 12.0.3 | |
[2015-03-03T22:18:16-08:00] INFO: *** Chef 12.0.3 *** | |
[2015-03-03T22:18:16-08:00] INFO: Chef-client pid: 78734 | |
[2015-03-03T22:18:19-08:00] WARN: Run List override has been provided. | |
[2015-03-03T22:18:19-08:00] WARN: Original Run List: [] | |
[2015-03-03T22:18:19-08:00] WARN: Overridden Run List: [recipe[vagrant::test_windows]] | |
[2015-03-03T22:18:19-08:00] INFO: Run List is [recipe[vagrant::test_windows]] | |
[2015-03-03T22:18:19-08:00] INFO: Run List expands to [vagrant::test_windows] | |
[2015-03-03T22:18:19-08:00] INFO: Starting Chef Run for double-z | |
[2015-03-03T22:18:19-08:00] INFO: Running start handlers | |
[2015-03-03T22:18:19-08:00] INFO: Start handlers complete. | |
[2015-03-03T22:18:19-08:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/double-z/runs | |
resolving cookbooks for run list: ["vagrant::test_windows"] | |
[2015-03-03T22:18:19-08:00] INFO: Loading cookbooks [[email protected]] | |
[2015-03-03T22:18:19-08:00] INFO: Skipping removal of obsoleted cookbooks from the cache | |
Synchronizing Cookbooks: | |
- vagrant | |
Compiling Cookbooks... | |
Recipe: vagrant::test_windows | |
* chef_gem[chef-provisioning-ssh] action install[2015-03-03T22:18:19-08:00] INFO: Processing chef_gem[chef-provisioning-ssh] action install (vagrant::test_windows line 1) | |
WARN: Unresolved specs during Gem::Specification.reset: | |
nokogiri (>= 1.4.0, ~> 1.5) | |
WARN: Clearing out unresolved specs. | |
Please report a bug if this causes problems. | |
(up to date) | |
Converging 2 resources | |
* chef_gem[chef-provisioning-ssh] action install[2015-03-03T22:18:20-08:00] INFO: Processing chef_gem[chef-provisioning-ssh] action install (vagrant::test_windows line 1) | |
(up to date) | |
* machine[winone] action ready[2015-03-03T22:18:20-08:00] INFO: Processing machine[winone] action ready (vagrant::test_windows line 24) | |
[2015-03-03T22:18:20-08:00] INFO: HTTP Request Returned 404 Object Not Found: error | |
[2015-03-03T22:18:20-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 64) | |
[2015-03-03T22:18:24-08:00] INFO: HTTP Request Returned 404 Object Not Found: error | |
- create node winone at https://api.opscode.com/organizations/double-z | |
- add normal.tags = nil | |
- add normal.chef_provisioning = {"location"=>{"driver_url"=>"ssh:/Users/double-z/chef/code/provisioning/chef-provisioning-ssh/test/.chef/provisioning/ssh", "driver_version"=>"0.0.3", "target_name"=>"winone", "ssh_file_path"=>"/Users/double-z/chef/code/provisioning/chef-provisioning-ssh/test/.chef/provisioning/ssh/winone.json", "allocated_at"=>"2015-03-04 06:18:20 UTC"}} | |
- update run_list from [] to ["recipe[windows]"][2015-03-03T22:18:24-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 64) | |
- update node winone at https://api.opscode.com/organizations/double-z | |
- update normal.chef_provisioning.location.allocated_at from "2015-03-04 06:18:20 UTC" to "2015-03-04 06:18:24 UTC" | |
* machine[winone] action setup[2015-03-03T22:18:25-08:00] INFO: Processing machine[winone] action setup (vagrant::test_windows line 24) | |
[2015-03-03T22:18:26-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 64) | |
- update node winone at https://api.opscode.com/organizations/double-z | |
- update normal.chef_provisioning.location.allocated_at from "2015-03-04 06:18:24 UTC" to "2015-03-04 06:18:26 UTC"[2015-03-03T22:18:27-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 64) | |
- update node winone at https://api.opscode.com/organizations/double-z | |
- update normal.chef_provisioning.location.allocated_at from "2015-03-04 06:18:26 UTC" to "2015-03-04 06:18:27 UTC"[2015-03-03T22:18:30-08:00] INFO: Processing private_key[in_memory] action create (basic_chef_client::block line 82) | |
- generate private key (2048 bits) | |
- create directory C:\chef on winone | |
- write file C:\chef\client.pem on winone[2015-03-03T22:18:32-08:00] INFO: Processing chef_client[winone] action create (basic_chef_client::block line 134) | |
[2015-03-03T22:18:35-08:00] INFO: HTTP Request Returned 404 Object Not Found: error | |
- create client winone at clients | |
- add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCgKCAQEAtJ04SBDEQpiYGSNcNG5d\ndeBchnd4/Yut0SjC63cFek4NY8/EOE033ssQ6OcGyce1w42BVVQKsPEKPZZ/NcK5\n+Fl2bTO9aCnH1DXB8Jy+iotmZ6lmE1QvWZcDmzmINIvKRuBWdz7XesLZo2SSqr6LK\n57KpWu7DW4LQ4krV5OftqV+IM+TUAh/XzB/BZnq1QpbnkkUaEwwdfZoUS2P4gIdV\n8NtAJgf1iBYfBbVJCraoCAGOqJSlmyJ6cMWTNE40GbiGPrh5iBk0+N6HDvbUEAO+\n6CTpnLFJDZEMAKTU+3lY42XjPlNX5RdmDzHmG7/nRl5VIaP67FNOMYMZrHetSNx9\nVwIDAQAB\n-----END PUBLIC KEY-----\n"[2015-03-03T22:18:36-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 145) | |
- Add winone to client read ACLs | |
- Add winone to client update ACLs | |
- write file C:\chef\client.rb on winone[2015-03-03T22:18:47-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 64) | |
* machine[winone] action converge[2015-03-03T22:18:48-08:00] INFO: Processing machine[winone] action converge (vagrant::test_windows line 24) | |
[2015-03-03T22:18:49-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 64) | |
- update node winone at https://api.opscode.com/organizations/double-z | |
- update normal.chef_provisioning.location.allocated_at from "2015-03-04 06:18:27 UTC" to "2015-03-04 06:18:49 UTC"[2015-03-03T22:18:50-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 64) | |
- update node winone at https://api.opscode.com/organizations/double-z | |
- update normal.chef_provisioning.location.allocated_at from "2015-03-04 06:18:49 UTC" to "2015-03-04 06:18:50 UTC"[2015-03-03T22:18:52-08:00] INFO: Processing chef_client[winone] action create (basic_chef_client::block line 134) | |
[2015-03-03T22:18:52-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 145) | |
- write file C:\chef\client.rb on winone[2015-03-03T22:18:58-08:00] INFO: Processing chef_node[winone] action create (basic_chef_client::block line 64) | |
[2015-03-03T22:18:58-08:00] INFO: Converging winone because 'converge true' is set ... | |
[winone] [2015-03-03T22:19:04-08:00] INFO: *** Chef 11.18.0.rc.1 *** | |
[2015-03-03T22:19:04-08:00] INFO: Chef-client pid: 2600 | |
[2015-03-03T22:19:12-08:00] INFO: Run List is [recipe[windows]] | |
[2015-03-03T22:19:12-08:00] INFO: Run List expands to [windows] | |
[2015-03-03T22:19:12-08:00] INFO: Starting Chef Run for winone | |
[2015-03-03T22:19:12-08:00] INFO: Running start handlers | |
[2015-03-03T22:19:12-08:00] INFO: Start handlers complete. | |
[2015-03-03T22:19:15-08:00] INFO: Loading cookbooks [[email protected], [email protected]] | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/printer.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/path.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/font.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/reboot.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/printer_port.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/pagefile.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/auto_run.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/batch.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/registry.rb in the cache. | |
[2015-03-03T22:19:16-08:00] INFO: Storing updated cookbooks/windows/resources/feature.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/resources/zipfile.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/resources/shortcut.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/providers/batch.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/providers/auto_run.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/providers/feature_servermanagercmd.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/providers/font.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/resources/task.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/providers/pagefile.rb in the cache. | |
[2015-03-03T22:19:17-08:00] INFO: Storing updated cookbooks/windows/providers/feature_powershell.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/feature_dism.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/reboot.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/printer.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/printer_port.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/path.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/shortcut.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/task.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/registry.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/providers/zipfile.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/recipes/default.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/recipes/reboot_handler.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/libraries/feature_base.rb in the cache. | |
[2015-03-03T22:19:18-08:00] INFO: Storing updated cookbooks/windows/libraries/powershell_helper.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/matchers.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/powershell_out.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/windows_architecture_helper.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/registry_helper.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/version.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/windows_helper.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/windows_privileged.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/windows_package.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/libraries/wmi_helper.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/attributes/default.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/CHANGELOG.md in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/metadata.json in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/chef_handler/providers/default.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/chef_handler/resources/default.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/windows/README.md in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/chef_handler/recipes/default.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/chef_handler/recipes/json_file.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/chef_handler/libraries/matchers.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/chef_handler/attributes/default.rb in the cache. | |
[2015-03-03T22:19:19-08:00] INFO: Storing updated cookbooks/chef_handler/metadata.json in the cache. | |
[2015-03-03T22:19:20-08:00] INFO: Storing updated cookbooks/chef_handler/CHANGELOG.md in the cache. | |
[2015-03-03T22:19:20-08:00] INFO: Storing updated cookbooks/chef_handler/README.md in the cache. | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[win32-api] action install (windows::default line 23) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[win32-service] action install (windows::default line 23) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[windows-api] action install (windows::default line 31) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[windows-pr] action install (windows::default line 31) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[win32-dir] action install (windows::default line 31) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[win32-event] action install (windows::default line 31) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[win32-mutex] action install (windows::default line 31) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[win32-api] action install (windows::default line 23) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[win32-service] action install (windows::default line 23) | |
[2015-03-03T22:19:20-08:00] INFO: Processing chef_gem[windows-api] action install (windows::default line 31) | |
[2015-03-03T22:19:21-08:00] INFO: Processing chef_gem[windows-pr] action install (windows::default line 31) | |
[2015-03-03T22:19:21-08:00] INFO: Processing chef_gem[win32-dir] action install (windows::default line 31) | |
[2015-03-03T22:19:21-08:00] INFO: Processing chef_gem[win32-event] action install (windows::default line 31) | |
[2015-03-03T22:19:21-08:00] INFO: Processing chef_gem[win32-mutex] action install (windows::default line 31) | |
[2015-03-03T22:19:22-08:00] INFO: Chef Run complete in 9.679512 seconds | |
[2015-03-03T22:19:22-08:00] INFO: Running report handlers | |
[2015-03-03T22:19:22-08:00] INFO: Report handlers complete | |
[2015-03-03T22:19:22-08:00] INFO: Sending resource update report (run-id: 3cb2f1be-e3ca-4c6d-af70-8f6650c076e6) | |
- run 'chef-client -l info' on winone | |
[2015-03-03T22:19:22-08:00] WARN: Skipping final node save because override_runlist was given | |
[2015-03-03T22:19:22-08:00] INFO: Chef Run complete in 63.27698 seconds | |
[2015-03-03T22:19:22-08:00] INFO: Skipping removal of unused files from the cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment