vanagon 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vanagon/engine/pooler.rb +1 -1
- data/lib/vanagon/platform/defaults/redhatfips-8-x86_64.rb +28 -0
- data/lib/vanagon/platform/defaults/ubuntu-18.04-aarch64.rb +11 -0
- data/lib/vanagon/platform.rb +10 -0
- data/resources/rpm/project.spec.erb +0 -4
- data/spec/lib/vanagon/component_spec.rb +10 -10
- data/spec/lib/vanagon/platform/dsl_spec.rb +4 -5
- data/spec/lib/vanagon/platform/rpm_spec.rb +1 -1
- data/spec/lib/vanagon/platform_spec.rb +9 -9
- data/spec/lib/vanagon/project/dsl_spec.rb +8 -8
- metadata +31 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9471f41441c2a8aea399d9a08961332b68e94e9a377b783e76d09857ffcec0d7
|
4
|
+
data.tar.gz: ea8ccc12852db54d70c58d17d66815fadc48604eabfdf456623357fef3c3dd21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e94d799467fc05efb1e3815c55d71f4ffee9b91126eacae5b24793a7d6cb1478f0aae5c936a946e6d78e0896ea92f970104fbc519f0de45389f36bec228e2e
|
7
|
+
data.tar.gz: 756ebf1259f45d5fd5c9a2e5050423bca7da0cf72d5ab3404551da4c9d868b2b68bfa03043ee3f6e070c1b86884076c43af3891cfa3841a5dec8b6909ee3faf5
|
@@ -0,0 +1,28 @@
|
|
1
|
+
platform "redhatfips-8-x86_64" do |plat|
|
2
|
+
plat.servicedir "/usr/lib/systemd/system"
|
3
|
+
plat.defaultdir "/etc/sysconfig"
|
4
|
+
plat.servicetype "systemd"
|
5
|
+
|
6
|
+
packages = %w(
|
7
|
+
cmake
|
8
|
+
gcc-c++
|
9
|
+
java-1.8.0-openjdk-devel
|
10
|
+
libarchive
|
11
|
+
libsepol-devel
|
12
|
+
libselinux-devel
|
13
|
+
openssl-devel
|
14
|
+
pkgconfig
|
15
|
+
readline-devel
|
16
|
+
rpm-build
|
17
|
+
rpmdevtools
|
18
|
+
rsync
|
19
|
+
swig
|
20
|
+
systemtap-sdt-devel
|
21
|
+
yum-utils
|
22
|
+
zlib-devel
|
23
|
+
)
|
24
|
+
|
25
|
+
plat.provision_with "dnf install -y --allowerasing #{packages.join(' ')}"
|
26
|
+
plat.install_build_dependencies_with "dnf install -y --allowerasing "
|
27
|
+
plat.vmpooler_template "redhat-fips-8-x86_64"
|
28
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
platform "ubuntu-18.04-aarch64" do |plat|
|
2
|
+
plat.servicedir "/lib/systemd/system"
|
3
|
+
plat.defaultdir "/etc/default"
|
4
|
+
plat.servicetype "systemd"
|
5
|
+
plat.codename "bionic"
|
6
|
+
|
7
|
+
packages = %w(build-essential devscripts make quilt pkg-config debhelper rsync fakeroot cmake)
|
8
|
+
plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
|
9
|
+
plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "
|
10
|
+
plat.vmpooler_template "ubuntu-1804-arm64"
|
11
|
+
end
|
data/lib/vanagon/platform.rb
CHANGED
@@ -339,10 +339,20 @@ class Vanagon
|
|
339
339
|
return !!@name.match(/^(el|redhat|redhatfips)-.*$/)
|
340
340
|
end
|
341
341
|
|
342
|
+
# Utility matcher to determine if the platform is of an EL 8 variety
|
343
|
+
#
|
344
|
+
# @return [true, false] true if it is an EL 8 variety, false otherwise
|
342
345
|
def is_el8?
|
343
346
|
return !!@name.match(/^(el|redhat|redhatfips)-8.*$/)
|
344
347
|
end
|
345
348
|
|
349
|
+
# Utility matcher to determine if the platform is a FIPS platform
|
350
|
+
#
|
351
|
+
# @return [true, false] true if it is a FIPS platform, false otherwise
|
352
|
+
def is_fips?
|
353
|
+
return @name.include?('fips')
|
354
|
+
end
|
355
|
+
|
346
356
|
# Utility matcher to determine is the platform is a sles variety
|
347
357
|
#
|
348
358
|
# @return [true, false] true if it is a sles variety, false otherwise
|
@@ -33,15 +33,11 @@
|
|
33
33
|
<%= var %>
|
34
34
|
<% end -%>
|
35
35
|
|
36
|
-
# This breaks on el8. This is a hack to unblock development.
|
37
36
|
<%- if @platform.is_el8? %>
|
38
|
-
%undefine __debug_package
|
39
|
-
|
40
37
|
# Build el-8 packages without build-id files to prevent collision
|
41
38
|
%define _build_id_links none
|
42
39
|
<% end -%>
|
43
40
|
|
44
|
-
|
45
41
|
# To avoid files installed but not packaged errors
|
46
42
|
%global __os_install_post %{__os_install_post} \
|
47
43
|
rm -rf %{buildroot}/usr/lib/debug
|
@@ -151,8 +151,8 @@ describe "Vanagon::Component" do
|
|
151
151
|
# Initialize a new instance of Vanagon::Component and define a
|
152
152
|
# new secondary source that's *compressed*. We can now reason about
|
153
153
|
# this instance and test behavior for retrieving secondary sources.
|
154
|
-
plat = Vanagon::Platform::DSL.new('el-
|
155
|
-
plat.instance_eval("platform 'el-
|
154
|
+
plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
155
|
+
plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
156
156
|
@platform = plat._platform
|
157
157
|
|
158
158
|
comp = Vanagon::Component::DSL.new('build-dir-test', {}, @platform)
|
@@ -173,8 +173,8 @@ describe "Vanagon::Component" do
|
|
173
173
|
# Initialize a new instance of Vanagon::Component and define a
|
174
174
|
# new secondary source that's *compressed*. We can now reason about
|
175
175
|
# this instance and test behavior for retrieving secondary sources.
|
176
|
-
plat = Vanagon::Platform::DSL.new('el-
|
177
|
-
plat.instance_eval("platform 'el-
|
176
|
+
plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
177
|
+
plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
178
178
|
@platform = plat._platform
|
179
179
|
|
180
180
|
comp = Vanagon::Component::DSL.new('build-dir-test', {}, @platform)
|
@@ -190,8 +190,8 @@ describe "Vanagon::Component" do
|
|
190
190
|
# Initialize a new instance of Vanagon::Component and define a
|
191
191
|
# new secondary source that's *compressed*. We can now reason about
|
192
192
|
# this instance and test behavior for retrieving secondary sources.
|
193
|
-
plat = Vanagon::Platform::DSL.new('el-
|
194
|
-
plat.instance_eval("platform 'el-
|
193
|
+
plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
194
|
+
plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
195
195
|
@platform = plat._platform
|
196
196
|
|
197
197
|
comp = Vanagon::Component::DSL.new('build-dir-test', {}, @platform)
|
@@ -206,8 +206,8 @@ describe "Vanagon::Component" do
|
|
206
206
|
# Initialize a new instance of Vanagon::Component and define a
|
207
207
|
# new secondary source that's *compressed*. We can now reason about
|
208
208
|
# this instance and test behavior for retrieving secondary sources.
|
209
|
-
plat = Vanagon::Platform::DSL.new('el-
|
210
|
-
plat.instance_eval("platform 'el-
|
209
|
+
plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
210
|
+
plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
211
211
|
@platform = plat._platform
|
212
212
|
|
213
213
|
comp = Vanagon::Component::DSL.new('build-dir-test', {}, @platform)
|
@@ -225,8 +225,8 @@ describe "Vanagon::Component" do
|
|
225
225
|
end
|
226
226
|
|
227
227
|
let(:platform) do
|
228
|
-
plat = Vanagon::Platform::DSL.new('el-
|
229
|
-
plat.instance_eval("platform 'el-
|
228
|
+
plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
229
|
+
plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
230
230
|
plat._platform
|
231
231
|
end
|
232
232
|
|
@@ -2,7 +2,6 @@ require 'vanagon/platform/dsl'
|
|
2
2
|
|
3
3
|
describe 'Vanagon::Platform::DSL' do
|
4
4
|
let (:deb_platform_block) { "platform 'debian-test-fixture' do |plat| end" }
|
5
|
-
let (:el_5_platform_block) { "platform 'el-5-fixture' do |plat| end" }
|
6
5
|
let (:el_6_platform_block) { "platform 'el-6-fixture' do |plat| end" }
|
7
6
|
let (:redhat_7_platform_block) { "platform 'redhat-7-fixture' do |plat| end" }
|
8
7
|
let (:sles_platform_block) { "platform 'sles-test-fixture' do |plat| end" }
|
@@ -62,9 +61,9 @@ describe 'Vanagon::Platform::DSL' do
|
|
62
61
|
|
63
62
|
describe '#yum_repo' do
|
64
63
|
it "grabs the file and adds .repo to it" do
|
65
|
-
plat = Vanagon::Platform::DSL.new('el-
|
64
|
+
plat = Vanagon::Platform::DSL.new('el-6-fixture')
|
66
65
|
expect(SecureRandom).to receive(:hex).and_return(hex_value)
|
67
|
-
plat.instance_eval(
|
66
|
+
plat.instance_eval(el_6_platform_block)
|
68
67
|
plat.yum_repo(el_definition)
|
69
68
|
expect(plat._platform.provisioning[0]).to include('rpm -q curl', 'yum -y install curl')
|
70
69
|
expect(plat._platform.provisioning[1]).to include(
|
@@ -97,8 +96,8 @@ describe 'Vanagon::Platform::DSL' do
|
|
97
96
|
|
98
97
|
describe "installs a rpm when given a rpm" do
|
99
98
|
it 'uses rpm everywhere' do
|
100
|
-
plat = Vanagon::Platform::DSL.new('el-
|
101
|
-
plat.instance_eval(
|
99
|
+
plat = Vanagon::Platform::DSL.new('el-6-fixture')
|
100
|
+
plat.instance_eval(el_6_platform_block)
|
102
101
|
plat.yum_repo(el_definition_rpm)
|
103
102
|
expect(plat._platform.provisioning[0]).to include('rpm -q curl', 'yum -y install curl')
|
104
103
|
expect(plat._platform.provisioning[1]).to include(
|
@@ -49,19 +49,19 @@ describe "Vanagon::Platform" do
|
|
49
49
|
end ],
|
50
50
|
},
|
51
51
|
{
|
52
|
-
:name => "el-
|
52
|
+
:name => "el-6-i386",
|
53
53
|
:os_name => "el",
|
54
|
-
:os_version => "
|
54
|
+
:os_version => "6",
|
55
55
|
:architecture => "i386",
|
56
|
-
:output_dir => "el/
|
57
|
-
:output_dir_with_target => "el/
|
58
|
-
:output_dir_empty_string => "el/
|
59
|
-
:source_output_dir => "el/
|
60
|
-
:source_output_dir_with_target => "el/
|
61
|
-
:source_output_dir_empty_string => "el/
|
56
|
+
:output_dir => "el/6/products/i386",
|
57
|
+
:output_dir_with_target => "el/6/thing/i386",
|
58
|
+
:output_dir_empty_string => "el/6/i386",
|
59
|
+
:source_output_dir => "el/6/products/SRPMS",
|
60
|
+
:source_output_dir_with_target => "el/6/thing/SRPMS",
|
61
|
+
:source_output_dir_empty_string => "el/6/SRPMS",
|
62
62
|
:is_rpm => true,
|
63
63
|
:is_el => true,
|
64
|
-
:block => %Q[ platform "el-
|
64
|
+
:block => %Q[ platform "el-6-i386" do |plat| end ],
|
65
65
|
},
|
66
66
|
{
|
67
67
|
:name => "redhat-7-x86_64",
|
@@ -244,8 +244,8 @@ end" }
|
|
244
244
|
describe "#provides" do
|
245
245
|
before do
|
246
246
|
allow_any_instance_of(Vanagon::Project::DSL).to receive(:puts)
|
247
|
-
@el_plat = Vanagon::Platform::DSL.new('el-
|
248
|
-
@el_plat.instance_eval("platform 'el-
|
247
|
+
@el_plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
248
|
+
@el_plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
249
249
|
@deb_plat = Vanagon::Platform::DSL.new('ubuntu-16.04-amd64')
|
250
250
|
@deb_plat.instance_eval("platform 'ubuntu-16.04-amd64' do |plat| end")
|
251
251
|
end
|
@@ -326,8 +326,8 @@ end" }
|
|
326
326
|
describe "#replaces" do
|
327
327
|
before do
|
328
328
|
allow_any_instance_of(Vanagon::Project::DSL).to receive(:puts)
|
329
|
-
@el_plat = Vanagon::Platform::DSL.new('el-
|
330
|
-
@el_plat.instance_eval("platform 'el-
|
329
|
+
@el_plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
330
|
+
@el_plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
331
331
|
@deb_plat = Vanagon::Platform::DSL.new('ubuntu-16.04-amd64')
|
332
332
|
@deb_plat.instance_eval("platform 'ubuntu-16.04-amd64' do |plat| end")
|
333
333
|
end
|
@@ -404,8 +404,8 @@ end" }
|
|
404
404
|
describe "#conflicts" do
|
405
405
|
before do
|
406
406
|
allow_any_instance_of(Vanagon::Project::DSL).to receive(:puts)
|
407
|
-
@el_plat = Vanagon::Platform::DSL.new('el-
|
408
|
-
@el_plat.instance_eval("platform 'el-
|
407
|
+
@el_plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
408
|
+
@el_plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
409
409
|
@deb_plat = Vanagon::Platform::DSL.new('ubuntu-16.04-amd64')
|
410
410
|
@deb_plat.instance_eval("platform 'ubuntu-16.04-amd64' do |plat| end")
|
411
411
|
end
|
@@ -488,8 +488,8 @@ end"
|
|
488
488
|
|
489
489
|
before do
|
490
490
|
allow_any_instance_of(Vanagon::Project::DSL).to receive(:puts)
|
491
|
-
@el_plat = Vanagon::Platform::DSL.new('el-
|
492
|
-
@el_plat.instance_eval("platform 'el-
|
491
|
+
@el_plat = Vanagon::Platform::DSL.new('el-6-x86_64')
|
492
|
+
@el_plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
|
493
493
|
@osx_plat = Vanagon::Platform::DSL.new('osx-10.10-x86_64')
|
494
494
|
@osx_plat.instance_eval("platform 'osx-10.10-x86_64' do |plat| end")
|
495
495
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vanagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|
@@ -172,12 +172,14 @@ files:
|
|
172
172
|
- lib/vanagon/platform/defaults/osx-10.15-x86_64.rb
|
173
173
|
- lib/vanagon/platform/defaults/osx-11-x86_64.rb
|
174
174
|
- lib/vanagon/platform/defaults/redhatfips-7-x86_64.rb
|
175
|
+
- lib/vanagon/platform/defaults/redhatfips-8-x86_64.rb
|
175
176
|
- lib/vanagon/platform/defaults/sles-12-x86_64.rb
|
176
177
|
- lib/vanagon/platform/defaults/sles-15-x86_64.rb
|
177
178
|
- lib/vanagon/platform/defaults/solaris-11-i386.rb
|
178
179
|
- lib/vanagon/platform/defaults/solaris-11-sparc.rb
|
179
180
|
- lib/vanagon/platform/defaults/ubuntu-16.04-amd64.rb
|
180
181
|
- lib/vanagon/platform/defaults/ubuntu-16.04-i386.rb
|
182
|
+
- lib/vanagon/platform/defaults/ubuntu-18.04-aarch64.rb
|
181
183
|
- lib/vanagon/platform/defaults/ubuntu-18.04-amd64.rb
|
182
184
|
- lib/vanagon/platform/defaults/ubuntu-20.04-aarch64.rb
|
183
185
|
- lib/vanagon/platform/defaults/ubuntu-20.04-amd64.rb
|
@@ -324,42 +326,42 @@ signing_key:
|
|
324
326
|
specification_version: 3
|
325
327
|
summary: All of your packages will fit into this van with this one simple trick.
|
326
328
|
test_files:
|
327
|
-
- spec/lib/
|
328
|
-
- spec/lib/git/rev_list_spec.rb
|
329
|
+
- spec/lib/vanagon/component_spec.rb
|
329
330
|
- spec/lib/vanagon/utilities/shell_utilities_spec.rb
|
330
331
|
- spec/lib/vanagon/utilities/extra_files_signer_spec.rb
|
331
|
-
- spec/lib/vanagon/
|
332
|
-
- spec/lib/vanagon/common/user_spec.rb
|
333
|
-
- spec/lib/vanagon/environment_spec.rb
|
334
|
-
- spec/lib/vanagon/platform/windows_spec.rb
|
335
|
-
- spec/lib/vanagon/platform/deb_spec.rb
|
336
|
-
- spec/lib/vanagon/platform/solaris_11_spec.rb
|
337
|
-
- spec/lib/vanagon/platform/rpm_spec.rb
|
338
|
-
- spec/lib/vanagon/platform/solaris_10_spec.rb
|
339
|
-
- spec/lib/vanagon/platform/rpm/aix_spec.rb
|
340
|
-
- spec/lib/vanagon/platform/osx_spec.rb
|
341
|
-
- spec/lib/vanagon/platform/dsl_spec.rb
|
342
|
-
- spec/lib/vanagon/component_spec.rb
|
343
|
-
- spec/lib/vanagon/utilities_spec.rb
|
344
|
-
- spec/lib/vanagon/project_spec.rb
|
345
|
-
- spec/lib/vanagon/cli_spec.rb
|
332
|
+
- spec/lib/vanagon/extensions/set/json_spec.rb
|
346
333
|
- spec/lib/vanagon/extensions/ostruct/json_spec.rb
|
347
334
|
- spec/lib/vanagon/extensions/string_spec.rb
|
348
|
-
- spec/lib/vanagon/
|
349
|
-
- spec/lib/vanagon/project/dsl_spec.rb
|
350
|
-
- spec/lib/vanagon/platform_spec.rb
|
351
|
-
- spec/lib/vanagon/engine/ec2_spec.rb
|
352
|
-
- spec/lib/vanagon/engine/docker_spec.rb
|
335
|
+
- spec/lib/vanagon/engine/base_spec.rb
|
353
336
|
- spec/lib/vanagon/engine/hardware_spec.rb
|
354
|
-
- spec/lib/vanagon/engine/local_spec.rb
|
355
337
|
- spec/lib/vanagon/engine/always_be_scheduling_spec.rb
|
338
|
+
- spec/lib/vanagon/engine/ec2_spec.rb
|
356
339
|
- spec/lib/vanagon/engine/pooler_spec.rb
|
357
|
-
- spec/lib/vanagon/engine/
|
340
|
+
- spec/lib/vanagon/engine/docker_spec.rb
|
341
|
+
- spec/lib/vanagon/engine/local_spec.rb
|
342
|
+
- spec/lib/vanagon/common/user_spec.rb
|
343
|
+
- spec/lib/vanagon/common/pathname_spec.rb
|
344
|
+
- spec/lib/vanagon/environment_spec.rb
|
345
|
+
- spec/lib/vanagon/platform_spec.rb
|
346
|
+
- spec/lib/vanagon/component/rules_spec.rb
|
347
|
+
- spec/lib/vanagon/component/source_spec.rb
|
358
348
|
- spec/lib/vanagon/component/source/rewrite_spec.rb
|
359
|
-
- spec/lib/vanagon/component/source/local_spec.rb
|
360
349
|
- spec/lib/vanagon/component/source/http_spec.rb
|
361
350
|
- spec/lib/vanagon/component/source/git_spec.rb
|
362
|
-
- spec/lib/vanagon/component/
|
351
|
+
- spec/lib/vanagon/component/source/local_spec.rb
|
363
352
|
- spec/lib/vanagon/component/dsl_spec.rb
|
364
|
-
- spec/lib/vanagon/
|
353
|
+
- spec/lib/vanagon/utilities_spec.rb
|
354
|
+
- spec/lib/vanagon/project/dsl_spec.rb
|
355
|
+
- spec/lib/vanagon/cli_spec.rb
|
356
|
+
- spec/lib/vanagon/project_spec.rb
|
357
|
+
- spec/lib/vanagon/platform/rpm_spec.rb
|
358
|
+
- spec/lib/vanagon/platform/windows_spec.rb
|
359
|
+
- spec/lib/vanagon/platform/osx_spec.rb
|
360
|
+
- spec/lib/vanagon/platform/deb_spec.rb
|
361
|
+
- spec/lib/vanagon/platform/rpm/aix_spec.rb
|
362
|
+
- spec/lib/vanagon/platform/dsl_spec.rb
|
363
|
+
- spec/lib/vanagon/platform/solaris_11_spec.rb
|
364
|
+
- spec/lib/vanagon/platform/solaris_10_spec.rb
|
365
365
|
- spec/lib/vanagon/driver_spec.rb
|
366
|
+
- spec/lib/makefile_spec.rb
|
367
|
+
- spec/lib/git/rev_list_spec.rb
|