chef 12.21.12 → 12.21.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/chef/provider/apt_repository.rb +7 -4
- data/lib/chef/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: badf5e8bd4f99974685e95fb2456c1448eb8847f
|
4
|
+
data.tar.gz: c84f02357be9848521807397383bb5e98f5674c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d08b95da842e485c54b2a5d8c7aab24e170eda8b485a16232eed37da82f7eb8ad05ea5ec2a2ac28b854619cb4de23f1e04bbac1b5b0e5b258dc1daccdee8423
|
7
|
+
data.tar.gz: 8a997e21ae9f177c00fd4d46d139b0dd9d8562d7c92feb55dcd9a21df38320743cf3e3c28b0fbf99e315035ecda5f4884437bcef45a9f36e775d18b994131ba3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
12.21.
|
1
|
+
12.21.14
|
@@ -31,6 +31,9 @@ class Chef
|
|
31
31
|
include Chef::Mixin::ShellOut
|
32
32
|
extend Chef::Mixin::Which
|
33
33
|
|
34
|
+
LIST_APT_KEYS = "apt-key list".freeze
|
35
|
+
LIST_APT_KEY_FINGERPRINTS = "apt-key adv --list-public-keys --with-fingerprint --with-colons".freeze
|
36
|
+
|
34
37
|
provides :apt_repository do
|
35
38
|
which("apt-get")
|
36
39
|
end
|
@@ -149,7 +152,7 @@ class Chef
|
|
149
152
|
def no_new_keys?(file)
|
150
153
|
# Now we are using the option --with-colons that works across old os versions
|
151
154
|
# as well as the latest (16.10). This for both `apt-key` and `gpg` commands
|
152
|
-
installed_keys = extract_fingerprints_from_cmd(
|
155
|
+
installed_keys = extract_fingerprints_from_cmd(LIST_APT_KEY_FINGERPRINTS)
|
153
156
|
proposed_keys = extract_fingerprints_from_cmd("gpg --with-fingerprint --with-colons #{file}")
|
154
157
|
(installed_keys & proposed_keys).sort == proposed_keys.sort
|
155
158
|
end
|
@@ -200,15 +203,15 @@ class Chef
|
|
200
203
|
command cmd
|
201
204
|
sensitive new_resource.sensitive
|
202
205
|
not_if do
|
203
|
-
present = extract_fingerprints_from_cmd(
|
206
|
+
present = extract_fingerprints_from_cmd(LIST_APT_KEY_FINGERPRINTS).any? do |fp|
|
204
207
|
fp.end_with? key.upcase
|
205
208
|
end
|
206
|
-
present && key_is_valid?(
|
209
|
+
present && key_is_valid?(LIST_APT_KEYS, key.upcase)
|
207
210
|
end
|
208
211
|
notifies :run, "execute[apt-cache gencaches]", :immediately
|
209
212
|
end
|
210
213
|
|
211
|
-
raise "The key #{key} is invalid and cannot be used to verify an apt repository." unless key_is_valid?(
|
214
|
+
raise "The key #{key} is invalid and cannot be used to verify an apt repository." unless key_is_valid?(LIST_APT_KEYS, key.upcase)
|
212
215
|
end
|
213
216
|
|
214
217
|
def install_ppa_key(owner, repo)
|
data/lib/chef/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.21.
|
4
|
+
version: 12.21.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-config
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 12.21.
|
19
|
+
version: 12.21.14
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 12.21.
|
26
|
+
version: 12.21.14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|