chef 18.5.0 → 18.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +11 -6
- data/chef-universal-mingw-ucrt.gemspec +1 -1
- data/chef.gemspec +19 -15
- data/lib/chef/application/client.rb +0 -12
- data/lib/chef/client.rb +1 -10
- data/lib/chef/compliance/default_attributes.rb +2 -2
- data/lib/chef/compliance/runner.rb +6 -11
- data/lib/chef/cookbook/metadata.rb +1 -1
- data/lib/chef/cookbook/remote_file_vendor.rb +1 -3
- data/lib/chef/cookbook/synchronizer.rb +0 -5
- data/lib/chef/event_dispatch/dispatcher.rb +0 -1
- data/lib/chef/exceptions.rb +1 -1
- data/lib/chef/file_access_control/unix.rb +9 -9
- data/lib/chef/file_content_management/deploy.rb +1 -4
- data/lib/chef/mixin/file_class.rb +1 -3
- data/lib/chef/mixin/get_source_from_package.rb +1 -1
- data/lib/chef/mixin/{homebrew_user.rb → homebrew.rb} +13 -16
- data/lib/chef/mixin/openssl_helper.rb +1 -12
- data/lib/chef/provider/cookbook_file.rb +1 -1
- data/lib/chef/provider/cron.rb +1 -1
- data/lib/chef/provider/directory.rb +15 -15
- data/lib/chef/provider/file.rb +29 -42
- data/lib/chef/provider/git.rb +8 -8
- data/lib/chef/provider/group/aix.rb +1 -1
- data/lib/chef/provider/group/dscl.rb +1 -1
- data/lib/chef/provider/group/gpasswd.rb +2 -2
- data/lib/chef/provider/group/groupadd.rb +1 -1
- data/lib/chef/provider/group/groupmod.rb +2 -2
- data/lib/chef/provider/group/pw.rb +2 -2
- data/lib/chef/provider/group/solaris.rb +2 -2
- data/lib/chef/provider/group/usermod.rb +2 -2
- data/lib/chef/provider/group.rb +1 -1
- data/lib/chef/provider/http_request.rb +3 -2
- data/lib/chef/provider/ifconfig/aix.rb +1 -1
- data/lib/chef/provider/ifconfig/debian.rb +3 -3
- data/lib/chef/provider/ifconfig/redhat.rb +1 -1
- data/lib/chef/provider/ifconfig.rb +1 -1
- data/lib/chef/provider/link.rb +10 -10
- data/lib/chef/provider/mount/aix.rb +4 -4
- data/lib/chef/provider/mount/linux.rb +4 -4
- data/lib/chef/provider/mount/mount.rb +11 -11
- data/lib/chef/provider/package/apt.rb +11 -2
- data/lib/chef/provider/package/bff.rb +3 -3
- data/lib/chef/provider/package/chocolatey.rb +2 -2
- data/lib/chef/provider/package/dnf/dnf_helper.py +7 -0
- data/lib/chef/provider/package/dpkg.rb +3 -3
- data/lib/chef/provider/package/freebsd/base.rb +1 -1
- data/lib/chef/provider/package/habitat.rb +3 -5
- data/lib/chef/provider/package/homebrew.rb +6 -9
- data/lib/chef/provider/package/ips.rb +2 -2
- data/lib/chef/provider/package/openbsd.rb +2 -3
- data/lib/chef/provider/package/pacman.rb +4 -4
- data/lib/chef/provider/package/paludis.rb +2 -2
- data/lib/chef/provider/package/portage.rb +1 -1
- data/lib/chef/provider/package/rpm.rb +2 -2
- data/lib/chef/provider/package/rubygems.rb +4 -0
- data/lib/chef/provider/package/smartos.rb +2 -2
- data/lib/chef/provider/package/snap.rb +2 -2
- data/lib/chef/provider/package/solaris.rb +4 -4
- data/lib/chef/provider/package/zypper.rb +4 -4
- data/lib/chef/provider/package.rb +1 -1
- data/lib/chef/provider/registry_key.rb +6 -0
- data/lib/chef/provider/remote_directory.rb +5 -5
- data/lib/chef/provider/remote_file/http.rb +3 -2
- data/lib/chef/provider/remote_file.rb +1 -1
- data/lib/chef/provider/route.rb +9 -9
- data/lib/chef/provider/service/aix.rb +1 -1
- data/lib/chef/provider/service/aixinit.rb +4 -4
- data/lib/chef/provider/service/arch.rb +6 -6
- data/lib/chef/provider/service/debian.rb +5 -5
- data/lib/chef/provider/service/freebsd.rb +7 -7
- data/lib/chef/provider/service/gentoo.rb +5 -5
- data/lib/chef/provider/service/init.rb +2 -2
- data/lib/chef/provider/service/insserv.rb +2 -2
- data/lib/chef/provider/service/invokercd.rb +1 -1
- data/lib/chef/provider/service/openbsd.rb +7 -7
- data/lib/chef/provider/service/redhat.rb +3 -3
- data/lib/chef/provider/service/solaris.rb +2 -2
- data/lib/chef/provider/service/systemd.rb +2 -2
- data/lib/chef/provider/service/upstart.rb +2 -2
- data/lib/chef/provider/subversion.rb +8 -8
- data/lib/chef/provider/systemd_unit.rb +3 -3
- data/lib/chef/provider/template.rb +1 -1
- data/lib/chef/provider/user/aix.rb +3 -3
- data/lib/chef/provider/user/linux.rb +2 -7
- data/lib/chef/provider/user/pw.rb +3 -3
- data/lib/chef/provider/user/solaris.rb +7 -7
- data/lib/chef/provider/user/windows.rb +5 -0
- data/lib/chef/provider/user.rb +8 -7
- data/lib/chef/provider/yum_repository.rb +3 -1
- data/lib/chef/provider/zypper_repository.rb +1 -1
- data/lib/chef/providers.rb +0 -1
- data/lib/chef/resource/alternatives.rb +2 -2
- data/lib/chef/resource/apt_preference.rb +1 -1
- data/lib/chef/resource/apt_repository.rb +90 -15
- data/lib/chef/resource/apt_update.rb +3 -3
- data/lib/chef/resource/bff_package.rb +1 -1
- data/lib/chef/resource/chef_client_config.rb +3 -2
- data/lib/chef/resource/chef_sleep.rb +1 -1
- data/lib/chef/resource/cookbook_file.rb +1 -1
- data/lib/chef/resource/cron/cron.rb +1 -1
- data/lib/chef/resource/cron/cron_d.rb +1 -1
- data/lib/chef/resource/cron_access.rb +1 -1
- data/lib/chef/resource/directory.rb +1 -1
- data/lib/chef/resource/dpkg_package.rb +1 -1
- data/lib/chef/resource/file/verification/json.rb +1 -1
- data/lib/chef/resource/file/verification/systemd_unit.rb +1 -1
- data/lib/chef/resource/file/verification/yaml.rb +1 -1
- data/lib/chef/resource/file.rb +1 -1
- data/lib/chef/resource/freebsd_package.rb +2 -2
- data/lib/chef/resource/group.rb +1 -1
- data/lib/chef/resource/habitat/habitat_package.rb +1 -1
- data/lib/chef/resource/habitat/habitat_sup.rb +9 -9
- data/lib/chef/resource/habitat/habitat_sup_systemd.rb +2 -2
- data/lib/chef/resource/habitat_install.rb +3 -3
- data/lib/chef/resource/homebrew_cask.rb +19 -30
- data/lib/chef/resource/homebrew_tap.rb +32 -17
- data/lib/chef/resource/homebrew_update.rb +4 -4
- data/lib/chef/resource/hostname.rb +10 -11
- data/lib/chef/resource/http_request.rb +1 -1
- data/lib/chef/resource/ifconfig.rb +1 -1
- data/lib/chef/resource/inspec_input.rb +1 -3
- data/lib/chef/resource/inspec_waiver.rb +1 -1
- data/lib/chef/resource/inspec_waiver_file_entry.rb +1 -1
- data/lib/chef/resource/ips_package.rb +2 -2
- data/lib/chef/resource/kernel_module.rb +2 -2
- data/lib/chef/resource/link.rb +1 -1
- data/lib/chef/resource/locale.rb +2 -2
- data/lib/chef/resource/mount.rb +1 -1
- data/lib/chef/resource/notify_group.rb +1 -1
- data/lib/chef/resource/ohai.rb +1 -1
- data/lib/chef/resource/ohai_hint.rb +1 -1
- data/lib/chef/resource/openbsd_package.rb +2 -2
- data/lib/chef/resource/package.rb +1 -1
- data/lib/chef/resource/pacman_package.rb +1 -1
- data/lib/chef/resource/paludis_package.rb +1 -1
- data/lib/chef/resource/portage_package.rb +1 -1
- data/lib/chef/resource/reboot.rb +1 -1
- data/lib/chef/resource/registry_key.rb +18 -0
- data/lib/chef/resource/remote_directory.rb +1 -1
- data/lib/chef/resource/remote_file.rb +1 -1
- data/lib/chef/resource/rhsm_errata.rb +1 -1
- data/lib/chef/resource/rhsm_errata_level.rb +1 -1
- data/lib/chef/resource/rhsm_register.rb +1 -1
- data/lib/chef/resource/rhsm_repo.rb +4 -3
- data/lib/chef/resource/rhsm_subscription.rb +9 -8
- data/lib/chef/resource/route.rb +1 -1
- data/lib/chef/resource/rpm_package.rb +1 -1
- data/lib/chef/resource/scm/git.rb +1 -1
- data/lib/chef/resource/scm/subversion.rb +1 -1
- data/lib/chef/resource/selinux/common_helpers.rb +1 -1
- data/lib/chef/resource/selinux_boolean.rb +1 -1
- data/lib/chef/resource/selinux_fcontext.rb +3 -3
- data/lib/chef/resource/selinux_install.rb +1 -1
- data/lib/chef/resource/selinux_login.rb +1 -1
- data/lib/chef/resource/selinux_module.rb +5 -5
- data/lib/chef/resource/selinux_permissive.rb +2 -2
- data/lib/chef/resource/selinux_port.rb +2 -2
- data/lib/chef/resource/selinux_state.rb +2 -2
- data/lib/chef/resource/selinux_user.rb +1 -1
- data/lib/chef/resource/smartos_package.rb +2 -2
- data/lib/chef/resource/snap_package.rb +1 -1
- data/lib/chef/resource/solaris_package.rb +1 -1
- data/lib/chef/resource/ssh_known_hosts_entry.rb +1 -1
- data/lib/chef/resource/sudo.rb +5 -5
- data/lib/chef/resource/support/client.erb +3 -2
- data/lib/chef/resource/swap_file.rb +6 -6
- data/lib/chef/resource/sysctl.rb +5 -5
- data/lib/chef/resource/systemd_unit.rb +1 -1
- data/lib/chef/resource/template.rb +1 -1
- data/lib/chef/resource/timezone.rb +5 -5
- data/lib/chef/resource/user/aix_user.rb +2 -2
- data/lib/chef/resource/user/linux_user.rb +2 -2
- data/lib/chef/resource/user/pw_user.rb +2 -2
- data/lib/chef/resource/user/solaris_user.rb +2 -2
- data/lib/chef/resource/user_ulimit.rb +1 -1
- data/lib/chef/resource/yum_repository.rb +1 -1
- data/lib/chef/resource/zypper_package.rb +2 -2
- data/lib/chef/resource/zypper_repository.rb +2 -2
- data/lib/chef/resource.rb +1 -0
- data/lib/chef/resource_inspector.rb +25 -7
- data/lib/chef/resource_reporter.rb +1 -0
- data/lib/chef/run_lock.rb +0 -3
- data/lib/chef/scan_access_control.rb +6 -6
- data/lib/chef/util/backup.rb +1 -1
- data/lib/chef/util/diff.rb +1 -14
- data/lib/chef/util/file_edit.rb +4 -4
- data/lib/chef/util/powershell/ps_credential.rb +10 -0
- data/lib/chef/version.rb +1 -1
- data/lib/chef/win32/registry.rb +5 -1
- data/lib/chef/win32/security.rb +9 -0
- data/lib/chef.rb +0 -2
- data/spec/functional/assets/yumrepo-empty/repodata/repomd.xml +6 -6
- data/spec/functional/resource/cookbook_file_spec.rb +1 -1
- data/spec/functional/resource/registry_spec.rb +276 -609
- data/spec/integration/client/open_ssl_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/support/chef_helpers.rb +2 -2
- data/spec/support/platform_helpers.rb +8 -0
- data/spec/support/shared/functional/file_resource.rb +3 -3
- data/spec/tiny_server.rb +5 -2
- data/spec/unit/mixin/homebrew_spec.rb +118 -0
- data/spec/unit/provider/apt_repository_spec.rb +14 -9
- data/spec/unit/provider/package/chocolatey_spec.rb +1 -1
- data/spec/unit/provider/package/homebrew_spec.rb +4 -1
- data/spec/unit/provider/registry_key_spec.rb +18 -17
- data/spec/unit/provider/route_spec.rb +4 -6
- data/spec/unit/provider/user/windows_spec.rb +1 -0
- data/spec/unit/resource/rhsm_repo_spec.rb +0 -1
- data/spec/unit/resource/rhsm_subscription_spec.rb +0 -2
- data/spec/unit/resource_inspector_spec.rb +36 -0
- data/spec/unit/util/powershell/ps_credential_spec.rb +6 -0
- metadata +36 -44
- data/lib/chef/file_content_management/deploy/target_io.rb +0 -29
- data/lib/chef/provider/.gitkeep +0 -0
- data/lib/chef/provider/package/snap_tm.rb +0 -79
- data/lib/chef/resource/.gitkeep +0 -0
- data/lib/chef/target_io/dir.rb +0 -12
- data/lib/chef/target_io/etc.rb +0 -16
- data/lib/chef/target_io/file.rb +0 -12
- data/lib/chef/target_io/fileutils.rb +0 -12
- data/lib/chef/target_io/http.rb +0 -22
- data/lib/chef/target_io/io.rb +0 -12
- data/lib/chef/target_io/shadow.rb +0 -44
- data/lib/chef/target_io/train/dir.rb +0 -69
- data/lib/chef/target_io/train/etc.rb +0 -112
- data/lib/chef/target_io/train/file.rb +0 -219
- data/lib/chef/target_io/train/fileutils.rb +0 -220
- data/lib/chef/target_io/train/http.rb +0 -117
- data/lib/chef/target_io/train/io.rb +0 -13
- data/lib/chef/target_io/train/shadow.rb +0 -52
- data/lib/chef/target_io/train_compat.rb +0 -7
- data/lib/chef/target_io.rb +0 -9
- data/spec/unit/mixin/homebrew_user_spec.rb +0 -119
- /data/spec/functional/assets/yumrepo-empty/repodata/{01a3b489a465bcac22a43492163df43451dc6ce47d27f66de289756b91635523-filelists.sqlite.bz2 → 01a3b-filelists.sqlite.bz2} +0 -0
- /data/spec/functional/assets/yumrepo-empty/repodata/{401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz → 401dc-filelists.xml.gz} +0 -0
- /data/spec/functional/assets/yumrepo-empty/repodata/{5dc1e6e73c84803f059bb3065e684e56adfc289a7e398946574d79dac6643945-primary.sqlite.bz2 → 5dc1e-primary.sqlite.bz2} +0 -0
- /data/spec/functional/assets/yumrepo-empty/repodata/{6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz → 6bf96-other.xml.gz} +0 -0
- /data/spec/functional/assets/yumrepo-empty/repodata/{7c36572015e075add2b38b900837bcdbb8a504130ddff49b2351a7fc0affa3d4-other.sqlite.bz2 → 7c365-other.sqlite.bz2} +0 -0
- /data/spec/functional/assets/yumrepo-empty/repodata/{dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz → dabe2-primary.xml.gz} +0 -0
data/lib/chef/run_lock.rb
CHANGED
@@ -46,7 +46,7 @@ class Chef
|
|
46
46
|
|
47
47
|
# Modifies @current_resource, setting the current access control state.
|
48
48
|
def set_all!
|
49
|
-
if ::
|
49
|
+
if ::File.exist?(new_resource.path)
|
50
50
|
set_owner
|
51
51
|
set_group
|
52
52
|
set_mode
|
@@ -76,7 +76,7 @@ class Chef
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def lookup_uid
|
79
|
-
unless (pwent =
|
79
|
+
unless (pwent = Etc.getpwuid(stat.uid)).nil?
|
80
80
|
pwent.name
|
81
81
|
else
|
82
82
|
stat.uid
|
@@ -103,7 +103,7 @@ class Chef
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def lookup_gid
|
106
|
-
unless (pwent =
|
106
|
+
unless (pwent = Etc.getgrgid(stat.gid)).nil?
|
107
107
|
pwent.name
|
108
108
|
else
|
109
109
|
stat.gid
|
@@ -128,10 +128,10 @@ class Chef
|
|
128
128
|
|
129
129
|
def stat
|
130
130
|
@stat ||= if @new_resource.instance_of?(Chef::Resource::Link)
|
131
|
-
::
|
131
|
+
::File.lstat(@new_resource.path)
|
132
132
|
else
|
133
|
-
realpath = ::
|
134
|
-
::
|
133
|
+
realpath = ::File.realpath(@new_resource.path)
|
134
|
+
::File.stat(realpath)
|
135
135
|
end
|
136
136
|
end
|
137
137
|
end
|
data/lib/chef/util/backup.rb
CHANGED
@@ -30,7 +30,7 @@ class Chef
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def backup!
|
33
|
-
if @new_resource.backup != false && @new_resource.backup > 0 && ::
|
33
|
+
if @new_resource.backup != false && @new_resource.backup > 0 && ::File.exist?(path)
|
34
34
|
do_backup
|
35
35
|
# Clean up after the number of backups
|
36
36
|
slice_number = @new_resource.backup
|
data/lib/chef/util/diff.rb
CHANGED
@@ -60,7 +60,7 @@ class Chef
|
|
60
60
|
|
61
61
|
def use_tempfile_if_missing(file)
|
62
62
|
tempfile = nil
|
63
|
-
unless
|
63
|
+
unless File.exist?(file)
|
64
64
|
Chef::Log.trace("File #{file} does not exist to diff against, using empty tempfile")
|
65
65
|
tempfile = Tempfile.new("chef-diff")
|
66
66
|
file = tempfile.path
|
@@ -131,19 +131,6 @@ class Chef
|
|
131
131
|
diff_filesize_threshold = Chef::Config[:diff_filesize_threshold]
|
132
132
|
diff_output_threshold = Chef::Config[:diff_output_threshold]
|
133
133
|
|
134
|
-
# Download files for diffs in Target Mode, then work locally
|
135
|
-
if ChefConfig::Config.target_mode?
|
136
|
-
connection = Chef.run_context&.transport_connection
|
137
|
-
|
138
|
-
old_copy = Tempfile.new(old_file)
|
139
|
-
connection.download(old_file, old_copy.path) if connection.file(old_file).exist?
|
140
|
-
old_file = old_copy.path
|
141
|
-
|
142
|
-
new_copy = Tempfile.new(new_file)
|
143
|
-
connection.download(new_file, new_copy.path) if connection.file(new_file).exist?
|
144
|
-
new_file = new_copy.path
|
145
|
-
end
|
146
|
-
|
147
134
|
if ::File.size(old_file) > diff_filesize_threshold || ::File.size(new_file) > diff_filesize_threshold
|
148
135
|
return "(file sizes exceed #{diff_filesize_threshold} bytes, diff output suppressed)"
|
149
136
|
end
|
data/lib/chef/util/file_edit.rb
CHANGED
@@ -29,9 +29,9 @@ class Chef
|
|
29
29
|
public
|
30
30
|
|
31
31
|
def initialize(filepath)
|
32
|
-
raise ArgumentError, "File '#{filepath}' does not exist" unless
|
32
|
+
raise ArgumentError, "File '#{filepath}' does not exist" unless File.exist?(filepath)
|
33
33
|
|
34
|
-
@editor = Editor.new(
|
34
|
+
@editor = Editor.new(File.open(filepath, &:readlines))
|
35
35
|
@original_pathname = filepath
|
36
36
|
@file_edited = false
|
37
37
|
end
|
@@ -85,8 +85,8 @@ class Chef
|
|
85
85
|
def write_file
|
86
86
|
if @changes
|
87
87
|
backup_pathname = original_pathname + ".old"
|
88
|
-
|
89
|
-
|
88
|
+
FileUtils.cp(original_pathname, backup_pathname, preserve: true)
|
89
|
+
File.open(original_pathname, "w") do |newfile|
|
90
90
|
editor.lines.each do |line|
|
91
91
|
newfile.puts(line)
|
92
92
|
end
|
@@ -31,9 +31,19 @@ class Chef
|
|
31
31
|
"New-Object System.Management.Automation.PSCredential('#{@username}',('#{encrypt(@password)}' | ConvertTo-SecureString))"
|
32
32
|
end
|
33
33
|
|
34
|
+
def to_plaintext
|
35
|
+
"#<Chef::Util::Powershell::PSCredential:#{object_id} @username=#{@username.inspect}>"
|
36
|
+
end
|
37
|
+
|
38
|
+
# These leak an encrypted password, however we can't rely on no-one using
|
39
|
+
# these assuming that behavior.
|
34
40
|
alias to_s to_psobject
|
35
41
|
alias to_text to_psobject
|
36
42
|
|
43
|
+
# Inspect has no business leaking anything but the username, and to be honest
|
44
|
+
# even that one could be dicey
|
45
|
+
alias inspect to_plaintext
|
46
|
+
|
37
47
|
private
|
38
48
|
|
39
49
|
def encrypt(str)
|
data/lib/chef/version.rb
CHANGED
data/lib/chef/win32/registry.rb
CHANGED
@@ -26,6 +26,11 @@ if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
|
|
26
26
|
autoload :Registry, File.expand_path("../monkey_patches/win32/registry", __dir__)
|
27
27
|
end
|
28
28
|
require_relative "api/registry"
|
29
|
+
|
30
|
+
require "win32/resolv"
|
31
|
+
::Win32::Registry.define_method :export_string do |str, enc = (Encoding.default_internal || "utf-8")|
|
32
|
+
str.encode(enc)
|
33
|
+
end
|
29
34
|
end
|
30
35
|
|
31
36
|
class Chef
|
@@ -377,7 +382,6 @@ class Chef
|
|
377
382
|
hive_name = reg_path.shift
|
378
383
|
key = reg_path.join("\\")
|
379
384
|
end
|
380
|
-
|
381
385
|
end
|
382
386
|
end
|
383
387
|
end
|
data/lib/chef/win32/security.rb
CHANGED
@@ -130,6 +130,15 @@ class Chef
|
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
133
|
+
def self.clear_account_rights(name)
|
134
|
+
return if get_account_right(name) == []
|
135
|
+
|
136
|
+
with_lsa_policy(name) do |policy_handle, sid|
|
137
|
+
result = LsaRemoveAccountRights(policy_handle.read_pointer, sid, true, nil, 1)
|
138
|
+
test_and_raise_lsa_nt_status(result)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
133
142
|
def self.adjust_token_privileges(token, privileges)
|
134
143
|
token = token.handle if token.respond_to?(:handle)
|
135
144
|
old_privileges_size = FFI::Buffer.new(:long).write_long(privileges.size_with_privileges)
|
data/lib/chef.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<data type="filelists">
|
5
5
|
<checksum type="sha256">401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93</checksum>
|
6
6
|
<open-checksum type="sha256">bf9808b81cb2dbc54b4b8e35adc584ddcaa73bd81f7088d73bf7dbbada961310</open-checksum>
|
7
|
-
<location href="repodata/
|
7
|
+
<location href="repodata/401dc-filelists.xml.gz"/>
|
8
8
|
<timestamp>1667508211</timestamp>
|
9
9
|
<size>123</size>
|
10
10
|
<open-size>125</open-size>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<data type="primary">
|
13
13
|
<checksum type="sha256">dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9</checksum>
|
14
14
|
<open-checksum type="sha256">e1e2ffd2fb1ee76f87b70750d00ca5677a252b397ab6c2389137a0c33e7b359f</open-checksum>
|
15
|
-
<location href="repodata/
|
15
|
+
<location href="repodata/dabe2-primary.xml.gz"/>
|
16
16
|
<timestamp>1667508211</timestamp>
|
17
17
|
<size>134</size>
|
18
18
|
<open-size>167</open-size>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<data type="primary_db">
|
21
21
|
<checksum type="sha256">5dc1e6e73c84803f059bb3065e684e56adfc289a7e398946574d79dac6643945</checksum>
|
22
22
|
<open-checksum type="sha256">f0d550414e8f2e960e82e704549364299ca9e3e8664ad4faffd208262c3b6d12</open-checksum>
|
23
|
-
<location href="repodata/
|
23
|
+
<location href="repodata/5dc1e-primary.sqlite.bz2"/>
|
24
24
|
<timestamp>1667508211</timestamp>
|
25
25
|
<database_version>10</database_version>
|
26
26
|
<size>1131</size>
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<data type="other_db">
|
30
30
|
<checksum type="sha256">7c36572015e075add2b38b900837bcdbb8a504130ddff49b2351a7fc0affa3d4</checksum>
|
31
31
|
<open-checksum type="sha256">4de0fe7c5dd2674849a7c63c326e42f33af0a0f46219bc6dd59f51dfa2ac8c68</open-checksum>
|
32
|
-
<location href="repodata/
|
32
|
+
<location href="repodata/7c365-other.sqlite.bz2"/>
|
33
33
|
<timestamp>1667508211</timestamp>
|
34
34
|
<database_version>10</database_version>
|
35
35
|
<size>575</size>
|
@@ -38,7 +38,7 @@
|
|
38
38
|
<data type="other">
|
39
39
|
<checksum type="sha256">6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670</checksum>
|
40
40
|
<open-checksum type="sha256">e0ed5e0054194df036cf09c1a911e15bf2a4e7f26f2a788b6f47d53e80717ccc</open-checksum>
|
41
|
-
<location href="repodata/
|
41
|
+
<location href="repodata/6bf96-other.xml.gz"/>
|
42
42
|
<timestamp>1667508211</timestamp>
|
43
43
|
<size>123</size>
|
44
44
|
<open-size>121</open-size>
|
@@ -46,7 +46,7 @@
|
|
46
46
|
<data type="filelists_db">
|
47
47
|
<checksum type="sha256">01a3b489a465bcac22a43492163df43451dc6ce47d27f66de289756b91635523</checksum>
|
48
48
|
<open-checksum type="sha256">c4211f57bdcbb142c9f93a6d32401539f775eb6a670ab7a423e13f435ce94689</open-checksum>
|
49
|
-
<location href="repodata/
|
49
|
+
<location href="repodata/01a3b-filelists.sqlite.bz2"/>
|
50
50
|
<timestamp>1667508211</timestamp>
|
51
51
|
<database_version>10</database_version>
|
52
52
|
<size>586</size>
|
@@ -57,7 +57,7 @@ describe Chef::Resource::CookbookFile do
|
|
57
57
|
create_resource
|
58
58
|
end
|
59
59
|
|
60
|
-
it_behaves_like "a file resource"
|
60
|
+
it_behaves_like "a file resource", :not_supported_on_windows_11
|
61
61
|
|
62
62
|
# These examples cover CHEF-3467 where unexpected and incorrect
|
63
63
|
# permissions can result on Windows because CookbookFile's
|