chef 0.10.8 → 0.10.10.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/distro/arch/etc/rc.d/chef-client +15 -1
- data/distro/common/html/chef-client.8.html +4 -4
- data/distro/common/html/chef-expander.8.html +4 -4
- data/distro/common/html/chef-expanderctl.8.html +4 -4
- data/distro/common/html/chef-server-webui.8.html +4 -4
- data/distro/common/html/chef-server.8.html +4 -4
- data/distro/common/html/chef-solo.8.html +4 -4
- data/distro/common/html/chef-solr.8.html +4 -4
- data/distro/common/html/knife-bootstrap.1.html +6 -10
- data/distro/common/html/knife-client.1.html +4 -4
- data/distro/common/html/knife-configure.1.html +4 -4
- data/distro/common/html/knife-cookbook-site.1.html +6 -6
- data/distro/common/html/knife-cookbook.1.html +4 -4
- data/distro/common/html/knife-data-bag.1.html +4 -4
- data/distro/common/html/knife-environment.1.html +4 -4
- data/distro/common/html/knife-exec.1.html +4 -4
- data/distro/common/html/knife-index.1.html +4 -4
- data/distro/common/html/knife-node.1.html +5 -5
- data/distro/common/html/knife-role.1.html +4 -4
- data/distro/common/html/knife-search.1.html +4 -4
- data/distro/common/html/knife-ssh.1.html +5 -6
- data/distro/common/html/knife-status.1.html +4 -4
- data/distro/common/html/knife-tag.1.html +4 -4
- data/distro/common/html/knife.1.html +7 -8
- data/distro/common/html/shef.1.html +4 -4
- data/distro/common/man/man1/knife-bootstrap.1 +4 -4
- data/distro/common/man/man1/knife-client.1 +1 -1
- data/distro/common/man/man1/knife-configure.1 +1 -1
- data/distro/common/man/man1/knife-cookbook-site.1 +4 -4
- data/distro/common/man/man1/knife-cookbook.1 +1 -1
- data/distro/common/man/man1/knife-data-bag.1 +1 -1
- data/distro/common/man/man1/knife-environment.1 +1 -1
- data/distro/common/man/man1/knife-exec.1 +1 -1
- data/distro/common/man/man1/knife-index.1 +1 -1
- data/distro/common/man/man1/knife-node.1 +2 -2
- data/distro/common/man/man1/knife-role.1 +1 -1
- data/distro/common/man/man1/knife-search.1 +1 -1
- data/distro/common/man/man1/knife-ssh.1 +3 -7
- data/distro/common/man/man1/knife-status.1 +1 -1
- data/distro/common/man/man1/knife-tag.1 +1 -1
- data/distro/common/man/man1/knife.1 +5 -9
- data/distro/common/man/man1/shef.1 +1 -1
- data/distro/common/man/man8/chef-client.8 +1 -1
- data/distro/common/man/man8/chef-expander.8 +1 -1
- data/distro/common/man/man8/chef-expanderctl.8 +1 -1
- data/distro/common/man/man8/chef-server-webui.8 +1 -1
- data/distro/common/man/man8/chef-server.8 +1 -1
- data/distro/common/man/man8/chef-solo.8 +1 -1
- data/distro/common/man/man8/chef-solr.8 +1 -1
- data/distro/common/markdown/man1/knife-bootstrap.mkd +3 -7
- data/distro/common/markdown/man1/knife-cookbook-site.mkd +3 -3
- data/distro/common/markdown/man1/knife-node.mkd +2 -2
- data/distro/common/markdown/man1/knife-ssh.mkd +2 -5
- data/distro/common/markdown/man1/knife.mkd +7 -9
- data/distro/debian/etc/init.d/chef-client +22 -1
- data/distro/redhat/etc/init.d/chef-client +12 -1
- data/distro/windows/service_manager.rb +164 -0
- data/lib/chef/application.rb +12 -6
- data/lib/chef/application/client.rb +4 -3
- data/lib/chef/application/knife.rb +7 -12
- data/lib/chef/application/solo.rb +2 -1
- data/lib/chef/application/windows_service.rb +224 -0
- data/lib/chef/checksum_cache.rb +1 -0
- data/lib/chef/client.rb +3 -16
- data/lib/chef/config.rb +42 -13
- data/lib/chef/cookbook/metadata.rb +1 -1
- data/lib/chef/cookbook/syntax_check.rb +2 -2
- data/lib/chef/cookbook_version.rb +5 -0
- data/lib/chef/daemon.rb +1 -1
- data/lib/chef/exceptions.rb +7 -1
- data/lib/chef/file_access_control.rb +13 -87
- data/lib/chef/file_access_control/unix.rb +119 -0
- data/lib/chef/file_access_control/windows.rb +257 -0
- data/lib/chef/handler/json_file.rb +7 -1
- data/lib/chef/knife.rb +10 -16
- data/lib/chef/knife/bootstrap.rb +15 -8
- data/lib/chef/knife/bootstrap/centos5-gems.erb +1 -1
- data/lib/chef/knife/bootstrap/chef-full.erb +59 -0
- data/lib/chef/knife/bootstrap/ubuntu10.04-apt.erb +1 -0
- data/lib/chef/knife/configure.rb +2 -2
- data/lib/chef/knife/cookbook_site_download.rb +60 -21
- data/lib/chef/knife/cookbook_site_install.rb +16 -21
- data/lib/chef/knife/cookbook_upload.rb +77 -48
- data/lib/chef/knife/core/bootstrap_context.rb +3 -1
- data/lib/chef/knife/core/cookbook_scm_repo.rb +1 -1
- data/lib/chef/knife/core/node_editor.rb +1 -1
- data/lib/chef/knife/core/subcommand_loader.rb +1 -1
- data/lib/chef/knife/core/ui.rb +3 -2
- data/lib/chef/knife/help_topics.rb +1 -1
- data/lib/chef/knife/node_run_list_add.rb +14 -6
- data/lib/chef/knife/node_run_list_remove.rb +3 -3
- data/lib/chef/knife/ssh.rb +32 -13
- data/lib/chef/mash.rb +14 -0
- data/lib/chef/mixin/command.rb +1 -0
- data/lib/chef/mixin/command/unix.rb +5 -0
- data/lib/chef/mixin/convert_to_class_name.rb +2 -0
- data/lib/chef/mixin/deep_merge.rb +40 -18
- data/lib/chef/mixin/enforce_ownership_and_permissions.rb +39 -0
- data/lib/chef/mixin/language.rb +89 -3
- data/lib/chef/mixin/language_include_recipe.rb +8 -4
- data/lib/chef/mixin/path_sanity.rb +67 -0
- data/lib/chef/mixin/recipe_definition_dsl_core.rb +19 -11
- data/lib/chef/mixin/securable.rb +152 -0
- data/lib/chef/mixin/shell_out.rb +1 -1
- data/lib/chef/mixin/template.rb +8 -3
- data/lib/chef/mixins.rb +3 -0
- data/lib/chef/monkey_patches/moneta.rb +50 -0
- data/lib/chef/monkey_patches/string.rb +1 -1
- data/lib/chef/node.rb +2 -1
- data/lib/chef/platform.rb +34 -0
- data/lib/chef/provider.rb +23 -21
- data/lib/chef/provider/cron.rb +17 -12
- data/lib/chef/provider/cron/solaris.rb +6 -18
- data/lib/chef/provider/deploy.rb +14 -15
- data/lib/chef/provider/deploy/timestamped.rb +0 -1
- data/lib/chef/provider/directory.rb +1 -3
- data/lib/chef/provider/execute.rb +2 -2
- data/lib/chef/provider/file.rb +1 -75
- data/lib/chef/provider/git.rb +11 -9
- data/lib/chef/provider/group/gpasswd.rb +14 -9
- data/lib/chef/provider/link.rb +28 -59
- data/lib/chef/provider/mdadm.rb +2 -2
- data/lib/chef/provider/mount/mount.rb +1 -1
- data/lib/chef/provider/package.rb +10 -6
- data/lib/chef/provider/package/apt.rb +3 -1
- data/lib/chef/provider/package/dpkg.rb +1 -1
- data/lib/chef/provider/package/portage.rb +6 -3
- data/lib/chef/provider/package/rubygems.rb +75 -6
- data/lib/chef/provider/package/smartos.rb +84 -0
- data/lib/chef/provider/package/yum-dump.py +3 -2
- data/lib/chef/provider/package/yum.rb +51 -10
- data/lib/chef/provider/remote_directory.rb +24 -3
- data/lib/chef/provider/remote_file.rb +0 -6
- data/lib/chef/provider/route.rb +3 -3
- data/lib/chef/provider/service/debian.rb +2 -2
- data/lib/chef/provider/service/freebsd.rb +1 -1
- data/lib/chef/provider/service/macosx.rb +125 -0
- data/lib/chef/provider/service/windows.rb +5 -1
- data/lib/chef/provider/subversion.rb +10 -7
- data/lib/chef/providers.rb +3 -0
- data/lib/chef/resource.rb +181 -87
- data/lib/chef/resource/apt_package.rb +10 -1
- data/lib/chef/resource/chef_gem.rb +53 -0
- data/lib/chef/resource/conditional.rb +3 -0
- data/lib/chef/resource/cookbook_file.rb +12 -6
- data/lib/chef/resource/cron.rb +9 -0
- data/lib/chef/resource/directory.rb +14 -31
- data/lib/chef/resource/execute.rb +11 -9
- data/lib/chef/resource/file.rb +9 -33
- data/lib/chef/resource/link.rb +13 -8
- data/lib/chef/resource/mdadm.rb +10 -1
- data/lib/chef/resource/remote_directory.rb +13 -2
- data/lib/chef/resource/remote_file.rb +14 -7
- data/lib/chef/resource/smartos_package.rb +36 -0
- data/lib/chef/resource/template.rb +12 -5
- data/lib/chef/resource_platform_map.rb +153 -0
- data/lib/chef/resources.rb +2 -0
- data/lib/chef/rest.rb +55 -10
- data/lib/chef/rest/auth_credentials.rb +1 -0
- data/lib/chef/rest/rest_request.rb +24 -8
- data/lib/chef/role.rb +8 -2
- data/lib/chef/run_list.rb +1 -1
- data/lib/chef/run_list/run_list_expansion.rb +2 -2
- data/lib/chef/run_list/run_list_item.rb +7 -0
- data/lib/chef/runner.rb +4 -0
- data/lib/chef/shef.rb +2 -2
- data/lib/chef/shef/shef_session.rb +4 -5
- data/lib/chef/shell_out.rb +2 -245
- data/lib/chef/util/file_edit.rb +99 -89
- data/lib/chef/version.rb +1 -1
- data/lib/chef/win32/api.rb +349 -0
- data/lib/chef/win32/api/error.rb +921 -0
- data/lib/chef/win32/api/file.rb +289 -0
- data/lib/chef/win32/api/memory.rb +105 -0
- data/lib/chef/win32/api/process.rb +40 -0
- data/lib/chef/win32/api/psapi.rb +51 -0
- data/lib/chef/win32/api/security.rb +341 -0
- data/lib/chef/win32/api/system.rb +192 -0
- data/lib/chef/win32/api/unicode.rb +178 -0
- data/lib/chef/win32/error.rb +73 -0
- data/lib/chef/win32/file.rb +117 -0
- data/lib/chef/win32/file/info.rb +100 -0
- data/lib/chef/win32/handle.rb +48 -0
- data/lib/chef/win32/memory.rb +101 -0
- data/lib/chef/win32/process.rb +84 -0
- data/lib/chef/win32/security.rb +489 -0
- data/lib/chef/win32/security/ace.rb +125 -0
- data/lib/chef/win32/security/acl.rb +101 -0
- data/lib/chef/win32/security/securable_object.rb +109 -0
- data/lib/chef/win32/security/security_descriptor.rb +93 -0
- data/lib/chef/win32/security/sid.rb +199 -0
- data/lib/chef/win32/security/token.rb +64 -0
- data/lib/chef/win32/unicode.rb +43 -0
- data/lib/chef/win32/version.rb +119 -0
- metadata +104 -158
- data/lib/chef/shell_out/unix.rb +0 -223
- data/lib/chef/shell_out/windows.rb +0 -588
@@ -0,0 +1,64 @@
|
|
1
|
+
#
|
2
|
+
# Author:: John Keiser (<jkeiser@opscode.com>)
|
3
|
+
# Copyright:: Copyright 2011 Opscode, Inc.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'chef/win32/security'
|
20
|
+
require 'chef/win32/api/security'
|
21
|
+
|
22
|
+
require 'ffi'
|
23
|
+
|
24
|
+
class Chef
|
25
|
+
module Win32
|
26
|
+
class Security
|
27
|
+
class Token
|
28
|
+
|
29
|
+
def initialize(handle)
|
30
|
+
@handle = handle
|
31
|
+
end
|
32
|
+
|
33
|
+
attr_reader :handle
|
34
|
+
|
35
|
+
def enable_privileges(*privilege_names)
|
36
|
+
# Build the list of privileges we want to set
|
37
|
+
new_privileges = Chef::Win32::API::Security::TOKEN_PRIVILEGES.new(
|
38
|
+
FFI::MemoryPointer.new(Chef::Win32::API::Security::TOKEN_PRIVILEGES.size_with_privileges(privilege_names.length)))
|
39
|
+
new_privileges[:PrivilegeCount] = 0
|
40
|
+
privilege_names.each do |privilege_name|
|
41
|
+
luid = Chef::Win32::API::Security::LUID.new
|
42
|
+
# Ignore failure (with_privileges TRIES but does not guarantee success--
|
43
|
+
# APIs down the line will fail if privilege escalation fails)
|
44
|
+
if Chef::Win32::API::Security.LookupPrivilegeValueW(nil, privilege_name.to_wstring, luid)
|
45
|
+
new_privilege = new_privileges.privilege(new_privileges[:PrivilegeCount])
|
46
|
+
new_privilege[:Luid][:LowPart] = luid[:LowPart]
|
47
|
+
new_privilege[:Luid][:HighPart] = luid[:HighPart]
|
48
|
+
new_privilege[:Attributes] = Chef::Win32::API::Security::SE_PRIVILEGE_ENABLED
|
49
|
+
new_privileges[:PrivilegeCount] = new_privileges[:PrivilegeCount] + 1
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
old_privileges = Chef::Win32::Security.adjust_token_privileges(self, new_privileges)
|
54
|
+
end
|
55
|
+
|
56
|
+
def adjust_privileges(privileges_struct)
|
57
|
+
if privileges_struct[:PrivilegeCount] > 0
|
58
|
+
Chef::Win32::Security::adjust_token_privileges(self, privileges_struct)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#
|
2
|
+
# Author:: John Keiser (<jkeiser@opscode.com>)
|
3
|
+
# Author:: Seth Chisamore (<schisamo@opscode.com>)
|
4
|
+
# Copyright:: Copyright 2011 Opscode, Inc.
|
5
|
+
# License:: Apache License, Version 2.0
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
require 'chef/win32/api/unicode'
|
21
|
+
|
22
|
+
class Chef
|
23
|
+
module Win32
|
24
|
+
class Unicode
|
25
|
+
include Chef::Win32::API::Unicode
|
26
|
+
extend Chef::Win32::API::Unicode
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
module FFI
|
32
|
+
class Pointer
|
33
|
+
def read_wstring(num_wchars)
|
34
|
+
Chef::Win32::Unicode.wide_to_utf8(self.get_bytes(0, num_wchars*2))
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
class String
|
40
|
+
def to_wstring
|
41
|
+
Chef::Win32::Unicode.utf8_to_wide(self)
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Seth Chisamore (<schisamo@opscode.com>)
|
3
|
+
# Copyright:: Copyright 2011 Opscode, Inc.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'chef/win32/api'
|
20
|
+
require 'chef/win32/api/system'
|
21
|
+
|
22
|
+
class Chef
|
23
|
+
module Win32
|
24
|
+
class Version
|
25
|
+
include Chef::Win32::API::Macros
|
26
|
+
include Chef::Win32::API::System
|
27
|
+
|
28
|
+
# Ruby implementation of
|
29
|
+
# http://msdn.microsoft.com/en-us/library/ms724833(v=vs.85).aspx
|
30
|
+
# http://msdn.microsoft.com/en-us/library/ms724358(v=vs.85).aspx
|
31
|
+
|
32
|
+
WIN_VERSIONS = {
|
33
|
+
"Windows 7" => {:major => 6, :minor => 1, :callable => lambda{ @product_type == VER_NT_WORKSTATION }},
|
34
|
+
"Windows Server 2008 R2" => {:major => 6, :minor => 1, :callable => lambda{ @product_type != VER_NT_WORKSTATION }},
|
35
|
+
"Windows Server 2008" => {:major => 6, :minor => 0, :callable => lambda{ @product_type != VER_NT_WORKSTATION }},
|
36
|
+
"Windows Vista" => {:major => 6, :minor => 0, :callable => lambda{ @product_type == VER_NT_WORKSTATION }},
|
37
|
+
"Windows Server 2003 R2" => {:major => 5, :minor => 2, :callable => lambda{ get_system_metrics(SM_SERVERR2) != 0 }},
|
38
|
+
"Windows Home Server" => {:major => 5, :minor => 2, :callable => lambda{ (@suite_mask & VER_SUITE_WH_SERVER) == VER_SUITE_WH_SERVER }},
|
39
|
+
"Windows Server 2003" => {:major => 5, :minor => 2, :callable => lambda{ get_system_metrics(SM_SERVERR2) == 0 }},
|
40
|
+
"Windows XP" => {:major => 5, :minor => 1},
|
41
|
+
"Windows 2000" => {:major => 5, :minor => 0}
|
42
|
+
}
|
43
|
+
|
44
|
+
def initialize
|
45
|
+
@major_version, @minor_version, @build_number = get_version
|
46
|
+
ver_info = get_version_ex
|
47
|
+
@product_type = ver_info[:w_product_type]
|
48
|
+
@suite_mask = ver_info[:w_suite_mask]
|
49
|
+
@sp_major_version = ver_info[:w_service_pack_major]
|
50
|
+
@sp_minor_version = ver_info[:w_service_pack_minor]
|
51
|
+
@sku = get_product_info(@major_version, @minor_version, @sp_major_version, @sp_minor_version)
|
52
|
+
end
|
53
|
+
|
54
|
+
marketing_names = Array.new
|
55
|
+
|
56
|
+
# General Windows checks
|
57
|
+
WIN_VERSIONS.each do |k,v|
|
58
|
+
method_name = "#{k.gsub(/\s/, '_').downcase}?"
|
59
|
+
define_method(method_name) do
|
60
|
+
(@major_version == v[:major]) &&
|
61
|
+
(@minor_version == v[:minor]) &&
|
62
|
+
(v[:callable] ? v[:callable].call : true)
|
63
|
+
end
|
64
|
+
marketing_names << [k, method_name]
|
65
|
+
end
|
66
|
+
|
67
|
+
define_method(:marketing_name) do
|
68
|
+
marketing_names.each do |mn|
|
69
|
+
break mn[0] if self.send(mn[1])
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Server Type checks
|
74
|
+
%w{ cluster core datacenter }.each do |m|
|
75
|
+
define_method("#{m}?") do
|
76
|
+
self.class.constants.any? do |c|
|
77
|
+
(self.class.const_get(c) == @sku) &&
|
78
|
+
(c.to_s =~ /#{m}/i )
|
79
|
+
end
|
80
|
+
# if @sku
|
81
|
+
# !(PRODUCT_TYPE[@sku][:name] =~ /#{m}/i).nil?
|
82
|
+
# else
|
83
|
+
# false
|
84
|
+
# end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
private
|
89
|
+
|
90
|
+
def get_version
|
91
|
+
version = GetVersion()
|
92
|
+
major = LOBYTE(LOWORD(version))
|
93
|
+
minor = HIBYTE(LOWORD(version))
|
94
|
+
build = version < 0x80000000 ? HIWORD(version) : 0
|
95
|
+
[major, minor, build]
|
96
|
+
end
|
97
|
+
|
98
|
+
def get_version_ex
|
99
|
+
lp_version_info = OSVERSIONINFOEX.new
|
100
|
+
lp_version_info[:dw_os_version_info_size] = OSVERSIONINFOEX.size
|
101
|
+
unless GetVersionExW(lp_version_info)
|
102
|
+
Chef::Win32::Error.raise!
|
103
|
+
end
|
104
|
+
lp_version_info
|
105
|
+
end
|
106
|
+
|
107
|
+
def get_product_info(major, minor, sp_major, sp_minor)
|
108
|
+
out = FFI::MemoryPointer.new(:uint32)
|
109
|
+
GetProductInfo(major, minor, sp_major, sp_minor, out)
|
110
|
+
out.get_uint(0)
|
111
|
+
end
|
112
|
+
|
113
|
+
def get_system_metrics(n_index)
|
114
|
+
GetSystemMetrics(n_index)
|
115
|
+
end
|
116
|
+
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 10
|
9
|
-
- 8
|
10
|
-
version: 0.10.8
|
4
|
+
prerelease: 8
|
5
|
+
version: 0.10.10.beta.1
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Adam Jacob
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
13
|
+
date: 2012-04-06 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: mixlib-config
|
@@ -25,11 +20,6 @@ dependencies:
|
|
25
20
|
requirements:
|
26
21
|
- - ">="
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 23
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 1
|
32
|
-
- 2
|
33
23
|
version: 1.1.2
|
34
24
|
type: :runtime
|
35
25
|
version_requirements: *id001
|
@@ -41,11 +31,6 @@ dependencies:
|
|
41
31
|
requirements:
|
42
32
|
- - ">="
|
43
33
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 19
|
45
|
-
segments:
|
46
|
-
- 1
|
47
|
-
- 1
|
48
|
-
- 0
|
49
34
|
version: 1.1.0
|
50
35
|
type: :runtime
|
51
36
|
version_requirements: *id002
|
@@ -57,11 +42,6 @@ dependencies:
|
|
57
42
|
requirements:
|
58
43
|
- - ">="
|
59
44
|
- !ruby/object:Gem::Version
|
60
|
-
hash: 27
|
61
|
-
segments:
|
62
|
-
- 1
|
63
|
-
- 3
|
64
|
-
- 0
|
65
45
|
version: 1.3.0
|
66
46
|
type: :runtime
|
67
47
|
version_requirements: *id003
|
@@ -73,310 +53,246 @@ dependencies:
|
|
73
53
|
requirements:
|
74
54
|
- - ">="
|
75
55
|
- !ruby/object:Gem::Version
|
76
|
-
hash: 19
|
77
|
-
segments:
|
78
|
-
- 1
|
79
|
-
- 1
|
80
|
-
- 0
|
81
56
|
version: 1.1.0
|
82
57
|
type: :runtime
|
83
58
|
version_requirements: *id004
|
84
59
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
60
|
+
name: mixlib-shellout
|
86
61
|
prerelease: false
|
87
62
|
requirement: &id005 !ruby/object:Gem::Requirement
|
88
63
|
none: false
|
89
64
|
requirements:
|
90
|
-
- -
|
65
|
+
- - ~>
|
91
66
|
- !ruby/object:Gem::Version
|
92
|
-
|
93
|
-
segments:
|
94
|
-
- 0
|
95
|
-
- 6
|
96
|
-
- 0
|
97
|
-
version: 0.6.0
|
67
|
+
version: 1.0.0.rc
|
98
68
|
type: :runtime
|
99
69
|
version_requirements: *id005
|
100
70
|
- !ruby/object:Gem::Dependency
|
101
|
-
name:
|
71
|
+
name: ohai
|
102
72
|
prerelease: false
|
103
73
|
requirement: &id006 !ruby/object:Gem::Requirement
|
104
74
|
none: false
|
105
75
|
requirements:
|
106
76
|
- - ">="
|
107
77
|
- !ruby/object:Gem::Version
|
108
|
-
|
109
|
-
segments:
|
110
|
-
- 1
|
111
|
-
- 0
|
112
|
-
- 4
|
113
|
-
version: 1.0.4
|
114
|
-
- - <
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
hash: 11
|
117
|
-
segments:
|
118
|
-
- 1
|
119
|
-
- 7
|
120
|
-
- 0
|
121
|
-
version: 1.7.0
|
78
|
+
version: 0.6.0
|
122
79
|
type: :runtime
|
123
80
|
version_requirements: *id006
|
124
81
|
- !ruby/object:Gem::Dependency
|
125
|
-
name:
|
82
|
+
name: rest-client
|
126
83
|
prerelease: false
|
127
84
|
requirement: &id007 !ruby/object:Gem::Requirement
|
128
85
|
none: false
|
129
86
|
requirements:
|
130
87
|
- - ">="
|
131
88
|
- !ruby/object:Gem::Version
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
- 0
|
137
|
-
version: 0.6.0
|
89
|
+
version: 1.0.4
|
90
|
+
- - <
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 1.7.0
|
138
93
|
type: :runtime
|
139
94
|
version_requirements: *id007
|
140
95
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
96
|
+
name: bunny
|
142
97
|
prerelease: false
|
143
98
|
requirement: &id008 !ruby/object:Gem::Requirement
|
144
99
|
none: false
|
145
100
|
requirements:
|
146
101
|
- - ">="
|
147
102
|
- !ruby/object:Gem::Version
|
148
|
-
|
149
|
-
segments:
|
150
|
-
- 1
|
151
|
-
- 4
|
152
|
-
- 4
|
153
|
-
version: 1.4.4
|
154
|
-
- - <=
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
hash: 13
|
157
|
-
segments:
|
158
|
-
- 1
|
159
|
-
- 6
|
160
|
-
- 1
|
161
|
-
version: 1.6.1
|
103
|
+
version: 0.6.0
|
162
104
|
type: :runtime
|
163
105
|
version_requirements: *id008
|
164
106
|
- !ruby/object:Gem::Dependency
|
165
|
-
name:
|
107
|
+
name: json
|
166
108
|
prerelease: false
|
167
109
|
requirement: &id009 !ruby/object:Gem::Requirement
|
168
110
|
none: false
|
169
111
|
requirements:
|
170
|
-
- -
|
112
|
+
- - ">="
|
171
113
|
- !ruby/object:Gem::Version
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
- 9
|
177
|
-
version: 1.4.9
|
114
|
+
version: 1.4.4
|
115
|
+
- - <=
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.6.1
|
178
118
|
type: :runtime
|
179
119
|
version_requirements: *id009
|
180
120
|
- !ruby/object:Gem::Dependency
|
181
|
-
name:
|
121
|
+
name: treetop
|
182
122
|
prerelease: false
|
183
123
|
requirement: &id010 !ruby/object:Gem::Requirement
|
184
124
|
none: false
|
185
125
|
requirements:
|
186
126
|
- - ~>
|
187
127
|
- !ruby/object:Gem::Version
|
188
|
-
|
189
|
-
segments:
|
190
|
-
- 2
|
191
|
-
- 1
|
192
|
-
- 3
|
193
|
-
version: 2.1.3
|
128
|
+
version: 1.4.9
|
194
129
|
type: :runtime
|
195
130
|
version_requirements: *id010
|
196
131
|
- !ruby/object:Gem::Dependency
|
197
|
-
name: net-ssh
|
132
|
+
name: net-ssh
|
198
133
|
prerelease: false
|
199
134
|
requirement: &id011 !ruby/object:Gem::Requirement
|
200
135
|
none: false
|
201
136
|
requirements:
|
202
137
|
- - ~>
|
203
138
|
- !ruby/object:Gem::Version
|
204
|
-
|
205
|
-
segments:
|
206
|
-
- 1
|
207
|
-
- 1
|
208
|
-
- 0
|
209
|
-
version: 1.1.0
|
139
|
+
version: 2.2.2
|
210
140
|
type: :runtime
|
211
141
|
version_requirements: *id011
|
212
142
|
- !ruby/object:Gem::Dependency
|
213
|
-
name:
|
143
|
+
name: net-ssh-multi
|
214
144
|
prerelease: false
|
215
145
|
requirement: &id012 !ruby/object:Gem::Requirement
|
216
146
|
none: false
|
217
147
|
requirements:
|
218
|
-
- -
|
148
|
+
- - ~>
|
219
149
|
- !ruby/object:Gem::Version
|
220
|
-
|
221
|
-
segments:
|
222
|
-
- 0
|
223
|
-
version: "0"
|
150
|
+
version: 1.1.0
|
224
151
|
type: :runtime
|
225
152
|
version_requirements: *id012
|
226
153
|
- !ruby/object:Gem::Dependency
|
227
|
-
name:
|
154
|
+
name: erubis
|
228
155
|
prerelease: false
|
229
156
|
requirement: &id013 !ruby/object:Gem::Requirement
|
230
157
|
none: false
|
231
158
|
requirements:
|
232
159
|
- - ">="
|
233
160
|
- !ruby/object:Gem::Version
|
234
|
-
hash: 3
|
235
|
-
segments:
|
236
|
-
- 0
|
237
161
|
version: "0"
|
238
162
|
type: :runtime
|
239
163
|
version_requirements: *id013
|
240
164
|
- !ruby/object:Gem::Dependency
|
241
|
-
name:
|
165
|
+
name: moneta
|
242
166
|
prerelease: false
|
243
167
|
requirement: &id014 !ruby/object:Gem::Requirement
|
244
168
|
none: false
|
245
169
|
requirements:
|
246
170
|
- - ">="
|
247
171
|
- !ruby/object:Gem::Version
|
248
|
-
hash: 3
|
249
|
-
segments:
|
250
|
-
- 0
|
251
172
|
version: "0"
|
252
173
|
type: :runtime
|
253
174
|
version_requirements: *id014
|
254
175
|
- !ruby/object:Gem::Dependency
|
255
|
-
name:
|
176
|
+
name: highline
|
256
177
|
prerelease: false
|
257
178
|
requirement: &id015 !ruby/object:Gem::Requirement
|
258
179
|
none: false
|
259
180
|
requirements:
|
260
181
|
- - ">="
|
261
182
|
- !ruby/object:Gem::Version
|
262
|
-
hash: 3
|
263
|
-
segments:
|
264
|
-
- 0
|
265
183
|
version: "0"
|
266
184
|
type: :runtime
|
267
185
|
version_requirements: *id015
|
268
186
|
- !ruby/object:Gem::Dependency
|
269
|
-
name:
|
187
|
+
name: uuidtools
|
270
188
|
prerelease: false
|
271
189
|
requirement: &id016 !ruby/object:Gem::Requirement
|
272
190
|
none: false
|
273
191
|
requirements:
|
274
192
|
- - ">="
|
275
193
|
- !ruby/object:Gem::Version
|
276
|
-
hash: 3
|
277
|
-
segments:
|
278
|
-
- 0
|
279
194
|
version: "0"
|
280
|
-
type: :
|
195
|
+
type: :runtime
|
281
196
|
version_requirements: *id016
|
282
197
|
- !ruby/object:Gem::Dependency
|
283
|
-
name:
|
198
|
+
name: rdoc
|
284
199
|
prerelease: false
|
285
200
|
requirement: &id017 !ruby/object:Gem::Requirement
|
286
201
|
none: false
|
287
202
|
requirements:
|
288
203
|
- - ">="
|
289
204
|
- !ruby/object:Gem::Version
|
290
|
-
hash: 3
|
291
|
-
segments:
|
292
|
-
- 0
|
293
205
|
version: "0"
|
294
206
|
type: :development
|
295
207
|
version_requirements: *id017
|
296
208
|
- !ruby/object:Gem::Dependency
|
297
|
-
name:
|
209
|
+
name: sdoc
|
298
210
|
prerelease: false
|
299
211
|
requirement: &id018 !ruby/object:Gem::Requirement
|
300
212
|
none: false
|
301
213
|
requirements:
|
302
214
|
- - ">="
|
303
215
|
- !ruby/object:Gem::Version
|
304
|
-
hash: 3
|
305
|
-
segments:
|
306
|
-
- 0
|
307
216
|
version: "0"
|
308
217
|
type: :development
|
309
218
|
version_requirements: *id018
|
310
219
|
- !ruby/object:Gem::Dependency
|
311
|
-
name:
|
220
|
+
name: ronn
|
312
221
|
prerelease: false
|
313
222
|
requirement: &id019 !ruby/object:Gem::Requirement
|
314
223
|
none: false
|
315
224
|
requirements:
|
316
225
|
- - ">="
|
317
226
|
- !ruby/object:Gem::Version
|
318
|
-
hash: 3
|
319
|
-
segments:
|
320
|
-
- 0
|
321
227
|
version: "0"
|
322
228
|
type: :development
|
323
229
|
version_requirements: *id019
|
324
230
|
- !ruby/object:Gem::Dependency
|
325
|
-
name:
|
231
|
+
name: rake
|
326
232
|
prerelease: false
|
327
233
|
requirement: &id020 !ruby/object:Gem::Requirement
|
328
234
|
none: false
|
329
235
|
requirements:
|
330
236
|
- - ">="
|
331
237
|
- !ruby/object:Gem::Version
|
332
|
-
hash: 3
|
333
|
-
segments:
|
334
|
-
- 0
|
335
238
|
version: "0"
|
336
239
|
type: :development
|
337
240
|
version_requirements: *id020
|
338
241
|
- !ruby/object:Gem::Dependency
|
339
|
-
name:
|
242
|
+
name: rack
|
340
243
|
prerelease: false
|
341
244
|
requirement: &id021 !ruby/object:Gem::Requirement
|
342
245
|
none: false
|
343
246
|
requirements:
|
344
247
|
- - ">="
|
345
248
|
- !ruby/object:Gem::Version
|
346
|
-
hash: 3
|
347
|
-
segments:
|
348
|
-
- 0
|
349
249
|
version: "0"
|
350
250
|
type: :development
|
351
251
|
version_requirements: *id021
|
352
252
|
- !ruby/object:Gem::Dependency
|
353
|
-
name:
|
253
|
+
name: rspec_junit_formatter
|
354
254
|
prerelease: false
|
355
255
|
requirement: &id022 !ruby/object:Gem::Requirement
|
356
256
|
none: false
|
357
257
|
requirements:
|
358
258
|
- - ">="
|
359
259
|
- !ruby/object:Gem::Version
|
360
|
-
hash: 3
|
361
|
-
segments:
|
362
|
-
- 0
|
363
260
|
version: "0"
|
364
261
|
type: :development
|
365
262
|
version_requirements: *id022
|
366
263
|
- !ruby/object:Gem::Dependency
|
367
|
-
name: rspec-
|
264
|
+
name: rspec-core
|
368
265
|
prerelease: false
|
369
266
|
requirement: &id023 !ruby/object:Gem::Requirement
|
370
267
|
none: false
|
371
268
|
requirements:
|
372
|
-
- -
|
269
|
+
- - ~>
|
373
270
|
- !ruby/object:Gem::Version
|
374
|
-
|
375
|
-
segments:
|
376
|
-
- 0
|
377
|
-
version: "0"
|
271
|
+
version: 2.8.0
|
378
272
|
type: :development
|
379
273
|
version_requirements: *id023
|
274
|
+
- !ruby/object:Gem::Dependency
|
275
|
+
name: rspec-expectations
|
276
|
+
prerelease: false
|
277
|
+
requirement: &id024 !ruby/object:Gem::Requirement
|
278
|
+
none: false
|
279
|
+
requirements:
|
280
|
+
- - ~>
|
281
|
+
- !ruby/object:Gem::Version
|
282
|
+
version: 2.8.0
|
283
|
+
type: :development
|
284
|
+
version_requirements: *id024
|
285
|
+
- !ruby/object:Gem::Dependency
|
286
|
+
name: rspec-mocks
|
287
|
+
prerelease: false
|
288
|
+
requirement: &id025 !ruby/object:Gem::Requirement
|
289
|
+
none: false
|
290
|
+
requirements:
|
291
|
+
- - ~>
|
292
|
+
- !ruby/object:Gem::Version
|
293
|
+
version: 2.8.0
|
294
|
+
type: :development
|
295
|
+
version_requirements: *id025
|
380
296
|
description: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
|
381
297
|
email: adam@opscode.com
|
382
298
|
executables:
|
@@ -506,12 +422,13 @@ files:
|
|
506
422
|
- distro/debian/etc/init/chef-solr.conf
|
507
423
|
- distro/debian/etc/init/chef-expander.conf
|
508
424
|
- distro/debian/etc/init/chef-server.conf
|
425
|
+
- distro/windows/service_manager.rb
|
509
426
|
- distro/README
|
510
|
-
- lib/chef/shell_out/windows.rb
|
511
|
-
- lib/chef/shell_out/unix.rb
|
512
427
|
- lib/chef/handler.rb
|
513
428
|
- lib/chef/solr_query.rb
|
514
429
|
- lib/chef/runner.rb
|
430
|
+
- lib/chef/file_access_control/windows.rb
|
431
|
+
- lib/chef/file_access_control/unix.rb
|
515
432
|
- lib/chef/providers.rb
|
516
433
|
- lib/chef/exceptions.rb
|
517
434
|
- lib/chef/file_cache.rb
|
@@ -595,6 +512,7 @@ files:
|
|
595
512
|
- lib/chef/knife/cookbook_list.rb
|
596
513
|
- lib/chef/knife/client_list.rb
|
597
514
|
- lib/chef/knife/bootstrap/ubuntu10.04-gems.erb
|
515
|
+
- lib/chef/knife/bootstrap/chef-full.erb
|
598
516
|
- lib/chef/knife/bootstrap/archlinux-gems.erb
|
599
517
|
- lib/chef/knife/bootstrap/fedora13-gems.erb
|
600
518
|
- lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
|
@@ -621,6 +539,7 @@ files:
|
|
621
539
|
- lib/chef/monkey_patches/numeric.rb
|
622
540
|
- lib/chef/monkey_patches/object.rb
|
623
541
|
- lib/chef/monkey_patches/regexp.rb
|
542
|
+
- lib/chef/monkey_patches/moneta.rb
|
624
543
|
- lib/chef/monkey_patches/tempfile.rb
|
625
544
|
- lib/chef/shef.rb
|
626
545
|
- lib/chef/handler/json_file.rb
|
@@ -637,6 +556,7 @@ files:
|
|
637
556
|
- lib/chef/provider/subversion.rb
|
638
557
|
- lib/chef/provider/package/easy_install.rb
|
639
558
|
- lib/chef/provider/package/solaris.rb
|
559
|
+
- lib/chef/provider/package/smartos.rb
|
640
560
|
- lib/chef/provider/package/rubygems.rb
|
641
561
|
- lib/chef/provider/package/macports.rb
|
642
562
|
- lib/chef/provider/package/yum-dump.py
|
@@ -659,6 +579,7 @@ files:
|
|
659
579
|
- lib/chef/provider/service/invokercd.rb
|
660
580
|
- lib/chef/provider/service/redhat.rb
|
661
581
|
- lib/chef/provider/service/simple.rb
|
582
|
+
- lib/chef/provider/service/macosx.rb
|
662
583
|
- lib/chef/provider/service/debian.rb
|
663
584
|
- lib/chef/provider/service/gentoo.rb
|
664
585
|
- lib/chef/provider/service/insserv.rb
|
@@ -720,12 +641,37 @@ files:
|
|
720
641
|
- lib/chef/role.rb
|
721
642
|
- lib/chef/openid_registration.rb
|
722
643
|
- lib/chef/application/agent.rb
|
644
|
+
- lib/chef/application/windows_service.rb
|
723
645
|
- lib/chef/application/client.rb
|
724
646
|
- lib/chef/application/solo.rb
|
725
647
|
- lib/chef/application/knife.rb
|
726
648
|
- lib/chef/run_status.rb
|
727
649
|
- lib/chef/couchdb.rb
|
728
650
|
- lib/chef/checksum_cache.rb
|
651
|
+
- lib/chef/win32/memory.rb
|
652
|
+
- lib/chef/win32/version.rb
|
653
|
+
- lib/chef/win32/security/token.rb
|
654
|
+
- lib/chef/win32/security/sid.rb
|
655
|
+
- lib/chef/win32/security/ace.rb
|
656
|
+
- lib/chef/win32/security/security_descriptor.rb
|
657
|
+
- lib/chef/win32/security/securable_object.rb
|
658
|
+
- lib/chef/win32/security/acl.rb
|
659
|
+
- lib/chef/win32/api.rb
|
660
|
+
- lib/chef/win32/handle.rb
|
661
|
+
- lib/chef/win32/process.rb
|
662
|
+
- lib/chef/win32/file.rb
|
663
|
+
- lib/chef/win32/security.rb
|
664
|
+
- lib/chef/win32/api/memory.rb
|
665
|
+
- lib/chef/win32/api/psapi.rb
|
666
|
+
- lib/chef/win32/api/process.rb
|
667
|
+
- lib/chef/win32/api/file.rb
|
668
|
+
- lib/chef/win32/api/system.rb
|
669
|
+
- lib/chef/win32/api/security.rb
|
670
|
+
- lib/chef/win32/api/error.rb
|
671
|
+
- lib/chef/win32/api/unicode.rb
|
672
|
+
- lib/chef/win32/file/info.rb
|
673
|
+
- lib/chef/win32/error.rb
|
674
|
+
- lib/chef/win32/unicode.rb
|
729
675
|
- lib/chef/index_queue/amqp_client.rb
|
730
676
|
- lib/chef/index_queue/consumer.rb
|
731
677
|
- lib/chef/index_queue/indexable.rb
|
@@ -772,12 +718,14 @@ files:
|
|
772
718
|
- lib/chef/resource/ohai.rb
|
773
719
|
- lib/chef/resource/timestamped_deploy.rb
|
774
720
|
- lib/chef/resource/apt_package.rb
|
721
|
+
- lib/chef/resource/chef_gem.rb
|
775
722
|
- lib/chef/resource/template.rb
|
776
723
|
- lib/chef/resource/git.rb
|
777
724
|
- lib/chef/resource/link.rb
|
778
725
|
- lib/chef/resource/perl.rb
|
779
726
|
- lib/chef/resource/pacman_package.rb
|
780
727
|
- lib/chef/resource/yum_package.rb
|
728
|
+
- lib/chef/resource/smartos_package.rb
|
781
729
|
- lib/chef/resource/solaris_package.rb
|
782
730
|
- lib/chef/resource/service.rb
|
783
731
|
- lib/chef/resource/dpkg_package.rb
|
@@ -820,6 +768,7 @@ files:
|
|
820
768
|
- lib/chef/mixin/template.rb
|
821
769
|
- lib/chef/mixin/command/windows.rb
|
822
770
|
- lib/chef/mixin/command/unix.rb
|
771
|
+
- lib/chef/mixin/enforce_ownership_and_permissions.rb
|
823
772
|
- lib/chef/mixin/from_file.rb
|
824
773
|
- lib/chef/mixin/recipe_definition_dsl_core.rb
|
825
774
|
- lib/chef/mixin/get_source_from_package.rb
|
@@ -828,10 +777,13 @@ files:
|
|
828
777
|
- lib/chef/mixin/xml_escape.rb
|
829
778
|
- lib/chef/mixin/language_include_recipe.rb
|
830
779
|
- lib/chef/mixin/check_helper.rb
|
780
|
+
- lib/chef/mixin/path_sanity.rb
|
831
781
|
- lib/chef/mixin/command.rb
|
832
782
|
- lib/chef/mixin/params_validate.rb
|
783
|
+
- lib/chef/mixin/securable.rb
|
833
784
|
- lib/chef/mixin/language_include_attribute.rb
|
834
785
|
- lib/chef/json_compat.rb
|
786
|
+
- lib/chef/resource_platform_map.rb
|
835
787
|
- lib/chef/knife.rb
|
836
788
|
- lib/chef/version_class.rb
|
837
789
|
- lib/chef.rb
|
@@ -852,19 +804,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
852
804
|
requirements:
|
853
805
|
- - ">="
|
854
806
|
- !ruby/object:Gem::Version
|
855
|
-
hash: 3
|
856
|
-
segments:
|
857
|
-
- 0
|
858
807
|
version: "0"
|
859
808
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
860
809
|
none: false
|
861
810
|
requirements:
|
862
|
-
- - "
|
811
|
+
- - ">"
|
863
812
|
- !ruby/object:Gem::Version
|
864
|
-
|
865
|
-
segments:
|
866
|
-
- 0
|
867
|
-
version: "0"
|
813
|
+
version: 1.3.1
|
868
814
|
requirements: []
|
869
815
|
|
870
816
|
rubyforge_project:
|