voxpupuli-test 5.4.0 → 5.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/voxpupuli/test/facts.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74323fa1dc51303124eb85ad484ab64daa38f90bcface0d9125157cef3ad1497
|
4
|
+
data.tar.gz: 4c5824fd53ac77cfa287bebddfc5ccc1f70caf616a11296286cb784c54b9ca05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 466125ca660248a7a9a0809bc2f775381a15c19e0ebbe100ab3cc9e316db34a46e80e6054aaa211287bc5daf3bc730c823bdced65f01255668ce8367ab645c47
|
7
|
+
data.tar.gz: 2da894f9f9572de4b7fbbbe0b24026bc40ae907c17306c963a09c91899fe472f8ba36a3adf2cc9dea3f9121adc4b1b598dcf546d3ed573260f2a95f84f0a94e1
|
data/lib/voxpupuli/test/facts.rb
CHANGED
@@ -50,8 +50,8 @@ def add_facts_for_metadata(metadata)
|
|
50
50
|
|
51
51
|
metadata['dependencies'].each do |dependency|
|
52
52
|
case normalize_module_name(dependency['name'])
|
53
|
-
when 'camptocamp/systemd'
|
54
|
-
add_custom_fact :systemd, ->(os, facts) { facts[
|
53
|
+
when 'camptocamp/systemd', 'puppet/systemd'
|
54
|
+
add_custom_fact :systemd, ->(os, facts) { facts['service_provider'] == 'systemd' }
|
55
55
|
when 'puppetlabs/stdlib'
|
56
56
|
add_stdlib_facts
|
57
57
|
end
|
@@ -85,7 +85,7 @@ def add_stdlib_facts
|
|
85
85
|
when 'openbsd'
|
86
86
|
'openbsd'
|
87
87
|
when 'redhat'
|
88
|
-
facts[:
|
88
|
+
facts[:operatingsystemmajrelease].to_i >= 7 ? 'systemd' : 'redhat'
|
89
89
|
when 'suse'
|
90
90
|
facts[:operatingsystemmajrelease].to_i >= 12 ? 'systemd' : 'redhat'
|
91
91
|
when 'windows'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voxpupuli-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.4.
|
4
|
+
version: 5.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|