chef 13.1.31 → 13.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +68 -134
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml +1 -0
- data/acceptance/top-cookbooks/.kitchen.docker.yml +4 -0
- data/lib/chef/application/client.rb +27 -18
- data/lib/chef/deprecated.rb +10 -0
- data/lib/chef/dsl/declare_resource.rb +9 -1
- data/lib/chef/knife.rb +5 -1
- data/lib/chef/knife/cookbook_test.rb +1 -1
- data/lib/chef/policy_builder/policyfile.rb +27 -1
- data/lib/chef/provider.rb +2 -2
- data/lib/chef/provider/group/aix.rb +1 -1
- data/lib/chef/provider/group/groupadd.rb +1 -1
- data/lib/chef/provider/package/chocolatey.rb +1 -1
- data/lib/chef/provider/user/pw.rb +1 -1
- data/lib/chef/provider/user/windows.rb +1 -1
- data/lib/chef/resource/breakpoint.rb +1 -1
- data/lib/chef/version.rb +3 -1
- data/lib/chef/version_string.rb +143 -0
- data/spec/functional/mixin/powershell_out_spec.rb +20 -4
- data/spec/functional/resource/group_spec.rb +19 -13
- data/spec/functional/resource/windows_task_spec.rb +2 -9
- data/spec/integration/knife/common_options_spec.rb +29 -11
- data/spec/integration/knife/cookbook_bulk_delete_spec.rb +2 -2
- data/spec/integration/knife/cookbook_show_spec.rb +2 -2
- data/spec/integration/knife/environment_compare_spec.rb +2 -2
- data/spec/integration/knife/environment_show_spec.rb +2 -2
- data/spec/integration/knife/role_show_spec.rb +2 -2
- data/spec/integration/recipes/accumulator_spec.rb +6 -6
- data/spec/integration/recipes/resource_action_spec.rb +18 -7
- data/spec/integration/recipes/resource_load_spec.rb +5 -21
- data/spec/spec_helper.rb +2 -0
- data/spec/support/platform_helpers.rb +5 -0
- data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +1 -1
- data/spec/unit/application/client_spec.rb +2 -0
- data/spec/unit/knife_spec.rb +22 -0
- data/spec/unit/policy_builder/policyfile_spec.rb +50 -0
- data/spec/unit/provider/group/groupadd_spec.rb +1 -1
- data/spec/unit/provider/user/pw_spec.rb +1 -1
- data/spec/unit/version_string_spec.rb +79 -0
- data/tasks/dependencies.rb +1 -42
- metadata +6 -79
- data/acceptance/.bundle/config +0 -2
- data/acceptance/bin/aws.rb +0 -17
- data/acceptance/bin/berks +0 -17
- data/acceptance/bin/bundler +0 -17
- data/acceptance/bin/chef-acceptance +0 -17
- data/acceptance/bin/coderay +0 -17
- data/acceptance/bin/erubis +0 -17
- data/acceptance/bin/htmldiff +0 -17
- data/acceptance/bin/httpclient +0 -17
- data/acceptance/bin/inspec +0 -17
- data/acceptance/bin/kitchen +0 -17
- data/acceptance/bin/ldiff +0 -17
- data/acceptance/bin/nokogiri +0 -17
- data/acceptance/bin/pry +0 -17
- data/acceptance/bin/rake +0 -17
- data/acceptance/bin/rspec +0 -17
- data/acceptance/bin/rwinrm +0 -17
- data/acceptance/bin/rwinrmcp +0 -17
- data/acceptance/bin/safe_yaml +0 -17
- data/acceptance/bin/thor +0 -17
- data/acceptance/fips/.kitchen/fips-unit-functional-centos-6.yml +0 -7
- data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/action_set_name +0 -1
- data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/creator_uid +0 -1
- data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/id +0 -1
- data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/index_uuid +0 -1
- data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/private_key +0 -27
- data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/.vagrant/machines/default/virtualbox/synced_folders +0 -1
- data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/Vagrantfile +0 -11
- data/acceptance/fips/.kitchen/logs/fips-integration-centos-6.log +0 -0
- data/acceptance/fips/.kitchen/logs/fips-integration-windows-2012r2.log +0 -0
- data/acceptance/fips/.kitchen/logs/fips-unit-functional-centos-6.log +0 -80
- data/acceptance/fips/.kitchen/logs/kitchen.log +0 -4
- data/tasks/bundle.rb +0 -73
data/acceptance/bin/inspec
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'inspec' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("inspec", "inspec")
|
data/acceptance/bin/kitchen
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'kitchen' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("test-kitchen", "kitchen")
|
data/acceptance/bin/ldiff
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'ldiff' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("diff-lcs", "ldiff")
|
data/acceptance/bin/nokogiri
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'nokogiri' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("nokogiri", "nokogiri")
|
data/acceptance/bin/pry
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'pry' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("pry", "pry")
|
data/acceptance/bin/rake
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'rake' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("rake", "rake")
|
data/acceptance/bin/rspec
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'rspec' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("rspec-core", "rspec")
|
data/acceptance/bin/rwinrm
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'rwinrm' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("winrm", "rwinrm")
|
data/acceptance/bin/rwinrmcp
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'rwinrmcp' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("winrm-fs", "rwinrmcp")
|
data/acceptance/bin/safe_yaml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'safe_yaml' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("safe_yaml", "safe_yaml")
|
data/acceptance/bin/thor
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
#
|
4
|
-
# This file was generated by Bundler.
|
5
|
-
#
|
6
|
-
# The application 'thor' is installed as part of a gem, and
|
7
|
-
# this file is here to facilitate running it.
|
8
|
-
#
|
9
|
-
|
10
|
-
require "pathname"
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
-
Pathname.new(__FILE__).realpath)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("thor", "thor")
|
@@ -1,7 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
1494421840
|
@@ -1 +0,0 @@
|
|
1
|
-
503
|
@@ -1 +0,0 @@
|
|
1
|
-
5c39c875-e48a-4713-8395-ce81caaa5c49
|
@@ -1 +0,0 @@
|
|
1
|
-
1d7ba92c79fd49748601d7a18407bb02
|
@@ -1,27 +0,0 @@
|
|
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-----
|
@@ -1 +0,0 @@
|
|
1
|
-
{"virtualbox":{"/tmp/omnibus/cache":{"create":true,"guestpath":"/tmp/omnibus/cache","hostpath":"/Users/thom/.kitchen/cache","disabled":false,"__vagrantfile":true}}}
|
data/acceptance/fips/.kitchen/kitchen-vagrant/kitchen-fips-fips-unit-functional-centos-6/Vagrantfile
DELETED
@@ -1,11 +0,0 @@
|
|
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
|
File without changes
|
File without changes
|
@@ -1,80 +0,0 @@
|
|
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-----
|
data/tasks/bundle.rb
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright:: Copyright (c) 2016-2017, Chef Software Inc.
|
3
|
-
# License:: Apache License, Version 2.0
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
#
|
17
|
-
|
18
|
-
require_relative "../version_policy"
|
19
|
-
require "fileutils"
|
20
|
-
|
21
|
-
desc "Tasks to work with the main Gemfile and Gemfile.<platform>"
|
22
|
-
namespace :bundle do
|
23
|
-
desc "Update Gemfile.lock and all Gemfile.<platform>.locks (or one or more gems via bundle:update gem1 gem2 ...)."
|
24
|
-
task :update, [:args] do |t, rake_args|
|
25
|
-
args = rake_args[:args] || ""
|
26
|
-
Bundler.with_clean_env do
|
27
|
-
sh "bundle update #{args}"
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
desc "Conservatively update Gemfile.lock and all Gemfile.<platform>.locks"
|
32
|
-
task :install, [:args] do |t, rake_args|
|
33
|
-
args = rake_args[:args] || ""
|
34
|
-
args = rake_args[:args] || ""
|
35
|
-
Bundler.with_clean_env do
|
36
|
-
sh "bundle install #{args}"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
def parse_bundle_outdated(bundle_outdated_output)
|
41
|
-
result = []
|
42
|
-
bundle_outdated_output.each_line do |line|
|
43
|
-
if line =~ /^\s*\* (.+) \(newest ([^,]+), installed ([^,)])*/
|
44
|
-
gem_name, newest_version, installed_version = $1, $2, $3
|
45
|
-
result << [ line, gem_name ]
|
46
|
-
end
|
47
|
-
end
|
48
|
-
result
|
49
|
-
end
|
50
|
-
|
51
|
-
# Find out if we're using the latest gems we can (so we don't regress versions)
|
52
|
-
desc "Check for gems that are not at the latest released version, and report if anything not in ACCEPTABLE_OUTDATED_GEMS (version_policy.rb) is out of date."
|
53
|
-
task :outdated do
|
54
|
-
bundle_outdated = ""
|
55
|
-
Bundler.with_clean_env do
|
56
|
-
bundle_outdated = `bundle outdated`
|
57
|
-
puts bundle_outdated
|
58
|
-
end
|
59
|
-
outdated_gems = parse_bundle_outdated(bundle_outdated).map { |line, gem_name| gem_name }
|
60
|
-
outdated_gems = outdated_gems.reject { |gem_name| ACCEPTABLE_OUTDATED_GEMS.include?(gem_name) }
|
61
|
-
unless outdated_gems.empty?
|
62
|
-
raise "ERROR: outdated gems: #{outdated_gems.join(", ")}. Either fix them or add them to ACCEPTABLE_OUTDATED_GEMS in #{__FILE__}."
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
desc "Run bundle with arbitrary args"
|
68
|
-
task :bundle, [:args] do |t, rake_args|
|
69
|
-
args = rake_args[:args] || ""
|
70
|
-
Bundler.with_clean_env do
|
71
|
-
sh "bundle #{args}"
|
72
|
-
end
|
73
|
-
end
|