vanagon 0.30.0 → 0.32.0

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: d2dda4b6ee0f2e7df4443eee96ac2d6a31a3b70045348a1659a377e3c6fe4d42
4
- data.tar.gz: 3cbc04e6447435f41a9dedf83f8d0bc3eb0f606663032384c1e34f526e35dc00
3
+ metadata.gz: d89b835aabbdb8b3cfc47e4eb34b4da0b9d9e10a6106db1fdb3cfd3baed3ed47
4
+ data.tar.gz: 30d161311d0249732208c36b732e39afc2325d2fbdc05619d3498186790c19dd
5
5
  SHA512:
6
- metadata.gz: 6395d2ab2f96b64637be1be8fc5ac0548da7cf9b17d3d4365e337fb725cab14c7df026df5e8b5bb632490cfb9ac233bc94e481463a00c2f516e8fc10a252a701
7
- data.tar.gz: efb78d1686945d3ca0ca99409c1b4753c628ff077860dcaab5429e065545f48041f62c02472de05dc44295a8fb099d6f3eda47a4097d93d2ba13fa2849846070
6
+ metadata.gz: 6e8530d3c2327ee1b193a2cb80c0bd5264f67f3e0914b08ff62fb374a078579ca3c47f09177602d1cc3603b1598c61bc2a6101e94a718e2d4d1a97e5d6453eee
7
+ data.tar.gz: 0f4d8ced9f652f6bc9394a98e663ebb9cdc7cb606256e798a1d720b3f9c73094c30d34a56e3e852b7e985734f392535bd4291de9a9f38725304f36dc9caff281
@@ -45,9 +45,14 @@ class Vanagon
45
45
  target_list = options[:targets].split(',')
46
46
  end
47
47
 
48
+ only_build = []
49
+ unless options[:only_build].nil? || options[:only_build].empty?
50
+ only_build = options[:only_build].split(',')
51
+ end
52
+
48
53
  platform_list.zip(target_list).each do |pair|
49
54
  platform, target = pair
50
- artifact = Vanagon::Driver.new(platform, project, options.merge({ :target => target }))
55
+ artifact = Vanagon::Driver.new(platform, project, options.merge({ :target => target, :only_build => only_build }))
51
56
  artifact.run
52
57
  end
53
58
  end
@@ -18,11 +18,12 @@ class Vanagon
18
18
 
19
19
  class << self
20
20
  # Attempt to connect to whatever URL is provided and
21
- # return True or False depending on whether or not
21
+ # return true or false depending on whether or not
22
22
  # `git` thinks it's a valid Git repo.
23
23
  #
24
- # @param url
25
- # @param timeout Time (in seconds) to wait before assuming the
24
+ # @param url [#to_s] A URI::HTTPS, URI:HTTP, or String with the the URL of the
25
+ # remote git repository.
26
+ # @param timeout [Number] Time (in seconds) to wait before assuming the
26
27
  # git command has failed. Useful in instances where a URL
27
28
  # prompts for credentials despite not being a git remote
28
29
  # @return [Boolean] whether #url is a valid Git repo or not
@@ -34,30 +35,22 @@ class Vanagon
34
35
  # with: NoMethodError: undefined method `split' for nil:NilClass
35
36
  #
36
37
  # We'll work around that case by calling 'git ls-remote' directly ourselves.
37
- #
38
- # I'm leaving in the broken version here for a time when the ruby-git library
39
- # is fixed.
40
-
41
- #def valid_remote?(url, timeout = 0)
42
- # Timeout.timeout(timeout) do
43
- # !!::Git.ls_remote(url)
44
- # end
45
- #rescue ::Git::GitExecuteError
46
- # false
47
- #rescue Timeout::Error
48
- # false
49
- #end
50
38
 
51
39
  def valid_remote?(url, timeout = 0)
52
- Timeout.timeout(timeout) do
53
- Vanagon::Utilities.local_command("git ls-remote --heads #{url} > /dev/null 2>&1")
54
- return false unless $?.exitstatus.zero?
55
- return true
40
+ # RE-15209. To relieve github rate-limiting, if the URL starts with
41
+ # https://github.com/... just accept it rather than ping github over and over.
42
+ return true if url.to_s.start_with?('https://github.com/')
43
+
44
+ begin
45
+ Timeout.timeout(timeout) do
46
+ Vanagon::Utilities.local_command("git ls-remote --heads #{url} > /dev/null 2>&1")
47
+ $?.exitstatus.zero?
48
+ end
49
+ rescue RuntimeError
50
+ # Either a Timeout::Error or some other execution exception that we'll just call
51
+ # 'invalid'
52
+ false
56
53
  end
57
- rescue Timeout::Error
58
- return false
59
- rescue RuntimeError
60
- return false
61
54
  end
62
55
  end
63
56
 
@@ -37,7 +37,9 @@ class Vanagon
37
37
  )
38
38
  @project.settings[:verbose] = options[:verbose]
39
39
  @project.settings[:skipcheck] = options[:skipcheck] || false
40
- filter_out_components(only_build) if only_build
40
+ if only_build && !only_build.empty?
41
+ filter_out_components(only_build)
42
+ end
41
43
  loginit('vanagon_hosts.log')
42
44
 
43
45
  @remote_workdir = options[:"remote-workdir"]
@@ -15,7 +15,7 @@ platform "osx-10.15-x86_64" do |plat|
15
15
  plat.provision_with "echo 'test ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/username"
16
16
  plat.provision_with "mkdir -p /etc/homebrew"
17
17
  plat.provision_with "cd /etc/homebrew"
18
- plat.provision_with %Q(su test -c 'echo | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
18
+ plat.provision_with %Q(su test -c 'echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"')
19
19
  plat.provision_with "sudo chown -R test:admin /Users/test/"
20
20
  plat.vmpooler_template "osx-1015-x86_64"
21
21
  end
@@ -125,12 +125,17 @@ describe 'Vanagon::Engine::AlwaysBeScheduling' do
125
125
  allow(File).to receive(:exist?)
126
126
  .with(floaty_config)
127
127
  .and_return(true)
128
+
128
129
  end
129
130
  token_value = 'decade'
130
131
  it %(reads a token from '~/.vmfloaty.yml at the top level') do
131
132
  allow(YAML).to receive(:load_file)
132
133
  .with(floaty_config)
133
134
  .and_return({'token' => token_value})
135
+ allow(ENV).to receive(:[])
136
+ allow(ENV).to receive(:[])
137
+ .with('VMPOOLER_TOKEN')
138
+ .and_return(nil)
134
139
 
135
140
  abs_service = Vanagon::Engine::AlwaysBeScheduling.new(platform, nil)
136
141
  expect(abs_service.token).to eq(token_value)
@@ -142,6 +147,10 @@ describe 'Vanagon::Engine::AlwaysBeScheduling' do
142
147
  .and_return({'services' =>
143
148
  {'MYabs' => {'type'=>'abs', 'token'=>token_value, 'url'=>'foo'}}
144
149
  })
150
+ allow(ENV).to receive(:[])
151
+ allow(ENV).to receive(:[])
152
+ .with('VMPOOLER_TOKEN')
153
+ .and_return(nil)
145
154
 
146
155
  abs_service = Vanagon::Engine::AlwaysBeScheduling.new(platform, nil)
147
156
  expect(abs_service.token).to eq(token_value)
@@ -193,4 +202,4 @@ describe 'Vanagon::Engine::AlwaysBeScheduling' do
193
202
  expect(abs_service.target).to eq(hostname)
194
203
  end
195
204
  end
196
- end
205
+ end
@@ -246,8 +246,8 @@ end" }
246
246
  allow_any_instance_of(Vanagon::Project::DSL).to receive(:puts)
247
247
  @el_plat = Vanagon::Platform::DSL.new('el-6-x86_64')
248
248
  @el_plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
249
- @deb_plat = Vanagon::Platform::DSL.new('ubuntu-16.04-amd64')
250
- @deb_plat.instance_eval("platform 'ubuntu-16.04-amd64' do |plat| end")
249
+ @deb_plat = Vanagon::Platform::DSL.new('ubuntu-18.04-amd64')
250
+ @deb_plat.instance_eval("platform 'ubuntu-18.04-amd64' do |plat| end")
251
251
  end
252
252
 
253
253
  it 'adds the package provide to the list of provides' do
@@ -328,8 +328,8 @@ end" }
328
328
  allow_any_instance_of(Vanagon::Project::DSL).to receive(:puts)
329
329
  @el_plat = Vanagon::Platform::DSL.new('el-6-x86_64')
330
330
  @el_plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
331
- @deb_plat = Vanagon::Platform::DSL.new('ubuntu-16.04-amd64')
332
- @deb_plat.instance_eval("platform 'ubuntu-16.04-amd64' do |plat| end")
331
+ @deb_plat = Vanagon::Platform::DSL.new('ubuntu-18.04-amd64')
332
+ @deb_plat.instance_eval("platform 'ubuntu-18.04-amd64' do |plat| end")
333
333
  end
334
334
 
335
335
  it 'adds the package replacement to the list of replacements' do
@@ -406,8 +406,8 @@ end" }
406
406
  allow_any_instance_of(Vanagon::Project::DSL).to receive(:puts)
407
407
  @el_plat = Vanagon::Platform::DSL.new('el-6-x86_64')
408
408
  @el_plat.instance_eval("platform 'el-6-x86_64' do |plat| end")
409
- @deb_plat = Vanagon::Platform::DSL.new('ubuntu-16.04-amd64')
410
- @deb_plat.instance_eval("platform 'ubuntu-16.04-amd64' do |plat| end")
409
+ @deb_plat = Vanagon::Platform::DSL.new('ubuntu-18.04-amd64')
410
+ @deb_plat.instance_eval("platform 'ubuntu-18.04-amd64' do |plat| end")
411
411
  end
412
412
 
413
413
  it 'adds the package conflict to the list of conflicts' do
@@ -80,19 +80,26 @@ describe Vanagon::Utilities::ExtraFilesSigner do
80
80
  context 'when success' do
81
81
  context 'when macos' do
82
82
  it 'generates signing commands for each file using --extended-attributes' do
83
+ stub_const('ENV', ENV.to_hash.merge('VANAGON_SSH_KEY' => nil))
83
84
  commands = Vanagon::Utilities::ExtraFilesSigner.commands(project._project, mktemp, source_dir)
84
- expect(commands).to match(
85
- [
86
- %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc "echo 'codesign /tmp/xyz/a.rb' > /tmp/xyz/sign_extra_file"),
87
- %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group --extended-attributes $(tempdir)/dir/source_dir/test1/a.rb test@abc:/tmp/xyz),
88
- %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc /bin/bash /tmp/xyz/sign_extra_file),
89
- %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group --extended-attributes test@abc:/tmp/xyz/a.rb $(tempdir)/dir/source_dir/test1/a.rb),
90
- %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc "echo 'codesign /tmp/xyz/b.rb' > /tmp/xyz/sign_extra_file"),
91
- %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group --extended-attributes $(tempdir)/dir/source_dir/test2/b.rb test@abc:/tmp/xyz),
92
- %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc /bin/bash /tmp/xyz/sign_extra_file),
93
- %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group --extended-attributes test@abc:/tmp/xyz/b.rb $(tempdir)/dir/source_dir/test2/b.rb)
94
- ]
95
- )
85
+ expected_commands = [
86
+ %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc "echo 'codesign /tmp/xyz/a.rb' > /tmp/xyz/sign_extra_file"),
87
+ %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group --extended-attributes $(tempdir)/dir/source_dir/test1/a.rb test@abc:/tmp/xyz),
88
+ %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc /bin/bash /tmp/xyz/sign_extra_file),
89
+ %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group --extended-attributes test@abc:/tmp/xyz/a.rb $(tempdir)/dir/source_dir/test1/a.rb),
90
+ %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc "echo 'codesign /tmp/xyz/b.rb' > /tmp/xyz/sign_extra_file"),
91
+ %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group --extended-attributes $(tempdir)/dir/source_dir/test2/b.rb test@abc:/tmp/xyz),
92
+ %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc /bin/bash /tmp/xyz/sign_extra_file),
93
+ %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group --extended-attributes test@abc:/tmp/xyz/b.rb $(tempdir)/dir/source_dir/test2/b.rb)
94
+ ]
95
+ expect(commands[0]).to match(expected_commands[0])
96
+ expect(commands[1]).to match(expected_commands[1])
97
+ expect(commands[2]).to match(expected_commands[2])
98
+ expect(commands[3]).to match(expected_commands[3])
99
+ expect(commands[4]).to match(expected_commands[4])
100
+ expect(commands[5]).to match(expected_commands[5])
101
+ expect(commands[6]).to match(expected_commands[6])
102
+ expect(commands[7]).to match(expected_commands[7])
96
103
  end
97
104
  end
98
105
 
@@ -106,19 +113,26 @@ describe Vanagon::Utilities::ExtraFilesSigner do
106
113
  let(:platform) { Vanagon::Platform::DSL.new('windows-2012r2-x86_64') }
107
114
 
108
115
  it 'generates signing commands for each file' do
116
+ stub_const('ENV', ENV.to_hash.merge('VANAGON_SSH_KEY' => nil))
109
117
  commands = Vanagon::Utilities::ExtraFilesSigner.commands(project._project, mktemp, source_dir)
110
- expect(commands).to match(
111
- [
112
- %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc "echo 'codesign /tmp/xyz/a.rb' > /tmp/xyz/sign_extra_file"),
113
- %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group $(tempdir)/dir/source_dir/test1/a.rb test@abc:/tmp/xyz),
114
- %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc /bin/bash /tmp/xyz/sign_extra_file),
115
- %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group test@abc:/tmp/xyz/a.rb $(tempdir)/dir/source_dir/test1/a.rb),
116
- %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc "echo 'codesign /tmp/xyz/b.rb' > /tmp/xyz/sign_extra_file"),
117
- %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group $(tempdir)/dir/source_dir/test2/b.rb test@abc:/tmp/xyz),
118
- %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc /bin/bash /tmp/xyz/sign_extra_file),
119
- %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group test@abc:/tmp/xyz/b.rb $(tempdir)/dir/source_dir/test2/b.rb)
120
- ]
121
- )
118
+ expected_commands = [
119
+ %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc "echo 'codesign /tmp/xyz/a.rb' > /tmp/xyz/sign_extra_file"),
120
+ %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group $(tempdir)/dir/source_dir/test1/a.rb test@abc:/tmp/xyz),
121
+ %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc /bin/bash /tmp/xyz/sign_extra_file),
122
+ %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group test@abc:/tmp/xyz/a.rb $(tempdir)/dir/source_dir/test1/a.rb),
123
+ %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc "echo 'codesign /tmp/xyz/b.rb' > /tmp/xyz/sign_extra_file"),
124
+ %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group $(tempdir)/dir/source_dir/test2/b.rb test@abc:/tmp/xyz),
125
+ %q(/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no test@abc /bin/bash /tmp/xyz/sign_extra_file),
126
+ %q(rsync -e '/usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' --verbose --recursive --hard-links --links --no-perms --no-owner --no-group test@abc:/tmp/xyz/b.rb $(tempdir)/dir/source_dir/test2/b.rb)
127
+ ]
128
+ expect(commands[0]).to match(expected_commands[0])
129
+ expect(commands[1]).to match(expected_commands[1])
130
+ expect(commands[2]).to match(expected_commands[2])
131
+ expect(commands[3]).to match(expected_commands[3])
132
+ expect(commands[4]).to match(expected_commands[4])
133
+ expect(commands[5]).to match(expected_commands[5])
134
+ expect(commands[6]).to match(expected_commands[6])
135
+ expect(commands[7]).to match(expected_commands[7])
122
136
  end
123
137
  end
124
138
  end
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.30.0
4
+ version: 0.32.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-08-18 00:00:00.000000000 Z
11
+ date: 2023-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.11.0
33
+ version: 1.13.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.11.0
40
+ version: 1.13.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fustigit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.3
47
+ version: 0.2.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.3
54
+ version: 0.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: lock_manager
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -157,8 +157,6 @@ files:
157
157
  - lib/vanagon/platform/defaults/debian-11-amd64.rb
158
158
  - lib/vanagon/platform/defaults/debian-8-amd64.rb
159
159
  - lib/vanagon/platform/defaults/debian-8-i386.rb
160
- - lib/vanagon/platform/defaults/debian-9-amd64.rb
161
- - lib/vanagon/platform/defaults/debian-9-i386.rb
162
160
  - lib/vanagon/platform/defaults/el-6-i386.rb
163
161
  - lib/vanagon/platform/defaults/el-6-x86_64.rb
164
162
  - lib/vanagon/platform/defaults/el-7-aarch64.rb
@@ -167,8 +165,6 @@ files:
167
165
  - lib/vanagon/platform/defaults/el-8-x86_64.rb
168
166
  - lib/vanagon/platform/defaults/el-9-aarch64.rb
169
167
  - lib/vanagon/platform/defaults/el-9-x86_64.rb
170
- - lib/vanagon/platform/defaults/fedora-32-x86_64.rb
171
- - lib/vanagon/platform/defaults/fedora-34-x86_64.rb
172
168
  - lib/vanagon/platform/defaults/fedora-36-x86_64.rb
173
169
  - lib/vanagon/platform/defaults/osx-10.15-x86_64.rb
174
170
  - lib/vanagon/platform/defaults/osx-11-x86_64.rb
@@ -179,8 +175,6 @@ files:
179
175
  - lib/vanagon/platform/defaults/sles-15-x86_64.rb
180
176
  - lib/vanagon/platform/defaults/solaris-11-i386.rb
181
177
  - lib/vanagon/platform/defaults/solaris-11-sparc.rb
182
- - lib/vanagon/platform/defaults/ubuntu-16.04-amd64.rb
183
- - lib/vanagon/platform/defaults/ubuntu-16.04-i386.rb
184
178
  - lib/vanagon/platform/defaults/ubuntu-18.04-aarch64.rb
185
179
  - lib/vanagon/platform/defaults/ubuntu-18.04-amd64.rb
186
180
  - lib/vanagon/platform/defaults/ubuntu-20.04-aarch64.rb
@@ -333,42 +327,42 @@ signing_key:
333
327
  specification_version: 3
334
328
  summary: All of your packages will fit into this van with this one simple trick.
335
329
  test_files:
336
- - spec/lib/vanagon/extensions/set/json_spec.rb
337
- - spec/lib/vanagon/extensions/ostruct/json_spec.rb
338
- - spec/lib/vanagon/extensions/string_spec.rb
339
- - spec/lib/vanagon/common/pathname_spec.rb
340
- - spec/lib/vanagon/common/user_spec.rb
341
- - spec/lib/vanagon/platform_spec.rb
342
- - spec/lib/vanagon/cli_spec.rb
343
- - spec/lib/vanagon/engine/pooler_spec.rb
330
+ - spec/lib/makefile_spec.rb
331
+ - spec/lib/vanagon/project/dsl_spec.rb
332
+ - spec/lib/vanagon/component_spec.rb
333
+ - spec/lib/vanagon/utilities/extra_files_signer_spec.rb
334
+ - spec/lib/vanagon/utilities/shell_utilities_spec.rb
335
+ - spec/lib/vanagon/engine/always_be_scheduling_spec.rb
336
+ - spec/lib/vanagon/engine/hardware_spec.rb
344
337
  - spec/lib/vanagon/engine/docker_spec.rb
345
338
  - spec/lib/vanagon/engine/local_spec.rb
346
- - spec/lib/vanagon/engine/always_be_scheduling_spec.rb
347
339
  - spec/lib/vanagon/engine/base_spec.rb
348
340
  - spec/lib/vanagon/engine/ec2_spec.rb
349
- - spec/lib/vanagon/engine/hardware_spec.rb
341
+ - spec/lib/vanagon/engine/pooler_spec.rb
342
+ - spec/lib/vanagon/common/pathname_spec.rb
343
+ - spec/lib/vanagon/common/user_spec.rb
344
+ - spec/lib/vanagon/driver_spec.rb
345
+ - spec/lib/vanagon/cli_spec.rb
350
346
  - spec/lib/vanagon/project_spec.rb
351
347
  - spec/lib/vanagon/utilities_spec.rb
352
- - spec/lib/vanagon/driver_spec.rb
353
- - spec/lib/vanagon/component/rules_spec.rb
354
- - spec/lib/vanagon/component/source_spec.rb
355
- - spec/lib/vanagon/component/source/rewrite_spec.rb
356
- - spec/lib/vanagon/component/source/local_spec.rb
357
- - spec/lib/vanagon/component/source/http_spec.rb
358
- - spec/lib/vanagon/component/source/git_spec.rb
359
- - spec/lib/vanagon/component/dsl_spec.rb
360
- - spec/lib/vanagon/project/dsl_spec.rb
361
- - spec/lib/vanagon/utilities/extra_files_signer_spec.rb
362
- - spec/lib/vanagon/utilities/shell_utilities_spec.rb
363
- - spec/lib/vanagon/platform/solaris_11_spec.rb
348
+ - spec/lib/vanagon/extensions/ostruct/json_spec.rb
349
+ - spec/lib/vanagon/extensions/string_spec.rb
350
+ - spec/lib/vanagon/extensions/set/json_spec.rb
351
+ - spec/lib/vanagon/platform/windows_spec.rb
364
352
  - spec/lib/vanagon/platform/solaris_10_spec.rb
365
353
  - spec/lib/vanagon/platform/osx_spec.rb
366
- - spec/lib/vanagon/platform/windows_spec.rb
367
- - spec/lib/vanagon/platform/deb_spec.rb
368
- - spec/lib/vanagon/platform/rpm_spec.rb
354
+ - spec/lib/vanagon/platform/solaris_11_spec.rb
369
355
  - spec/lib/vanagon/platform/rpm/aix_spec.rb
356
+ - spec/lib/vanagon/platform/deb_spec.rb
370
357
  - spec/lib/vanagon/platform/dsl_spec.rb
358
+ - spec/lib/vanagon/platform/rpm_spec.rb
359
+ - spec/lib/vanagon/platform_spec.rb
360
+ - spec/lib/vanagon/component/rules_spec.rb
361
+ - spec/lib/vanagon/component/dsl_spec.rb
362
+ - spec/lib/vanagon/component/source/rewrite_spec.rb
363
+ - spec/lib/vanagon/component/source/http_spec.rb
364
+ - spec/lib/vanagon/component/source/local_spec.rb
365
+ - spec/lib/vanagon/component/source/git_spec.rb
366
+ - spec/lib/vanagon/component/source_spec.rb
371
367
  - spec/lib/vanagon/environment_spec.rb
372
- - spec/lib/vanagon/component_spec.rb
373
368
  - spec/lib/git/rev_list_spec.rb
374
- - spec/lib/makefile_spec.rb
@@ -1,12 +0,0 @@
1
- platform "debian-9-amd64" do |plat|
2
- plat.servicedir "/lib/systemd/system"
3
- plat.defaultdir "/etc/default"
4
- plat.servicetype "systemd"
5
- plat.codename "stretch"
6
-
7
- plat.add_build_repository "http://pl-build-tools.delivery.puppetlabs.net/debian/pl-build-tools-release-#{plat.get_codename}.deb"
8
- packages = %w(build-essential devscripts make quilt pkg-config debhelper rsync fakeroot)
9
- plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
10
- plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "
11
- plat.vmpooler_template "debian-9-x86_64"
12
- end
@@ -1,12 +0,0 @@
1
- platform "debian-9-i386" do |plat|
2
- plat.servicedir "/lib/systemd/system"
3
- plat.defaultdir "/etc/default"
4
- plat.servicetype "systemd"
5
- plat.codename "stretch"
6
-
7
- plat.add_build_repository "http://pl-build-tools.delivery.puppetlabs.net/debian/pl-build-tools-release-#{plat.get_codename}.deb"
8
- packages = %w(build-essential devscripts make quilt pkg-config debhelper rsync fakeroot)
9
- plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
10
- plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "
11
- plat.vmpooler_template "debian-9-i386"
12
- end
@@ -1,11 +0,0 @@
1
- platform "fedora-32-x86_64" do |plat|
2
- plat.servicedir "/usr/lib/systemd/system"
3
- plat.defaultdir "/etc/sysconfig"
4
- plat.servicetype "systemd"
5
- plat.dist "fc32"
6
-
7
- packages = %w(autoconf automake rsync gcc gcc-c++ make rpmdevtools cmake)
8
- plat.provision_with "/usr/bin/dnf install -y --best --allowerasing #{packages.join(' ')}"
9
- plat.install_build_dependencies_with "/usr/bin/dnf install -y --best --allowerasing"
10
- plat.vmpooler_template "fedora-32-x86_64"
11
- end
@@ -1,17 +0,0 @@
1
- platform 'fedora-34-x86_64' do |plat|
2
- plat.servicedir '/usr/lib/systemd/system'
3
- plat.defaultdir '/etc/sysconfig'
4
- plat.servicetype 'systemd'
5
- plat.dist 'fc34'
6
-
7
- packages = %w[
8
- autoconf automake bzip2-devel gcc gcc-c++ libselinux-devel
9
- libsepol libsepol-devel make cmake pkgconfig readline-devel
10
- rpmdevtools rsync swig zlib-devel systemtap-sdt-devel
11
- perl-lib perl-FindBin
12
- ]
13
- plat.provision_with("/usr/bin/dnf install -y --best --allowerasing #{packages.join(' ')}")
14
-
15
- plat.install_build_dependencies_with '/usr/bin/dnf install -y --best --allowerasing'
16
- plat.vmpooler_template 'fedora-34-x86_64'
17
- end
@@ -1,12 +0,0 @@
1
- platform "ubuntu-16.04-amd64" do |plat|
2
- plat.servicedir "/lib/systemd/system"
3
- plat.defaultdir "/etc/default"
4
- plat.servicetype "systemd"
5
- plat.codename "xenial"
6
-
7
- plat.add_build_repository "http://pl-build-tools.delivery.puppetlabs.net/debian/pl-build-tools-release-#{plat.get_codename}.deb"
8
- packages = %w(build-essential devscripts make quilt pkg-config debhelper rsync fakeroot)
9
- plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
10
- plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "
11
- plat.vmpooler_template "ubuntu-1604-x86_64"
12
- end
@@ -1,12 +0,0 @@
1
- platform "ubuntu-16.04-i386" do |plat|
2
- plat.servicedir "/lib/systemd/system"
3
- plat.defaultdir "/etc/default"
4
- plat.servicetype "systemd"
5
- plat.codename "xenial"
6
-
7
- plat.add_build_repository "http://pl-build-tools.delivery.puppetlabs.net/debian/pl-build-tools-release-#{plat.get_codename}.deb"
8
- packages = %w(build-essential devscripts make quilt pkg-config debhelper rsync fakeroot)
9
- plat.provision_with "export DEBIAN_FRONTEND=noninteractive; apt-get update -qq; apt-get install -qy --no-install-recommends #{packages.join(' ')}"
10
- plat.install_build_dependencies_with "DEBIAN_FRONTEND=noninteractive; apt-get install -qy --no-install-recommends "
11
- plat.vmpooler_template "ubuntu-1604-i386"
12
- end