Skip to content

Instantly share code, notes, and snippets.

View jugatsu's full-sized avatar

Anton Kvashenkin jugatsu

View GitHub Profile
Starting Chef Client, version 12.19.36
[2017-03-31T10:43:00-07:00] INFO: *** Chef 12.19.36 ***
[2017-03-31T10:43:00-07:00] INFO: Platform: i386-mingw32
[2017-03-31T10:43:00-07:00] INFO: Chef-client pid: 1996
Creating a new client identity for tasks-windows-hyper-v-2016 using the validator key.
[2017-03-31T10:43:45-07:00] INFO: Client key C:\Users\vagrant\AppData\Local\Temp\kitchen\client.pem is not present - registering
[2017-03-31T10:43:46-07:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/tasks-windows-hyper-v-2016
[2017-03-31T10:43:46-07:00] INFO: Setting the run_list to ["recipe[test::default]"] from CLI options
[2017-03-31T10:43:46-07:00] INFO: Run List is [recipe[test::default]]
[2017-03-31T10:43:46-07:00] INFO: Run List expands to [test::default]
Generated at 2017-03-31 10:43:47 -0700
Chef::Exceptions::Win32APIError: windows_user[test] (test::default line 7) had an error: Chef::Exceptions::Win32APIError: Не найдено имя группы.
---- Begin Win32 API output ----
System Error Code: 2220
System Error Message: Не найдено имя группы.
---- End Win32 API output ----
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36-universal-mingw32/lib/chef/win32/error.rb:81:in `raise!'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36-universal-mingw32/lib/chef/win32/net.rb:204:in `net_local_group_add_member'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36-universal-mingw32/lib/chef/util/windows/net_user.rb:115:in `add'
---
driver:
name: vagrant
linked_clone: true
provisioner:
name: chef_zero
require_chef_omnibus: true
always_update_cookbooks: true
retry_on_exit_code:
Function Install-PSWindowsUpdate {
$webDeployURL="https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc/file/41459/43/PSWindowsUpdate.zip"
$zipPath="$($env:USERPROFILE)\Downloads\PSWindowsUpdate.zip"
$targetDir="C:\Windows\System32\WindowsPowerShell\v1.0\Modules\"
$explorerExe = "$env:windir\explorer.exe"
$FileExists = Test-Path $explorerExe
Write-Output "Starting PSWindowsUpdate module installation`n"
virtualbox-ovf: A system shutdown is in progress.(1115)
2017/03/14 10:28:04 ui: virtualbox-ovf: A system shutdown is in progress.(1115)
2017/03/14 10:28:04 packer: 2017/03/14 10:28:04 Reboot already in progress, waiting...
2017/03/14 10:28:14 packer: 2017/03/14 10:28:14 Check if machine is rebooting...
2017/03/14 10:28:16 packer: 2017/03/14 10:28:16 [INFO] starting remote command: shutdown.exe -f -r -t 60
2017/03/14 10:28:23 ui: virtualbox-ovf: A system shutdown is in progress.(1115)
virtualbox-ovf: A system shutdown is in progress.(1115)
2017/03/14 10:28:23 packer: 2017/03/14 10:28:23 [INFO] command 'shutdown.exe -f -r -t 60' exited with code: 1115
2017/03/14 10:28:23 packer: 2017/03/14 10:28:23 [INFO] RPC endpoint: Communicator ended with: 1115
2017/03/14 10:28:23 [INFO] 0 bytes written for 'stdout'
---
- hosts: windows
gather_facts: true
tasks:
- name: Ensure Chef Client package is present.
win_package:
name: Chef Client
path: https://packages.chef.io/files/stable/chef/12.17.44/windows/2008r2/chef-client-12.17.44-1-x64.msi
Generated at 2016-12-22 14:19:33 +0300
Encoding::UndefinedConversionError: powershell_script[Install Chocolatey] (chocolatey::default line 36) had an error: Encoding::UndefinedConversionError: "\xEF" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/win32-process-0.8.3/lib/win32/process/helper.rb:5:in `encode'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/win32-process-0.8.3/lib/win32/process/helper.rb:5:in `to_wide_string'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7-universal-mingw32/lib/mixlib/shellout/windows/core_ext.rb:227:in `create'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7-universal-mingw32/lib/mixlib/shellout/windows.rb:80:in `run_command'
C:/opscode/chef/embedded/lib/ruby/gems/2.3.0/gems/mixlib-shellout-2.2.7-universal-mingw32/lib/mixlib/shellout.rb:259:in `run_command'
C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/chocolatey/libraries/helpers.rb:29:in `chocolatey_i
ak@ak-pc:~/code/chef/cookbooks/gf_oil$ kitchen converge -l debug
-----> Starting Kitchen (v1.14.2)
D [Vagrant command] BEGIN (vagrant --version)
D [Vagrant command] END (0m0.40s)
D [Vagrant command] BEGIN (vagrant plugin list)
D [Vagrant command] END (0m1.33s)
D Berksfile found at /home/ak/code/chef/cookbooks/gf_oil/Berksfile, loading Berkshelf
D Berkshelf 5.2.0 library loaded
D winrm requested, loading winrm gem (["~> 2.0"])
D winrm is loaded.
---
driver:
name: vagrant
provisioner:
name: chef_zero
verifier:
name: inspec
D [WinRM] Processing output
Starting Chef Client, version 12.17.44
D [WinRM] Waiting for output...
D [WinRM] Processing output
resolving cookbooks for run list: ["gf_adds::test"]
Synchronizing Cookbooks:
- gf_adds (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources