facter 4.2.7 → 4.2.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3abae20894fc4d31ecfa8190b26307c05f73dce8454b1caa5ae0753cf6f17928
|
4
|
+
data.tar.gz: 7f5e4ed7f8eda7306ef86101e8a7d61c59b1dd1e56104875378bbd7113b19632
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcfeebbb72dd925224405095a1043bd6e99ef30afc4395f896172f1441b88a1c4c454ff812c4d23e71da823e20e54b30ae76e08602dd70fd5376c7f5a583f23a
|
7
|
+
data.tar.gz: 3cccf97b96203afddc850670e73ddc96bfffa9dc5f7949d567f89f44be68a39ba642ec04d930154b874d1b02cc9c98a5a0ae0d78cd96f6a17089ee6b4c01e7c2
|
@@ -10,6 +10,8 @@ module Facts
|
|
10
10
|
provider = case Facter::Util::Facts::Posix::VirtualDetector.platform
|
11
11
|
when 'hyperv'
|
12
12
|
'azure' unless Facter::Resolvers::Az.resolve(:metadata).empty?
|
13
|
+
when 'kvm', 'xen'
|
14
|
+
'aws' unless Facter::Resolvers::Ec2.resolve(:metadata).empty?
|
13
15
|
end
|
14
16
|
|
15
17
|
Facter::ResolvedFact.new(FACT_NAME, provider)
|
@@ -11,6 +11,8 @@ module Facts
|
|
11
11
|
provider = case virtual
|
12
12
|
when 'hyperv'
|
13
13
|
'azure' unless Facter::Resolvers::Az.resolve(:metadata).empty?
|
14
|
+
when 'kvm', 'xen'
|
15
|
+
'aws' unless Facter::Resolvers::Ec2.resolve(:metadata).empty?
|
14
16
|
end
|
15
17
|
|
16
18
|
Facter::ResolvedFact.new(FACT_NAME, provider)
|
@@ -34,7 +34,7 @@ module Facter
|
|
34
34
|
|
35
35
|
def lsblk(option, disk)
|
36
36
|
result = Facter::Core::Execution.execute(
|
37
|
-
"
|
37
|
+
"lsblk -dn -o #{option} /dev/#{disk}", on_fail: '', timeout: 1
|
38
38
|
).strip
|
39
39
|
result.empty? ? nil : result
|
40
40
|
end
|
data/lib/facter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -1094,7 +1094,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1094
1094
|
- !ruby/object:Gem::Version
|
1095
1095
|
version: '0'
|
1096
1096
|
requirements: []
|
1097
|
-
rubygems_version: 3.
|
1097
|
+
rubygems_version: 3.1.6
|
1098
1098
|
signing_key:
|
1099
1099
|
specification_version: 4
|
1100
1100
|
summary: Facter, a system inventory tool
|