chef 13.0.118 → 13.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -27
  3. data/VERSION +1 -1
  4. data/acceptance/.bundle/config +2 -0
  5. data/acceptance/basics/test/integration/chef-current-install/serverspec/chef_client_spec.rb +1 -1
  6. data/acceptance/bin/aws.rb +17 -0
  7. data/acceptance/bin/berks +17 -0
  8. data/acceptance/bin/bundler +17 -0
  9. data/acceptance/bin/chef-acceptance +17 -0
  10. data/acceptance/bin/coderay +17 -0
  11. data/acceptance/bin/erubis +17 -0
  12. data/acceptance/bin/htmldiff +17 -0
  13. data/acceptance/bin/httpclient +17 -0
  14. data/acceptance/bin/inspec +17 -0
  15. data/acceptance/bin/kitchen +17 -0
  16. data/acceptance/bin/ldiff +17 -0
  17. data/acceptance/bin/nokogiri +17 -0
  18. data/acceptance/bin/pry +17 -0
  19. data/acceptance/bin/rake +17 -0
  20. data/acceptance/bin/rspec +17 -0
  21. data/acceptance/bin/rwinrm +17 -0
  22. data/acceptance/bin/rwinrmcp +17 -0
  23. data/acceptance/bin/safe_yaml +17 -0
  24. data/acceptance/bin/thor +17 -0
  25. data/acceptance/fips/.kitchen/fips-unit-functional-centos-6.yml +7 -0
  26. data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  27. data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  28. data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/id +1 -0
  29. data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  30. data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/private_key +27 -0
  31. data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  32. data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/Vagrantfile +11 -0
  33. data/acceptance/fips/.kitchen/logs/fips-integration-centos-6.log +0 -0
  34. data/acceptance/fips/.kitchen/logs/fips-integration-windows-2012r2.log +0 -0
  35. data/acceptance/fips/.kitchen/logs/fips-unit-functional-centos-6.log +80 -0
  36. data/acceptance/fips/.kitchen/logs/kitchen.log +4 -0
  37. data/chef.gemspec +1 -1
  38. data/lib/chef/application/client.rb +1 -1
  39. data/lib/chef/application/knife.rb +1 -1
  40. data/lib/chef/application/solo.rb +1 -0
  41. data/lib/chef/cookbook/remote_file_vendor.rb +1 -1
  42. data/lib/chef/cookbook/synchronizer.rb +20 -7
  43. data/lib/chef/cookbook_manifest.rb +8 -0
  44. data/lib/chef/deprecated.rb +10 -0
  45. data/lib/chef/knife/client_key_create.rb +3 -0
  46. data/lib/chef/knife/client_key_delete.rb +1 -0
  47. data/lib/chef/knife/client_key_edit.rb +1 -0
  48. data/lib/chef/knife/client_key_list.rb +1 -0
  49. data/lib/chef/knife/client_key_show.rb +1 -0
  50. data/lib/chef/knife/user_key_create.rb +1 -0
  51. data/lib/chef/knife/user_key_delete.rb +1 -0
  52. data/lib/chef/knife/user_key_edit.rb +1 -0
  53. data/lib/chef/knife/user_key_list.rb +1 -0
  54. data/lib/chef/knife/user_key_show.rb +1 -0
  55. data/lib/chef/local_mode.rb +1 -0
  56. data/lib/chef/mixin/which.rb +1 -1
  57. data/lib/chef/platform/service_helpers.rb +1 -1
  58. data/lib/chef/provider/apt_repository.rb +7 -4
  59. data/lib/chef/provider/execute.rb +1 -1
  60. data/lib/chef/provider/package/cab.rb +18 -13
  61. data/lib/chef/provider/package/msu.rb +2 -2
  62. data/lib/chef/provider/package/rubygems.rb +3 -5
  63. data/lib/chef/provider/user/aix.rb +1 -1
  64. data/lib/chef/provider/user/windows.rb +1 -1
  65. data/lib/chef/providers.rb +0 -1
  66. data/lib/chef/resource/breakpoint.rb +12 -0
  67. data/lib/chef/resource/env.rb +3 -35
  68. data/lib/chef/resource/route.rb +13 -107
  69. data/lib/chef/resource/service.rb +5 -5
  70. data/lib/chef/resource/user.rb +6 -4
  71. data/lib/chef/resource/windows_task.rb +3 -3
  72. data/lib/chef/run_context.rb +7 -0
  73. data/lib/chef/runner.rb +2 -1
  74. data/lib/chef/version.rb +1 -1
  75. data/spec/functional/resource/chocolatey_package_spec.rb +1 -8
  76. data/spec/functional/resource/registry_spec.rb +1 -1
  77. data/spec/functional/resource/user/useradd_spec.rb +1 -1
  78. data/spec/functional/resource/windows_task_spec.rb +459 -0
  79. data/spec/integration/client/client_spec.rb +32 -0
  80. data/spec/spec_helper.rb +2 -0
  81. data/spec/support/platform_helpers.rb +7 -0
  82. data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +3 -3
  83. data/spec/unit/cookbook/synchronizer_spec.rb +5 -4
  84. data/spec/unit/cookbook_manifest_spec.rb +17 -2
  85. data/spec/unit/provider/env_spec.rb +2 -2
  86. data/spec/unit/provider/group/dscl_spec.rb +2 -2
  87. data/spec/unit/provider/group/pw_spec.rb +3 -3
  88. data/spec/unit/provider/group/usermod_spec.rb +6 -6
  89. data/spec/unit/provider/group/windows_spec.rb +3 -3
  90. data/spec/unit/provider/group_spec.rb +4 -4
  91. data/spec/unit/provider/http_request_spec.rb +1 -1
  92. data/spec/unit/provider/package/aix_spec.rb +2 -2
  93. data/spec/unit/provider/package/apt_spec.rb +2 -2
  94. data/spec/unit/provider/package/ips_spec.rb +2 -2
  95. data/spec/unit/provider/package/macports_spec.rb +4 -4
  96. data/spec/unit/provider/package/pacman_spec.rb +2 -2
  97. data/spec/unit/provider/package/rubygems_spec.rb +14 -11
  98. data/spec/unit/provider/package/yum_spec.rb +10 -10
  99. data/spec/unit/provider/route_spec.rb +7 -7
  100. data/spec/unit/provider/service/arch_service_spec.rb +6 -6
  101. data/spec/unit/provider/service/init_service_spec.rb +2 -2
  102. data/spec/unit/provider/service/invokercd_service_spec.rb +1 -1
  103. data/spec/unit/provider/service/simple_service_spec.rb +1 -1
  104. data/spec/unit/provider/service/upstart_service_spec.rb +5 -5
  105. data/spec/unit/provider/service_spec.rb +1 -1
  106. data/spec/unit/provider/user/aix_spec.rb +97 -0
  107. data/spec/unit/provider/user/pw_spec.rb +5 -5
  108. data/spec/unit/provider/user_spec.rb +1 -1
  109. data/spec/unit/provider_resolver_spec.rb +11 -11
  110. data/spec/unit/resource/breakpoint_spec.rb +28 -11
  111. data/spec/unit/resource/windows_task_spec.rb +2 -2
  112. data/spec/unit/runner_spec.rb +4 -0
  113. data/tasks/bin/run_external_test +20 -42
  114. data/tasks/bundle.rb +0 -8
  115. data/tasks/changelog.rb +5 -1
  116. data/tasks/dependencies.rb +4 -2
  117. metadata +80 -19
  118. data/acceptance/fips/.acceptance/acceptance-cookbook/.gitignore +0 -2
  119. data/acceptance/fips/.acceptance/acceptance-cookbook/metadata.rb +0 -2
  120. data/acceptance/fips/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
  121. data/acceptance/fips/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
  122. data/acceptance/fips/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
  123. data/acceptance/fips/.kitchen.yml +0 -8
  124. data/acceptance/fips/test/integration/fips-integration/serverspec/Gemfile +0 -9
  125. data/acceptance/fips/test/integration/fips-integration/serverspec/fips-integration_spec.rb +0 -52
  126. data/acceptance/fips/test/integration/fips-unit-functional/serverspec/Gemfile +0 -7
  127. data/acceptance/fips/test/integration/fips-unit-functional/serverspec/fips-unit-functional_spec.rb +0 -56
  128. data/lib/chef/provider/breakpoint.rb +0 -38
  129. data/spec/unit/provider/breakpoint_spec.rb +0 -53
  130. data/tasks/bin/create-override-gemfile +0 -110
  131. data/tasks/gemfile_util.rb +0 -390
@@ -0,0 +1,7 @@
1
+ ---
2
+ hostname: 127.0.0.1
3
+ port: '2202'
4
+ username: vagrant
5
+ ssh_key: "/Users/thom/work/chef-branches/acceptance/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/private_key"
6
+ last_action: setup
7
+ last_error: Kitchen::ActionFailed
@@ -0,0 +1,27 @@
1
+ -----BEGIN RSA PRIVATE KEY-----
2
+ MIIEowIBAAKCAQEAzyT6pqNAatxWjoU54Ecok1Kgd74ND3Cdnf72Ib8JA9KC4Vbc
3
+ 3tRNZEfd+2usvoFFmaf6F1wGUFDbbgHQxQUbqUsr0daLcgLUM24nZzdxfOE7c/9D
4
+ jHGAYA3uEFdFrqvF2tsKN+SszJ+u0GyDPNwP3ne9XLZNhAhn9ululGIG+rln2u3I
5
+ lStfQzxmdyd1bP0gkBlQgiMK5ipghdjWSc8R1maAmhqs1lJAVCzT9pI2bStD93a2
6
+ eokcncJSx9DRbnLvBBV8+KshOK8qfVrLLb/22E7nbI3PTHCJX72IzDWIDb9zxLF+
7
+ BF0ybkZrhCQAIUmkm80tkwnkPh4d5lxW0ZI1AQIDAQABAoIBAHd8IiT66A572GXP
8
+ TWokQbBxKeTIOKpeUFyxk/I1SpLs29f1jePu3FFq7w22t2cQFECk1yqgR3gOm/Qh
9
+ kfYDk0gc90LMGZWDMjoUYSA1p/3bwbqQVLtvQRinEFpWrPgrVy59yLAi9NX3ihPp
10
+ c+4oFfNCaHVRJvdxDd8sGT/4J4R5YTsIPtURJ8oj2opS5gkiGXPdIN9ftzjFpU1/
11
+ /cxKpnLMQFuf+cyr7fBFX6HJhEUVO8fSEO2YaRds2xYt6e6enFv4E5IzW4ZjsZMT
12
+ 9OA4yHgDxfAJDX/Qm9dh76pvhtOo8/rQ9N87SQ1uV39IlI5kufI4CEOUWCIX1svZ
13
+ tVa5SK0CgYEA/FW546VjClzyr8TQ19aUOzRpjsv05kXChaRAuSPKs9P97yUnbOhg
14
+ LxvAExUs2ggr0UmyFa/sR/0QT1pT80SSnPKKIre3zSWtsDzw4QyHel93Asud2jo2
15
+ wQnjbAKEGvpsLn6/vjWHwPBlZTnVmVCKKOMTp9r3y3KkNQ3M1rdR4F8CgYEA0ic3
16
+ 53lZFv0H0yM7BHd+sNy8U8QBLF0WLZKQRRng8eYjOqlenbkuLX+rnjvsH1ByxnKK
17
+ qXLDvM/Xj3UzdYpFcjz2j/lFGEQfCY+nzcEMOFdAuSI79kjF5YJMPWKwv0Izw15U
18
+ ny+qMF/j4ESvXQzqMs01wdtH3H6S+uUxjwLuZp8CgYASW6pKhZ3PAzQk1YzcJyBh
19
+ rk5/tRb8KdcdIfYTgicdLi8rVuinY8CbrMksmj3JHw8RCuuJ6GKoWiD1pPy2liaU
20
+ hJDINdWJd1RLniNoPCEfJhLigS3a0qFpKe8BzK0PyWhVeaM5k2ts/hBibPK9VL64
21
+ eszTSXr9sjmAIqDkfjHWwQKBgGdrnXtwoINLqpohcF3WYKaxOo0OnHU0qkFrK0yW
22
+ W7kvxI6N415DT5Jcjhyk6KLQeGto2wxgyisVLcQPrW9eyKZbkgtwZKx4eb2+0JnV
23
+ MypW5ic1zcR6M8mqwdJDyy+UaNzwgzyDvIFp7z7jDloAjRDLJHVucIL2V2bZe/Yh
24
+ PymJAoGBAJPEVICzGHpyO0VbqTcQ78w/ZpmnT7sb0Z3AadWAXvvyfFtOl5VZCDP5
25
+ /zA1LXZzzpXWqrLa0k1a5B4gx011l1T+/L57Id89QYI7/lUo9vvWXEQ4pe78Cet1
26
+ 0OC7El5hM+iRw28GTkmFIcsFLHcMnWb5AaoVLdR+vnlDNZYuahEF
27
+ -----END RSA PRIVATE KEY-----
@@ -0,0 +1 @@
1
+ {"virtualbox":{"/tmp/omnibus/cache":{"create":true,"guestpath":"/tmp/omnibus/cache","hostpath":"/Users/thom/.kitchen/cache","disabled":false,"__vagrantfile":true}}}
@@ -0,0 +1,11 @@
1
+ Vagrant.configure("2") do |c|
2
+ c.berkshelf.enabled = false if Vagrant.has_plugin?("vagrant-berkshelf")
3
+ c.vm.box = "bento/centos-6.7"
4
+ c.vm.hostname = "fips-unit-functional-centos-6.vagrantup.com"
5
+ c.vm.synced_folder ".", "/vagrant", disabled: true
6
+ c.vm.synced_folder "/Users/thom/.kitchen/cache", "/tmp/omnibus/cache", create: true
7
+ c.vm.provider :virtualbox do |p|
8
+ p.customize ["modifyvm", :id, "--cpus", "2"]
9
+ p.customize ["modifyvm", :id, "--memory", "1024"]
10
+ end
11
+ end
@@ -0,0 +1,80 @@
1
+ I, [2017-05-10T15:03:48.473258 #47111] INFO -- fips-unit-functional-centos-6: -----> Setting up <fips-unit-functional-centos-6>...
2
+ I, [2017-05-10T15:03:48.477080 #47111] INFO -- fips-unit-functional-centos-6: Finished setting up <fips-unit-functional-centos-6> (0m0.00s).
3
+ I, [2017-05-10T15:03:48.477204 #47111] INFO -- fips-unit-functional-centos-6: -----> Verifying <fips-unit-functional-centos-6>...
4
+ I, [2017-05-10T15:03:48.478435 #47111] INFO -- fips-unit-functional-centos-6: Preparing files for transfer
5
+ I, [2017-05-10T15:03:48.847727 #47111] INFO -- fips-unit-functional-centos-6: -----> Installing Busser (busser)
6
+ I, [2017-05-10T15:03:50.055852 #47111] INFO -- fips-unit-functional-centos-6: Fetching: thor-0.19.0.gem
7
+ I, [2017-05-10T15:03:50.087844 #47111] INFO -- fips-unit-functional-centos-6: Successfully installed thor-0.19.0
8
+ I, [2017-05-10T15:03:50.107121 #47111] INFO -- fips-unit-functional-centos-6: Fetching: busser-0.7.1.gem
9
+ I, [2017-05-10T15:03:50.125831 #47111] INFO -- fips-unit-functional-centos-6: Successfully installed busser-0.7.1
10
+ I, [2017-05-10T15:03:50.125885 #47111] INFO -- fips-unit-functional-centos-6: 2 gems installed
11
+ I, [2017-05-10T15:03:50.130951 #47111] INFO -- fips-unit-functional-centos-6: Installing Busser plugins: busser-bats busser-serverspec
12
+ I, [2017-05-10T15:03:51.571888 #47111] INFO -- fips-unit-functional-centos-6: Plugin bats installed (version 0.3.0)
13
+ I, [2017-05-10T15:03:51.573933 #47111] INFO -- fips-unit-functional-centos-6: -----> Running postinstall for bats plugin
14
+ I, [2017-05-10T15:03:51.596806 #47111] INFO -- fips-unit-functional-centos-6: Installed Bats to /tmp/verifier/vendor/bats/bin/bats
15
+ I, [2017-05-10T15:03:52.382674 #47111] INFO -- fips-unit-functional-centos-6: Plugin serverspec installed (version 0.5.10)
16
+ I, [2017-05-10T15:03:52.386623 #47111] INFO -- fips-unit-functional-centos-6: -----> Running postinstall for serverspec plugin
17
+ I, [2017-05-10T15:03:52.860681 #47111] INFO -- fips-unit-functional-centos-6: Suite path directory /tmp/verifier/suites does not exist, skipping.
18
+ I, [2017-05-10T15:03:52.863957 #47111] INFO -- fips-unit-functional-centos-6: Transferring files to <fips-unit-functional-centos-6>
19
+ I, [2017-05-10T15:03:53.068651 #47111] INFO -- fips-unit-functional-centos-6: -----> Running bats test suite
20
+ I, [2017-05-10T15:03:53.160608 #47111] INFO -- fips-unit-functional-centos-6: ERROR: Can't find ruby library file or shared library chef
21
+ I, [2017-05-10T15:03:53.168163 #47111] INFO -- fips-unit-functional-centos-6: !!!!!! Command [/tmp/verifier/vendor/bats/bin/bats /tmp/verifier/suites/bats] exit code was 1
22
+ E, [2017-05-10T15:03:53.171461 #47111] ERROR -- fips-unit-functional-centos-6: Verify failed on instance <fips-unit-functional-centos-6>.
23
+ E, [2017-05-10T15:03:53.171547 #47111] ERROR -- fips-unit-functional-centos-6: ------Exception-------
24
+ E, [2017-05-10T15:03:53.171564 #47111] ERROR -- fips-unit-functional-centos-6: Class: Kitchen::ActionFailed
25
+ E, [2017-05-10T15:03:53.171574 #47111] ERROR -- fips-unit-functional-centos-6: Message: SSH exited (1) for command: [sh -c '
26
+ TEST_KITCHEN="1"; export TEST_KITCHEN
27
+ BUSSER_ROOT="/tmp/verifier"; export BUSSER_ROOT
28
+ GEM_HOME="/tmp/verifier/gems"; export GEM_HOME
29
+ GEM_PATH="/tmp/verifier/gems"; export GEM_PATH
30
+ GEM_CACHE="/tmp/verifier/gems/cache"; export GEM_CACHE
31
+
32
+ sudo -E /tmp/verifier/bin/busser test bats serverspec
33
+ ']
34
+ E, [2017-05-10T15:03:53.171584 #47111] ERROR -- fips-unit-functional-centos-6: ----------------------
35
+ E, [2017-05-10T15:03:53.171606 #47111] ERROR -- fips-unit-functional-centos-6: ------Backtrace-------
36
+ E, [2017-05-10T15:03:53.171618 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/verifier/base.rb:80:in `rescue in call'
37
+ E, [2017-05-10T15:03:53.171627 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/verifier/base.rb:83:in `call'
38
+ E, [2017-05-10T15:03:53.171636 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:434:in `block in verify_action'
39
+ E, [2017-05-10T15:03:53.171645 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:527:in `synchronize_or_call'
40
+ E, [2017-05-10T15:03:53.171653 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:489:in `block in action'
41
+ E, [2017-05-10T15:03:53.171662 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:293:in `measure'
42
+ E, [2017-05-10T15:03:53.171670 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:488:in `action'
43
+ E, [2017-05-10T15:03:53.171678 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:426:in `verify_action'
44
+ E, [2017-05-10T15:03:53.171686 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:359:in `block in transition_to'
45
+ E, [2017-05-10T15:03:53.171695 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `each'
46
+ E, [2017-05-10T15:03:53.171703 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `transition_to'
47
+ E, [2017-05-10T15:03:53.171711 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:157:in `verify'
48
+ E, [2017-05-10T15:03:53.171720 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `public_send'
49
+ E, [2017-05-10T15:03:53.171728 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
50
+ E, [2017-05-10T15:03:53.171736 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
51
+ E, [2017-05-10T15:03:53.171745 #47111] ERROR -- fips-unit-functional-centos-6: ----End Backtrace-----
52
+ E, [2017-05-10T15:03:53.171752 #47111] ERROR -- fips-unit-functional-centos-6: ---Nested Exception---
53
+ E, [2017-05-10T15:03:53.171760 #47111] ERROR -- fips-unit-functional-centos-6: Class: Kitchen::Transport::SshFailed
54
+ E, [2017-05-10T15:03:53.171768 #47111] ERROR -- fips-unit-functional-centos-6: Message: SSH exited (1) for command: [sh -c '
55
+ TEST_KITCHEN="1"; export TEST_KITCHEN
56
+ BUSSER_ROOT="/tmp/verifier"; export BUSSER_ROOT
57
+ GEM_HOME="/tmp/verifier/gems"; export GEM_HOME
58
+ GEM_PATH="/tmp/verifier/gems"; export GEM_PATH
59
+ GEM_CACHE="/tmp/verifier/gems/cache"; export GEM_CACHE
60
+
61
+ sudo -E /tmp/verifier/bin/busser test bats serverspec
62
+ ']
63
+ E, [2017-05-10T15:03:53.171776 #47111] ERROR -- fips-unit-functional-centos-6: ----------------------
64
+ E, [2017-05-10T15:03:53.171784 #47111] ERROR -- fips-unit-functional-centos-6: ------Backtrace-------
65
+ E, [2017-05-10T15:03:53.171799 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/verifier/base.rb:80:in `rescue in call'
66
+ E, [2017-05-10T15:03:53.171810 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/verifier/base.rb:83:in `call'
67
+ E, [2017-05-10T15:03:53.171818 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:434:in `block in verify_action'
68
+ E, [2017-05-10T15:03:53.171826 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:527:in `synchronize_or_call'
69
+ E, [2017-05-10T15:03:53.171835 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:489:in `block in action'
70
+ E, [2017-05-10T15:03:53.171843 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:293:in `measure'
71
+ E, [2017-05-10T15:03:53.171851 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:488:in `action'
72
+ E, [2017-05-10T15:03:53.171859 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:426:in `verify_action'
73
+ E, [2017-05-10T15:03:53.171867 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:359:in `block in transition_to'
74
+ E, [2017-05-10T15:03:53.171900 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `each'
75
+ E, [2017-05-10T15:03:53.171908 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:358:in `transition_to'
76
+ E, [2017-05-10T15:03:53.171916 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/instance.rb:157:in `verify'
77
+ E, [2017-05-10T15:03:53.171924 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `public_send'
78
+ E, [2017-05-10T15:03:53.171932 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:197:in `run_action_in_thread'
79
+ E, [2017-05-10T15:03:53.171941 #47111] ERROR -- fips-unit-functional-centos-6: /Users/thom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/test-kitchen-1.16.0/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
80
+ E, [2017-05-10T15:03:53.171949 #47111] ERROR -- fips-unit-functional-centos-6: ----End Backtrace-----
@@ -0,0 +1,4 @@
1
+ E, [2017-05-10T15:04:42.172669 #47139] ERROR -- Kitchen:
2
+ No instances for regex `', try running `kitchen list'
3
+
4
+
@@ -57,6 +57,6 @@ Gem::Specification.new do |s|
57
57
  s.bindir = "bin"
58
58
  s.executables = %w{ chef-client chef-solo knife chef-shell chef-apply }
59
59
 
60
- s.require_paths = %w{ lib lib-backcompat }
60
+ s.require_paths = %w{ lib }
61
61
  s.files = %w{Gemfile Rakefile LICENSE README.md CONTRIBUTING.md VERSION} + Dir.glob("{distro,lib,lib-backcompat,tasks,acceptance,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } + Dir.glob("*.gemspec")
62
62
  end
@@ -286,7 +286,7 @@ class Chef::Application::Client < Chef::Application
286
286
  option :listen,
287
287
  :long => "--[no-]listen",
288
288
  :description => "Whether a local mode (-z) server binds to a port",
289
- :boolean => true
289
+ :boolean => false
290
290
 
291
291
  option :fips,
292
292
  :long => "--[no-]fips",
@@ -132,7 +132,7 @@ class Chef::Application::Knife < Chef::Application
132
132
  option :listen,
133
133
  :long => "--[no-]listen",
134
134
  :description => "Whether a local mode (-z) server binds to a port",
135
- :boolean => true
135
+ :boolean => false
136
136
 
137
137
  option :version,
138
138
  :short => "-v",
@@ -257,6 +257,7 @@ class Chef::Application::Solo < Chef::Application
257
257
  end
258
258
 
259
259
  Chef::Config[:local_mode] = true
260
+ Chef::Config[:listen] = false
260
261
  else
261
262
  configure_legacy_mode!
262
263
  end
@@ -62,7 +62,7 @@ class Chef
62
62
  # If the checksums are different between on-disk (current) and on-server
63
63
  # (remote, per manifest), do the update. This will also execute if there
64
64
  # is no current checksum.
65
- if current_checksum != found_manifest_record["checksum"]
65
+ if found_manifest_record[:lazy] || current_checksum != found_manifest_record["checksum"]
66
66
  raw_file = @rest.streaming_request(found_manifest_record[:url])
67
67
 
68
68
  Chef::Log.debug("Storing updated #{cache_filename} in the cache.")
@@ -71,6 +71,8 @@ class Chef
71
71
 
72
72
  @cookbook_full_file_paths = {}
73
73
  @remove_obsoleted_files = true
74
+
75
+ @lazy_files = {}
74
76
  end
75
77
 
76
78
  def cache
@@ -98,15 +100,22 @@ class Chef
98
100
  end
99
101
 
100
102
  def files
101
- exclude = unless Chef::Config[:no_lazy_load]
102
- [ :files, :templates ]
103
- else
104
- []
105
- end
103
+ lazy = unless Chef::Config[:no_lazy_load]
104
+ %w{ files templates }
105
+ else
106
+ []
107
+ end
106
108
 
107
109
  @files ||= cookbooks.inject([]) do |memo, cookbook|
108
- cookbook.each_file(excluded_parts: exclude) do |manifest_record|
109
- memo << CookbookFile.new(cookbook, manifest_record)
110
+ cookbook.each_file do |manifest_record|
111
+ part = manifest_record[:name].split("/")[0]
112
+ if lazy.include?(part)
113
+ manifest_record[:lazy] = true
114
+ @lazy_files[cookbook] ||= []
115
+ @lazy_files[cookbook] << manifest_record
116
+ else
117
+ memo << CookbookFile.new(cookbook, manifest_record)
118
+ end
110
119
  end
111
120
  memo
112
121
  end
@@ -230,6 +239,10 @@ class Chef
230
239
  @cookbook_full_file_paths.each do |cookbook, full_paths|
231
240
  cookbook.all_files = full_paths
232
241
  end
242
+
243
+ @lazy_files.each do |cookbook, lazy_files|
244
+ cookbook.cookbook_manifest.add_files_to_manifest(lazy_files)
245
+ end
233
246
  end
234
247
 
235
248
  def ensure_cookbook_paths
@@ -160,6 +160,14 @@ class Chef
160
160
  @manifest_records_by_path = extract_manifest_records_by_path(@manifest)
161
161
  end
162
162
 
163
+ # @api private
164
+ # takes a list of hashes
165
+ def add_files_to_manifest(files)
166
+ manifest[:all_files].concat(Array(files))
167
+ @checksums = extract_checksums_from_manifest(@manifest)
168
+ @manifest_records_by_path = extract_manifest_records_by_path(@manifest)
169
+ end
170
+
163
171
  def files_for(part)
164
172
  return root_files if part.to_s == "root_files"
165
173
  manifest[:all_files].select do |file|
@@ -238,6 +238,16 @@ class Chef
238
238
  end
239
239
  end
240
240
 
241
+ class LocalListen < Base
242
+ def id
243
+ 18
244
+ end
245
+
246
+ def target
247
+ "local_listen.html"
248
+ end
249
+ end
250
+
241
251
  # id 3694 was deleted
242
252
 
243
253
  class Generic < Base
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_create"
20
21
  require "chef/knife/key_create_base"
21
22
 
22
23
  class Chef
@@ -30,6 +31,8 @@ class Chef
30
31
  class ClientKeyCreate < Knife
31
32
  include Chef::Knife::KeyCreateBase
32
33
 
34
+ banner "knife client key create CLIENT (options)"
35
+
33
36
  attr_reader :actor
34
37
 
35
38
  def initialize(argv = [])
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_delete"
20
21
 
21
22
  class Chef
22
23
  class Knife
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_edit"
20
21
  require "chef/knife/key_edit_base"
21
22
 
22
23
  class Chef
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_list"
20
21
  require "chef/knife/key_list_base"
21
22
 
22
23
  class Chef
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_show"
20
21
 
21
22
  class Chef
22
23
  class Knife
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_create"
20
21
  require "chef/knife/key_create_base"
21
22
 
22
23
  class Chef
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_delete"
20
21
 
21
22
  class Chef
22
23
  class Knife
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_edit"
20
21
  require "chef/knife/key_edit_base"
21
22
 
22
23
  class Chef
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_list"
20
21
  require "chef/knife/key_list_base"
21
22
 
22
23
  class Chef
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
+ require "chef/knife/key_show"
20
21
 
21
22
  class Chef
22
23
  class Knife
@@ -73,6 +73,7 @@ class Chef
73
73
  @chef_zero_server = ChefZero::Server.new(server_options)
74
74
 
75
75
  if Chef::Config[:listen]
76
+ Chef.deprecated(:local_listen, "Starting local-mode server in deprecated socket mode")
76
77
  @chef_zero_server.start_background
77
78
  else
78
79
  @chef_zero_server.start_socketless
@@ -25,7 +25,7 @@ class Chef
25
25
  def where(*cmds, extra_path: nil, &block)
26
26
  # NOTE: unnecessarily duplicates function of path_sanity
27
27
  extra_path ||= [ "/bin", "/usr/bin", "/sbin", "/usr/sbin" ]
28
- paths = env_path.split(File::PATH_SEPARATOR) + extra_path
28
+ paths = env_path.split(File::PATH_SEPARATOR) + Array(extra_path)
29
29
  cmds.map do |cmd|
30
30
  paths.map do |path|
31
31
  filename = Chef.path_to(File.join(path, cmd))
@@ -69,7 +69,7 @@ class Chef
69
69
  configs = []
70
70
 
71
71
  if ::File.exist?(Chef.path_to("/etc/init.d/#{service_name}"))
72
- configs << :initd
72
+ configs += [ :initd, :systemd ]
73
73
  end
74
74
 
75
75
  if ::File.exist?(Chef.path_to("/etc/init/#{service_name}.conf"))
@@ -33,6 +33,9 @@ class Chef
33
33
  which("apt-get")
34
34
  end
35
35
 
36
+ LIST_APT_KEYS = "apt-key list".freeze
37
+ LIST_APT_KEY_FINGERPRINTS = "apt-key adv --list-public-keys --with-fingerprint --with-colons".freeze
38
+
36
39
  def load_current_resource
37
40
  end
38
41
 
@@ -143,7 +146,7 @@ class Chef
143
146
  def no_new_keys?(file)
144
147
  # Now we are using the option --with-colons that works across old os versions
145
148
  # as well as the latest (16.10). This for both `apt-key` and `gpg` commands
146
- installed_keys = extract_fingerprints_from_cmd("apt-key adv --list-public-keys --with-fingerprint --with-colons")
149
+ installed_keys = extract_fingerprints_from_cmd(LIST_APT_KEY_FINGERPRINTS)
147
150
  proposed_keys = extract_fingerprints_from_cmd("gpg --with-fingerprint --with-colons #{file}")
148
151
  (installed_keys & proposed_keys).sort == proposed_keys.sort
149
152
  end
@@ -194,15 +197,15 @@ class Chef
194
197
  command cmd
195
198
  sensitive new_resource.sensitive
196
199
  not_if do
197
- present = extract_fingerprints_from_cmd("apt-key finger").any? do |fp|
200
+ present = extract_fingerprints_from_cmd(LIST_APT_KEY_FINGERPRINTS).any? do |fp|
198
201
  fp.end_with? key.upcase
199
202
  end
200
- present && key_is_valid?("apt-key list", key.upcase)
203
+ present && key_is_valid?(LIST_APT_KEYS, key.upcase)
201
204
  end
202
205
  notifies :run, "execute[apt-cache gencaches]", :immediately
203
206
  end
204
207
 
205
- raise "The key #{key} is invalid and cannot be used to verify an apt repository." unless key_is_valid?("apt-key list", key.upcase)
208
+ raise "The key #{key} is invalid and cannot be used to verify an apt repository." unless key_is_valid?(LIST_APT_KEYS, key.upcase)
206
209
  end
207
210
 
208
211
  def install_ppa_key(owner, repo)