vanagon 0.26.1 → 0.27.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/component/source/local.rb +1 -3
- data/lib/vanagon/platform/defaults/ubuntu-20.04-amd64.rb +6 -0
- data/lib/vanagon/platform/defaults/ubuntu-22.04-aarch64.rb +11 -0
- data/lib/vanagon/platform/defaults/ubuntu-22.04-amd64.rb +11 -0
- data/resources/deb/rules.erb +5 -0
- data/spec/lib/vanagon/component/source/git_spec.rb +1 -1
- data/spec/lib/vanagon/component/source_spec.rb +0 -8
- data/spec/lib/vanagon/component_spec.rb +3 -2
- metadata +36 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 438c2be5dadbbd1c1a7fb9eb3d9b2965afefbe753c494192ade66548224c0a5c
|
4
|
+
data.tar.gz: d91a50ecbaba25c85d285c19942f157d16fd4041875ef2220015a43512091b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85f94351218ff42271ff6cb521d6f4aa2813fe04079e8f5ea6f921fefdcd56fdf983ffd261c8169443257e7b1d5744f35a36137d330ae8ba040ad2781bc785ed
|
7
|
+
data.tar.gz: 686ad0b981cb619c791941e28ffdbf7583a38ddeb0b59ae050c62c78bfee98cf39c52f14cd8b627acaec41eac721cb44140f4756f5426463b980039a706d31e8
|
@@ -97,14 +97,12 @@ class Vanagon
|
|
97
97
|
%(gunzip "#{file}")
|
98
98
|
when "rar"
|
99
99
|
%(unrar x "#{file}")
|
100
|
-
when "tar"
|
100
|
+
when "tar", "txz"
|
101
101
|
%(#{tar} xf "#{file}")
|
102
102
|
when "tbz2"
|
103
103
|
%(bunzip2 -c "#{file}" | #{tar} xf -)
|
104
104
|
when "tgz"
|
105
105
|
%(gunzip -c "#{file}" | #{tar} xf -)
|
106
|
-
when "txz"
|
107
|
-
%(unxz -d "#{file}" | #{tar} xvf -)
|
108
106
|
when "xz"
|
109
107
|
%(unxz "#{file}")
|
110
108
|
when "zip"
|
@@ -4,8 +4,14 @@ platform "ubuntu-20.04-amd64" do |plat|
|
|
4
4
|
plat.servicetype "systemd"
|
5
5
|
plat.codename "focal"
|
6
6
|
|
7
|
+
# Temporary fix to add focal-updates.list repo file because it is missing from the vmpooler image
|
8
|
+
plat.provision_with "echo 'deb https://artifactory.delivery.puppetlabs.net/artifactory/ubuntu__remote focal-updates main restricted universe multiverse' > /etc/apt/sources.list.d/focal-updates.list;
|
9
|
+
echo 'deb-src https://artifactory.delivery.puppetlabs.net/artifactory/ubuntu__remote focal-updates main restricted universe multiverse' >> /etc/apt/sources.list.d/focal-updates.list"
|
10
|
+
|
7
11
|
packages = %w(build-essential devscripts make quilt pkg-config debhelper rsync fakeroot cmake)
|
12
|
+
|
8
13
|
plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
|
14
|
+
plat.provision_with "curl https://apt.puppet.com/DEB-GPG-KEY-puppet-20250406 | apt-key add -"
|
9
15
|
plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "
|
10
16
|
plat.vmpooler_template "ubuntu-2004-x86_64"
|
11
17
|
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
platform "ubuntu-22.04-aarch64" do |plat|
|
2
|
+
plat.servicedir "/lib/systemd/system"
|
3
|
+
plat.defaultdir "/etc/default"
|
4
|
+
plat.servicetype "systemd"
|
5
|
+
plat.codename "jammy"
|
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-2204-arm64"
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
platform "ubuntu-22.04-amd64" do |plat|
|
2
|
+
plat.servicedir "/lib/systemd/system"
|
3
|
+
plat.defaultdir "/etc/default"
|
4
|
+
plat.servicetype "systemd"
|
5
|
+
plat.codename "jammy"
|
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-2204-x86_64"
|
11
|
+
end
|
data/resources/deb/rules.erb
CHANGED
@@ -5,7 +5,7 @@ describe "Vanagon::Component::Source::Git" do
|
|
5
5
|
before :all do
|
6
6
|
@klass = Vanagon::Component::Source::Git
|
7
7
|
# This repo will not be cloned over the network
|
8
|
-
@url = '
|
8
|
+
@url = 'https://github.com/puppetlabs/facter.git'
|
9
9
|
# This path will not be created on disk
|
10
10
|
@local_url = "file://#{Dir.tmpdir}/puppet-agent"
|
11
11
|
@ref_tag = 'refs/tags/2.2.0'
|
@@ -8,7 +8,6 @@ describe "Vanagon::Component::Source" do
|
|
8
8
|
let(:unrecognized_scheme) { "abcd" }
|
9
9
|
let(:invalid_scheme) { "abcd|things" }
|
10
10
|
|
11
|
-
let(:public_git) { "git://github.com/abcd/things" }
|
12
11
|
let(:private_git) { "git@github.com:abcd/things" }
|
13
12
|
let(:http_git) { "http://github.com/abcd/things" }
|
14
13
|
let(:https_git) { "https://github.com/abcd/things" }
|
@@ -53,12 +52,6 @@ describe "Vanagon::Component::Source" do
|
|
53
52
|
.to eq Vanagon::Component::Source::Git
|
54
53
|
end
|
55
54
|
|
56
|
-
it "returns a Git object for git:// repositories" do
|
57
|
-
component_source = klass.source(public_git, ref: ref, workdir: workdir)
|
58
|
-
expect(component_source.url.to_s).to eq public_git
|
59
|
-
expect(component_source.class).to eq Vanagon::Component::Source::Git
|
60
|
-
end
|
61
|
-
|
62
55
|
it "returns a Git object for http:// repositories" do
|
63
56
|
expect(klass.source(http_git, ref: ref, workdir: workdir).class)
|
64
57
|
.to eq Vanagon::Component::Source::Git
|
@@ -74,7 +67,6 @@ describe "Vanagon::Component::Source" do
|
|
74
67
|
expect(component_source.url.to_s).to eq 'http://github.com/abcd/things'
|
75
68
|
expect(component_source.class).to eq Vanagon::Component::Source::Git
|
76
69
|
end
|
77
|
-
|
78
70
|
end
|
79
71
|
|
80
72
|
context "takes a HTTP/HTTPS file" do
|
@@ -258,12 +258,13 @@ describe "Vanagon::Component" do
|
|
258
258
|
describe '#force_version' do
|
259
259
|
let(:source) {
|
260
260
|
allow(File).to receive(:realpath).and_return('/this/is/a/test')
|
261
|
-
|
261
|
+
WebMock.allow_net_connect!
|
262
|
+
Vanagon::Component::Source::Git.new('https://github.com/puppetlabs/facter', workdir: '/this/is/a/test')
|
262
263
|
}
|
263
264
|
|
264
265
|
let(:component) {
|
265
266
|
Vanagon::Component.new('force-version-test', {}, {}).tap do |comp|
|
266
|
-
comp.url = '
|
267
|
+
comp.url = 'https://github.com/puppetlabs/facter'
|
267
268
|
comp.source = source
|
268
269
|
end
|
269
270
|
}
|
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.27.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: 2022-
|
11
|
+
date: 2022-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.11.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.11.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: fustigit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,6 +184,8 @@ files:
|
|
184
184
|
- lib/vanagon/platform/defaults/ubuntu-18.04-amd64.rb
|
185
185
|
- lib/vanagon/platform/defaults/ubuntu-20.04-aarch64.rb
|
186
186
|
- lib/vanagon/platform/defaults/ubuntu-20.04-amd64.rb
|
187
|
+
- lib/vanagon/platform/defaults/ubuntu-22.04-aarch64.rb
|
188
|
+
- lib/vanagon/platform/defaults/ubuntu-22.04-amd64.rb
|
187
189
|
- lib/vanagon/platform/dsl.rb
|
188
190
|
- lib/vanagon/platform/osx.rb
|
189
191
|
- lib/vanagon/platform/rpm.rb
|
@@ -331,41 +333,41 @@ specification_version: 3
|
|
331
333
|
summary: All of your packages will fit into this van with this one simple trick.
|
332
334
|
test_files:
|
333
335
|
- spec/lib/git/rev_list_spec.rb
|
334
|
-
- spec/lib/makefile_spec.rb
|
335
|
-
- spec/lib/vanagon/project_spec.rb
|
336
336
|
- spec/lib/vanagon/cli_spec.rb
|
337
|
-
- spec/lib/vanagon/
|
338
|
-
- spec/lib/vanagon/project/dsl_spec.rb
|
339
|
-
- spec/lib/vanagon/driver_spec.rb
|
337
|
+
- spec/lib/vanagon/environment_spec.rb
|
340
338
|
- spec/lib/vanagon/platform_spec.rb
|
341
|
-
- spec/lib/vanagon/
|
342
|
-
- spec/lib/vanagon/
|
339
|
+
- spec/lib/vanagon/engine/base_spec.rb
|
340
|
+
- spec/lib/vanagon/engine/ec2_spec.rb
|
341
|
+
- spec/lib/vanagon/engine/docker_spec.rb
|
342
|
+
- spec/lib/vanagon/engine/always_be_scheduling_spec.rb
|
343
|
+
- spec/lib/vanagon/engine/hardware_spec.rb
|
344
|
+
- spec/lib/vanagon/engine/pooler_spec.rb
|
345
|
+
- spec/lib/vanagon/engine/local_spec.rb
|
346
|
+
- spec/lib/vanagon/common/user_spec.rb
|
347
|
+
- spec/lib/vanagon/common/pathname_spec.rb
|
348
|
+
- spec/lib/vanagon/utilities/extra_files_signer_spec.rb
|
349
|
+
- spec/lib/vanagon/utilities/shell_utilities_spec.rb
|
350
|
+
- spec/lib/vanagon/component/source_spec.rb
|
343
351
|
- spec/lib/vanagon/component/source/http_spec.rb
|
352
|
+
- spec/lib/vanagon/component/source/rewrite_spec.rb
|
344
353
|
- spec/lib/vanagon/component/source/local_spec.rb
|
345
|
-
- spec/lib/vanagon/component/
|
354
|
+
- spec/lib/vanagon/component/source/git_spec.rb
|
346
355
|
- spec/lib/vanagon/component/dsl_spec.rb
|
347
|
-
- spec/lib/vanagon/component/
|
348
|
-
- spec/lib/vanagon/
|
349
|
-
- spec/lib/vanagon/
|
350
|
-
- spec/lib/vanagon/
|
351
|
-
- spec/lib/vanagon/
|
356
|
+
- spec/lib/vanagon/component/rules_spec.rb
|
357
|
+
- spec/lib/vanagon/utilities_spec.rb
|
358
|
+
- spec/lib/vanagon/extensions/ostruct/json_spec.rb
|
359
|
+
- spec/lib/vanagon/extensions/set/json_spec.rb
|
360
|
+
- spec/lib/vanagon/extensions/string_spec.rb
|
361
|
+
- spec/lib/vanagon/driver_spec.rb
|
362
|
+
- spec/lib/vanagon/project/dsl_spec.rb
|
363
|
+
- spec/lib/vanagon/component_spec.rb
|
352
364
|
- spec/lib/vanagon/platform/solaris_11_spec.rb
|
353
|
-
- spec/lib/vanagon/platform/
|
365
|
+
- spec/lib/vanagon/platform/solaris_10_spec.rb
|
354
366
|
- spec/lib/vanagon/platform/osx_spec.rb
|
367
|
+
- spec/lib/vanagon/platform/windows_spec.rb
|
368
|
+
- spec/lib/vanagon/platform/rpm_spec.rb
|
355
369
|
- spec/lib/vanagon/platform/dsl_spec.rb
|
356
|
-
- spec/lib/vanagon/platform/
|
357
|
-
- spec/lib/vanagon/
|
358
|
-
- spec/lib/vanagon/
|
359
|
-
- spec/lib/
|
360
|
-
- spec/lib/vanagon/utilities/extra_files_signer_spec.rb
|
361
|
-
- spec/lib/vanagon/utilities/shell_utilities_spec.rb
|
362
|
-
- spec/lib/vanagon/component_spec.rb
|
363
|
-
- spec/lib/vanagon/engine/always_be_scheduling_spec.rb
|
364
|
-
- spec/lib/vanagon/engine/ec2_spec.rb
|
365
|
-
- spec/lib/vanagon/engine/pooler_spec.rb
|
366
|
-
- spec/lib/vanagon/engine/hardware_spec.rb
|
367
|
-
- spec/lib/vanagon/engine/local_spec.rb
|
368
|
-
- spec/lib/vanagon/engine/docker_spec.rb
|
369
|
-
- spec/lib/vanagon/engine/base_spec.rb
|
370
|
-
- spec/lib/vanagon/common/pathname_spec.rb
|
371
|
-
- spec/lib/vanagon/common/user_spec.rb
|
370
|
+
- spec/lib/vanagon/platform/deb_spec.rb
|
371
|
+
- spec/lib/vanagon/platform/rpm/aix_spec.rb
|
372
|
+
- spec/lib/vanagon/project_spec.rb
|
373
|
+
- spec/lib/makefile_spec.rb
|