chef 13.11.3 → 13.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -3
- data/README.md +35 -40
- data/Rakefile +18 -22
- data/chef-universal-mingw32.gemspec +1 -1
- data/chef.gemspec +3 -3
- data/lib/chef/client.rb +1 -1
- data/lib/chef/mixin/params_validate.rb +3 -1
- data/lib/chef/provider/script.rb +2 -2
- data/lib/chef/version.rb +1 -1
- data/spec/functional/http/simple_spec.rb +12 -6
- data/spec/functional/resource/remote_file_spec.rb +19 -15
- data/spec/support/platform_helpers.rb +2 -1
- data/tasks/announce.rb +1 -1
- data/tasks/dependencies.rb +5 -39
- data/tasks/maintainers.rb +10 -10
- data/tasks/rspec.rb +2 -2
- data/tasks/templates/prerelease.md.erb +11 -2
- data/tasks/templates/release.md.erb +9 -1
- metadata +6 -248
- data/CONTRIBUTING.md +0 -151
- data/VERSION +0 -1
- data/acceptance/.gitignore +0 -3
- data/acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml +0 -33
- data/acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml +0 -283
- data/acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml +0 -59
- data/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb +0 -68
- data/acceptance/.shared/kitchen_acceptance/metadata.rb +0 -1
- data/acceptance/Gemfile +0 -19
- data/acceptance/Gemfile.lock +0 -266
- data/acceptance/README.md +0 -137
- data/acceptance/basics/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/basics/.acceptance/acceptance-cookbook/metadata.rb +0 -3
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/basics/.kitchen.yml +0 -4
- data/acceptance/basics/test/integration/chef-current-install/serverspec/chef_client_spec.rb +0 -19
- data/acceptance/basics/test/integration/chef-current-install/serverspec/spec_helper.rb +0 -6
- data/acceptance/basics/test/integration/helpers/serverspec/Gemfile +0 -8
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/metadata.rb +0 -3
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -2
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -2
- data/acceptance/data-collector/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -2
- data/acceptance/data-collector/.acceptance/data-collector-test/.gitignore +0 -16
- data/acceptance/data-collector/.acceptance/data-collector-test/Berksfile +0 -3
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/api.rb +0 -101
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/apigemfile +0 -3
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-both-mode.rb +0 -4
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-client-mode.rb +0 -4
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-no-endpoint.rb +0 -2
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/client-rb-solo-mode.rb +0 -4
- data/acceptance/data-collector/.acceptance/data-collector-test/files/default/config.ru +0 -2
- data/acceptance/data-collector/.acceptance/data-collector-test/metadata.rb +0 -7
- data/acceptance/data-collector/.acceptance/data-collector-test/recipes/default.rb +0 -44
- data/acceptance/data-collector/.kitchen.yml +0 -9
- data/acceptance/data-collector/Berksfile +0 -3
- data/acceptance/data-collector/test/integration/default/serverspec/default_spec.rb +0 -208
- data/acceptance/data-collector/test/integration/helpers/serverspec/Gemfile +0 -8
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/metadata.rb +0 -1
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/omnitruck/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -61
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb +0 -43
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb +0 -41
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb +0 -3
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/top-cookbooks/.gitignore +0 -1
- data/acceptance/top-cookbooks/.kitchen.chocolatey.yml +0 -6
- data/acceptance/top-cookbooks/.kitchen.iis.yml +0 -4
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-rhel.yml +0 -7
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-ubuntu.yml +0 -7
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-windows.yml +0 -7
- data/acceptance/top-cookbooks/.kitchen.powershell.yml +0 -4
- data/acceptance/top-cookbooks/.kitchen.sql_server.yml +0 -5
- data/acceptance/top-cookbooks/.kitchen.winbox.yml +0 -8
- data/acceptance/top-cookbooks/.kitchen.windows.yml +0 -38
- data/acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb +0 -2
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/trivial/.kitchen.yml +0 -7
- data/acceptance/trivial/test/integration/chef-current-install/inspec/chef_client_spec.rb +0 -5
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/.gitignore +0 -2
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/metadata.rb +0 -2
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb +0 -1
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb +0 -1
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb +0 -1
- data/acceptance/windows-service/.kitchen.yml +0 -7
- data/acceptance/windows-service/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb +0 -58
- data/distro/common/html/_sources/ctl_chef_client.txt +0 -36
- data/distro/common/html/_sources/ctl_chef_server.txt +0 -341
- data/distro/common/html/_sources/ctl_chef_shell.txt +0 -15
- data/distro/common/html/_sources/ctl_chef_solo.txt +0 -25
- data/distro/common/html/_sources/index.txt +0 -135
- data/distro/common/html/_sources/knife.txt +0 -74
- data/distro/common/html/_sources/knife_bootstrap.txt +0 -56
- data/distro/common/html/_sources/knife_client.txt +0 -151
- data/distro/common/html/_sources/knife_common_options.txt +0 -6
- data/distro/common/html/_sources/knife_configure.txt +0 -29
- data/distro/common/html/_sources/knife_cookbook.txt +0 -236
- data/distro/common/html/_sources/knife_cookbook_site.txt +0 -157
- data/distro/common/html/_sources/knife_data_bag.txt +0 -160
- data/distro/common/html/_sources/knife_delete.txt +0 -26
- data/distro/common/html/_sources/knife_deps.txt +0 -61
- data/distro/common/html/_sources/knife_diff.txt +0 -34
- data/distro/common/html/_sources/knife_download.txt +0 -44
- data/distro/common/html/_sources/knife_edit.txt +0 -26
- data/distro/common/html/_sources/knife_environment.txt +0 -158
- data/distro/common/html/_sources/knife_exec.txt +0 -47
- data/distro/common/html/_sources/knife_index_rebuild.txt +0 -21
- data/distro/common/html/_sources/knife_list.txt +0 -33
- data/distro/common/html/_sources/knife_node.txt +0 -250
- data/distro/common/html/_sources/knife_raw.txt +0 -35
- data/distro/common/html/_sources/knife_recipe_list.txt +0 -23
- data/distro/common/html/_sources/knife_role.txt +0 -157
- data/distro/common/html/_sources/knife_search.txt +0 -53
- data/distro/common/html/_sources/knife_serve.txt +0 -19
- data/distro/common/html/_sources/knife_show.txt +0 -27
- data/distro/common/html/_sources/knife_ssh.txt +0 -43
- data/distro/common/html/_sources/knife_ssl_check.txt +0 -41
- data/distro/common/html/_sources/knife_ssl_fetch.txt +0 -41
- data/distro/common/html/_sources/knife_status.txt +0 -37
- data/distro/common/html/_sources/knife_tag.txt +0 -69
- data/distro/common/html/_sources/knife_upload.txt +0 -49
- data/distro/common/html/_sources/knife_user.txt +0 -127
- data/distro/common/html/_sources/knife_using.txt +0 -43
- data/distro/common/html/_sources/knife_xargs.txt +0 -30
- data/distro/common/html/_static/ajax-loader.gif +0 -0
- data/distro/common/html/_static/basic.css +0 -537
- data/distro/common/html/_static/chef.ico +0 -0
- data/distro/common/html/_static/chef_html_logo.png +0 -0
- data/distro/common/html/_static/comment-bright.png +0 -0
- data/distro/common/html/_static/comment-close.png +0 -0
- data/distro/common/html/_static/comment.png +0 -0
- data/distro/common/html/_static/contents.png +0 -0
- data/distro/common/html/_static/doctools.js +0 -238
- data/distro/common/html/_static/down-pressed.png +0 -0
- data/distro/common/html/_static/down.png +0 -0
- data/distro/common/html/_static/file.png +0 -0
- data/distro/common/html/_static/guide.css +0 -505
- data/distro/common/html/_static/jquery.js +0 -2
- data/distro/common/html/_static/minus.png +0 -0
- data/distro/common/html/_static/navigation.png +0 -0
- data/distro/common/html/_static/plus.png +0 -0
- data/distro/common/html/_static/pygments.css +0 -62
- data/distro/common/html/_static/searchtools.js +0 -622
- data/distro/common/html/_static/underscore.js +0 -31
- data/distro/common/html/_static/up-pressed.png +0 -0
- data/distro/common/html/_static/up.png +0 -0
- data/distro/common/html/_static/websupport.js +0 -808
- data/distro/common/html/ctl_chef_client.html +0 -270
- data/distro/common/html/ctl_chef_server.html +0 -728
- data/distro/common/html/ctl_chef_shell.html +0 -163
- data/distro/common/html/ctl_chef_solo.html +0 -194
- data/distro/common/html/index.html +0 -202
- data/distro/common/html/knife.html +0 -170
- data/distro/common/html/knife_bootstrap.html +0 -285
- data/distro/common/html/knife_client.html +0 -285
- data/distro/common/html/knife_common_options.html +0 -96
- data/distro/common/html/knife_configure.html +0 -105
- data/distro/common/html/knife_cookbook.html +0 -487
- data/distro/common/html/knife_cookbook_site.html +0 -375
- data/distro/common/html/knife_data_bag.html +0 -374
- data/distro/common/html/knife_delete.html +0 -93
- data/distro/common/html/knife_deps.html +0 -143
- data/distro/common/html/knife_diff.html +0 -123
- data/distro/common/html/knife_download.html +0 -145
- data/distro/common/html/knife_edit.html +0 -89
- data/distro/common/html/knife_environment.html +0 -322
- data/distro/common/html/knife_exec.html +0 -220
- data/distro/common/html/knife_index_rebuild.html +0 -83
- data/distro/common/html/knife_list.html +0 -114
- data/distro/common/html/knife_node.html +0 -458
- data/distro/common/html/knife_raw.html +0 -110
- data/distro/common/html/knife_recipe_list.html +0 -91
- data/distro/common/html/knife_role.html +0 -295
- data/distro/common/html/knife_search.html +0 -203
- data/distro/common/html/knife_serve.html +0 -79
- data/distro/common/html/knife_show.html +0 -104
- data/distro/common/html/knife_ssh.html +0 -177
- data/distro/common/html/knife_ssl_check.html +0 -151
- data/distro/common/html/knife_ssl_fetch.html +0 -151
- data/distro/common/html/knife_status.html +0 -144
- data/distro/common/html/knife_tag.html +0 -138
- data/distro/common/html/knife_upload.html +0 -153
- data/distro/common/html/knife_user.html +0 -242
- data/distro/common/html/knife_using.html +0 -210
- data/distro/common/html/knife_xargs.html +0 -122
- data/distro/common/html/objects.inv +0 -0
- data/distro/common/html/search.html +0 -82
- data/distro/common/html/searchindex.js +0 -1
- data/distro/common/man/man1/README.md +0 -58
- data/distro/common/man/man1/chef-shell.1 +0 -194
- data/distro/common/man/man1/knife-bootstrap.1 +0 -215
- data/distro/common/man/man1/knife-client.1 +0 -443
- data/distro/common/man/man1/knife-configure.1 +0 -161
- data/distro/common/man/man1/knife-cookbook-site.1 +0 -552
- data/distro/common/man/man1/knife-cookbook.1 +0 -770
- data/distro/common/man/man1/knife-data-bag.1 +0 -617
- data/distro/common/man/man1/knife-delete.1 +0 -127
- data/distro/common/man/man1/knife-deps.1 +0 -246
- data/distro/common/man/man1/knife-diff.1 +0 -226
- data/distro/common/man/man1/knife-download.1 +0 -258
- data/distro/common/man/man1/knife-edit.1 +0 -121
- data/distro/common/man/man1/knife-environment.1 +0 -496
- data/distro/common/man/man1/knife-exec.1 +0 -362
- data/distro/common/man/man1/knife-index-rebuild.1 +0 -63
- data/distro/common/man/man1/knife-list.1 +0 -174
- data/distro/common/man/man1/knife-node.1 +0 -716
- data/distro/common/man/man1/knife-raw.1 +0 -172
- data/distro/common/man/man1/knife-recipe-list.1 +0 -85
- data/distro/common/man/man1/knife-role.1 +0 -426
- data/distro/common/man/man1/knife-search.1 +0 -359
- data/distro/common/man/man1/knife-serve.1 +0 -109
- data/distro/common/man/man1/knife-show.1 +0 -160
- data/distro/common/man/man1/knife-ssh.1 +0 -284
- data/distro/common/man/man1/knife-ssl-check.1 +0 -207
- data/distro/common/man/man1/knife-ssl-fetch.1 +0 -207
- data/distro/common/man/man1/knife-status.1 +0 -234
- data/distro/common/man/man1/knife-tag.1 +0 -189
- data/distro/common/man/man1/knife-upload.1 +0 -280
- data/distro/common/man/man1/knife-user.1 +0 -356
- data/distro/common/man/man1/knife-xargs.1 +0 -189
- data/distro/common/man/man1/knife.1 +0 -332
- data/distro/common/man/man8/chef-apply.8 +0 -86
- data/distro/common/man/man8/chef-client.8 +0 -398
- data/distro/common/man/man8/chef-solo.8 +0 -260
- data/distro/common/markdown/README +0 -3
- data/distro/common/markdown/man1/chef-shell.mkd +0 -195
- data/distro/common/markdown/man1/knife-bootstrap.mkd +0 -141
- data/distro/common/markdown/man1/knife-client.mkd +0 -103
- data/distro/common/markdown/man1/knife-configure.mkd +0 -71
- data/distro/common/markdown/man1/knife-cookbook-site.mkd +0 -123
- data/distro/common/markdown/man1/knife-cookbook.mkd +0 -263
- data/distro/common/markdown/man1/knife-data-bag.mkd +0 -121
- data/distro/common/markdown/man1/knife-environment.mkd +0 -151
- data/distro/common/markdown/man1/knife-exec.mkd +0 -42
- data/distro/common/markdown/man1/knife-index.mkd +0 -30
- data/distro/common/markdown/man1/knife-node.mkd +0 -130
- data/distro/common/markdown/man1/knife-role.mkd +0 -85
- data/distro/common/markdown/man1/knife-search.mkd +0 -180
- data/distro/common/markdown/man1/knife-ssh.mkd +0 -69
- data/distro/common/markdown/man1/knife-status.mkd +0 -36
- data/distro/common/markdown/man1/knife-tag.mkd +0 -39
- data/distro/common/markdown/man1/knife.mkd +0 -213
- data/distro/common/markdown/man8/chef-client.mkd +0 -75
- data/distro/common/markdown/man8/chef-expander.mkd +0 -81
- data/distro/common/markdown/man8/chef-expanderctl.mkd +0 -57
- data/distro/common/markdown/man8/chef-server-webui.mkd +0 -121
- data/distro/common/markdown/man8/chef-server.mkd +0 -120
- data/distro/common/markdown/man8/chef-solo.mkd +0 -107
- data/distro/common/markdown/man8/chef-solr.mkd +0 -89
- data/distro/powershell/chef/chef.psm1 +0 -459
- data/tasks/cbgb.rb +0 -84
@@ -1 +0,0 @@
|
|
1
|
-
name 'acceptance-cookbook'
|
@@ -1 +0,0 @@
|
|
1
|
-
log "NOOP 'destroy' recipe from the acceptance-cookbook in directory '#{node['chef-acceptance']['suite-dir']}'"
|
@@ -1 +0,0 @@
|
|
1
|
-
log "NOOP 'provision' recipe from the acceptance-cookbook in directory '#{node['chef-acceptance']['suite-dir']}'"
|
@@ -1,61 +0,0 @@
|
|
1
|
-
control_group "omnitruck" do
|
2
|
-
require 'chef/http'
|
3
|
-
require 'chef/json_compat'
|
4
|
-
|
5
|
-
# We do this to be able to reference 'rest' both inside and outside example
|
6
|
-
# blocks
|
7
|
-
rest = Chef::HTTP.new("https://omnitruck.chef.io/chef/metadata", headers: {"Accept" => "application/json"})
|
8
|
-
let(:rest) { rest }
|
9
|
-
|
10
|
-
def request(url)
|
11
|
-
Chef::JSONCompat.parse(rest.get(url))["sha256"]
|
12
|
-
end
|
13
|
-
|
14
|
-
shared_examples "32 matches 64" do |version|
|
15
|
-
it "only returns 32-bit packages" do
|
16
|
-
sha32 = request("?p=windows&pv=2012r2&v=#{version}&m=i386")
|
17
|
-
sha64 = request("?p=windows&pv=2012r2&v=#{version}&m=x86_64")
|
18
|
-
expect(sha32).to eq(sha64)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
context "from the current channel" do
|
23
|
-
it "returns both 32-bit and 64-bit packages" do
|
24
|
-
# We cannot verify from the returned URL if the package is 64 or 32 bit because
|
25
|
-
# it is often lying, so we just make sure they are different.
|
26
|
-
# The current channel is often cleaned so only the latest builds are in
|
27
|
-
# it, so we just request the latest version instead of trying to check
|
28
|
-
# old versions
|
29
|
-
sha32 = request("?p=windows&pv=2012r2&m=i386&prerelease=true")
|
30
|
-
sha64 = request("?p=windows&pv=2012r2&m=x86_64&prerelease=true")
|
31
|
-
expect(sha32).to_not eq(sha64)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
context "from the stable channel" do
|
36
|
-
%w{11 12.3 12.4.2 12.6.0 12.8.1}.each do |version|
|
37
|
-
describe "with version #{version}" do
|
38
|
-
include_examples "32 matches 64", version
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
begin
|
43
|
-
rest.get("?p=windows&pv=2012r2&v=12.9")
|
44
|
-
describe "with version 12.9" do
|
45
|
-
it "returns both 32-bit and 64-bit packages" do
|
46
|
-
sha32 = request("?p=windows&pv=2012r2&v=12.9&m=i386")
|
47
|
-
sha64 = request("?p=windows&pv=2012r2&v=12.9&m=x86_64")
|
48
|
-
expect(sha32).to_not eq(sha64)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
rescue Net::HTTPServerException => e
|
52
|
-
# Once 12.9 is released this will stop 404ing and the example
|
53
|
-
# will be executed
|
54
|
-
unless e.response.code == "404"
|
55
|
-
raise
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|
60
|
-
|
61
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
class CookbookKitchen < KitchenAcceptance::Kitchen
|
2
|
-
resource_name :cookbook_kitchen
|
3
|
-
|
4
|
-
property :command, default: lazy { name.split(" ")[0] }
|
5
|
-
property :kitchen_dir, default: lazy { ::File.join(repository_root, cookbook_relative_dir) }
|
6
|
-
property :test_cookbook, String, default: lazy { name.split(" ")[1] }
|
7
|
-
property :repository, String, default: lazy { "chef-cookbooks/#{test_cookbook}" },
|
8
|
-
coerce: proc { |v|
|
9
|
-
# chef-cookbooks/runit -> https://github.com/chef-cookbooks/runit.git
|
10
|
-
if !v.include?(':')
|
11
|
-
"https://github.com/#{v}.git"
|
12
|
-
else
|
13
|
-
v
|
14
|
-
end
|
15
|
-
}
|
16
|
-
property :repository_root, String, default: lazy { ::File.join(Chef.node["chef-acceptance"]["suite-dir"], "test_run", test_cookbook) }
|
17
|
-
property :branch, String, default: "master"
|
18
|
-
property :cookbook_relative_dir, String, default: ""
|
19
|
-
property :env, default: lazy {
|
20
|
-
{
|
21
|
-
"BUNDLE_GEMFILE" => ::File.expand_path("../Gemfile", Chef.node["chef-acceptance"]["suite-dir"]),
|
22
|
-
# "KITCHEN_GLOBAL_YAML" => ::File.join(kitchen_dir, ".kitchen.yml"),
|
23
|
-
"KITCHEN_YAML" => ::File.join(node["chef-acceptance"]["suite-dir"], ".kitchen.#{test_cookbook}.yml")
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
action :run do
|
28
|
-
# Ensure the parent directory exists
|
29
|
-
directory ::File.expand_path("..", repository_root) do
|
30
|
-
recursive true
|
31
|
-
end
|
32
|
-
|
33
|
-
# Grab the cookbook
|
34
|
-
# TODO Grab the source URL from supermarket
|
35
|
-
# TODO get git to include its kitchen tests in the cookbook.
|
36
|
-
git repository_root do
|
37
|
-
repository new_resource.repository
|
38
|
-
branch new_resource.branch
|
39
|
-
end
|
40
|
-
|
41
|
-
super()
|
42
|
-
end
|
43
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
class TopCookbooks < Chef::Resource
|
2
|
-
resource_name :top_cookbooks
|
3
|
-
|
4
|
-
property :command, String, name_property: true
|
5
|
-
|
6
|
-
# Disabling all windows tests until winrm issue is properly settled.
|
7
|
-
#
|
8
|
-
action :run do
|
9
|
-
|
10
|
-
# FIXME: waiting for https://github.com/learn-chef/learn-chef-acceptance/pull/23
|
11
|
-
# cookbook_kitchen "#{command} learn-the-basics-ubuntu" do
|
12
|
-
# repository "learn-chef/learn-chef-acceptance"
|
13
|
-
# cookbook_relative_dir "cookbooks/learn-the-basics-ubuntu"
|
14
|
-
# end
|
15
|
-
|
16
|
-
# cookbook_kitchen "#{command} learn-the-basics-windows" do
|
17
|
-
# repository "learn-chef/learn-chef-acceptance"
|
18
|
-
# cookbook_relative_dir "cookbooks/learn-the-basics-windows"
|
19
|
-
# end
|
20
|
-
|
21
|
-
cookbook_kitchen "#{command} powershell" do
|
22
|
-
end
|
23
|
-
|
24
|
-
cookbook_kitchen "#{command} iis" do
|
25
|
-
end
|
26
|
-
|
27
|
-
cookbook_kitchen "#{command} sql_server" do
|
28
|
-
end
|
29
|
-
|
30
|
-
cookbook_kitchen "#{command} winbox" do
|
31
|
-
repository "adamedx/winbox"
|
32
|
-
end
|
33
|
-
|
34
|
-
# cookbook_kitchen "#{command} windows" do
|
35
|
-
# end
|
36
|
-
|
37
|
-
# cookbook_kitchen "#{command} chocolatey" do
|
38
|
-
# repository "chocolatey/chocolatey-cookbook"
|
39
|
-
# end
|
40
|
-
end
|
41
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
top_cookbooks "destroy"
|
@@ -1 +0,0 @@
|
|
1
|
-
top_cookbooks "converge"
|
@@ -1 +0,0 @@
|
|
1
|
-
top_cookbooks "verify"
|
@@ -1 +0,0 @@
|
|
1
|
-
test_run/
|
@@ -1,38 +0,0 @@
|
|
1
|
-
suites:
|
2
|
-
# Waiting on https://github.com/chef-cookbooks/windows/pull/350
|
3
|
-
# - name: tasks
|
4
|
-
# run_list:
|
5
|
-
# - recipe[windows::default]
|
6
|
-
# - recipe[minimal::tasks]
|
7
|
-
# includes: [windows-2012r2]
|
8
|
-
- name: path
|
9
|
-
run_list:
|
10
|
-
- recipe[windows::default]
|
11
|
-
- recipe[minimal::path]
|
12
|
-
includes: [windows-2012r2]
|
13
|
-
- name: certificate
|
14
|
-
run_list:
|
15
|
-
- recipe[windows::default]
|
16
|
-
- recipe[minimal::certificate]
|
17
|
-
includes: [windows-2012r2]
|
18
|
-
# Package is deprecated
|
19
|
-
# - name: package
|
20
|
-
# run_list:
|
21
|
-
# - recipe[windows::default]
|
22
|
-
# - recipe[minimal::package]
|
23
|
-
# includes: [windows-2012r2]
|
24
|
-
- name: feature
|
25
|
-
run_list:
|
26
|
-
- recipe[windows::default]
|
27
|
-
- recipe[minimal::feature]
|
28
|
-
includes: [windows-2012r2]
|
29
|
-
- name: http_acl
|
30
|
-
run_list:
|
31
|
-
- recipe[windows::default]
|
32
|
-
- recipe[minimal::http_acl]
|
33
|
-
includes: [windows-2012r2]
|
34
|
-
- name: font
|
35
|
-
run_list:
|
36
|
-
- recipe[windows::default]
|
37
|
-
- recipe[minimal::font]
|
38
|
-
includes: [windows-2012r2]
|
@@ -1 +0,0 @@
|
|
1
|
-
kitchen "destroy"
|
@@ -1 +0,0 @@
|
|
1
|
-
kitchen "setup"
|
@@ -1 +0,0 @@
|
|
1
|
-
kitchen "verify"
|
@@ -1 +0,0 @@
|
|
1
|
-
#kitchen "destroy"
|
@@ -1 +0,0 @@
|
|
1
|
-
#kitchen "converge"
|
@@ -1 +0,0 @@
|
|
1
|
-
#kitchen "verify"
|
@@ -1,58 +0,0 @@
|
|
1
|
-
only_if do
|
2
|
-
os["family"] == "windows"
|
3
|
-
end
|
4
|
-
|
5
|
-
describe command("chef-service-manager") do
|
6
|
-
it { should exist }
|
7
|
-
its("exit_status") { should eq 0 }
|
8
|
-
end
|
9
|
-
|
10
|
-
describe service("chef-client") do
|
11
|
-
it { should_not be_enabled }
|
12
|
-
it { should_not be_installed }
|
13
|
-
it { should_not be_running }
|
14
|
-
end
|
15
|
-
|
16
|
-
describe command("/opscode/chef/bin/chef-service-manager.bat -a install") do
|
17
|
-
its("exit_status") { should eq 0 }
|
18
|
-
its(:stdout) { should match /Service 'chef-client' has successfully been installed./ }
|
19
|
-
end
|
20
|
-
|
21
|
-
describe service("chef-client") do
|
22
|
-
it { should be_enabled }
|
23
|
-
it { should be_installed }
|
24
|
-
it { should_not be_running }
|
25
|
-
end
|
26
|
-
|
27
|
-
describe command("/opscode/chef/bin/chef-service-manager.bat -a start") do
|
28
|
-
its("exit_status") { should eq 0 }
|
29
|
-
its(:stdout) { should match /Service 'chef-client' is now 'running'/ }
|
30
|
-
end
|
31
|
-
|
32
|
-
describe service("chef-client") do
|
33
|
-
it { should be_enabled }
|
34
|
-
it { should be_installed }
|
35
|
-
it { should be_running }
|
36
|
-
end
|
37
|
-
|
38
|
-
describe command("/opscode/chef/bin/chef-service-manager.bat -a stop") do
|
39
|
-
its("exit_status") { should eq 0 }
|
40
|
-
its(:stdout) { should match /Service 'chef-client' is now 'stopped'/ }
|
41
|
-
end
|
42
|
-
|
43
|
-
describe service("chef-client") do
|
44
|
-
it { should be_enabled }
|
45
|
-
it { should be_installed }
|
46
|
-
it { should_not be_running }
|
47
|
-
end
|
48
|
-
|
49
|
-
describe command("/opscode/chef/bin/chef-service-manager.bat -a uninstall") do
|
50
|
-
its("exit_status") { should eq 0 }
|
51
|
-
its(:stdout) { should match /Service chef-client deleted/ }
|
52
|
-
end
|
53
|
-
|
54
|
-
describe service("chef-client") do
|
55
|
-
it { should_not be_enabled }
|
56
|
-
it { should_not be_installed }
|
57
|
-
it { should_not be_running }
|
58
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
=====================================================
|
2
|
-
chef-client
|
3
|
-
=====================================================
|
4
|
-
|
5
|
-
.. include:: ../../includes_chef_client/includes_chef_client.rst
|
6
|
-
|
7
|
-
.. include:: ../../includes_ctl_chef_client/includes_ctl_chef_client.rst
|
8
|
-
|
9
|
-
.. note:: .. include:: ../../includes_config/includes_config_rb_client.rst
|
10
|
-
|
11
|
-
Options
|
12
|
-
=====================================================
|
13
|
-
.. include:: ../../release_chef_12-0/includes_ctl_chef_client_options.rst
|
14
|
-
|
15
|
-
Run with Elevated Privileges
|
16
|
-
=====================================================
|
17
|
-
.. include:: ../../includes_ctl_chef_client/includes_ctl_chef_client_elevated_privileges.rst
|
18
|
-
|
19
|
-
Linux
|
20
|
-
-----------------------------------------------------
|
21
|
-
.. include:: ../../includes_ctl_chef_client/includes_ctl_chef_client_elevated_privileges_linux.rst
|
22
|
-
|
23
|
-
Windows
|
24
|
-
-----------------------------------------------------
|
25
|
-
.. include:: ../../includes_ctl_chef_client/includes_ctl_chef_client_elevated_privileges_windows.rst
|
26
|
-
|
27
|
-
Examples
|
28
|
-
=====================================================
|
29
|
-
|
30
|
-
**Start a Chef run when the chef-client is running as a daemon**
|
31
|
-
|
32
|
-
.. include:: ../../step_ctl_chef_client/step_ctl_chef_client_start_chef_run_daemon.rst
|
33
|
-
|
34
|
-
**Start a Chef run manually**
|
35
|
-
|
36
|
-
.. include:: ../../step_ctl_chef_client/step_ctl_chef_client_start_chef_run_manual.rst
|