vanagon 0.15.15 → 0.15.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/vanagon/component.rb +5 -1
- data/resources/solaris/11/p5m.erb +0 -7
- data/spec/lib/vanagon/component_spec.rb +12 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b603b93508df9cf3db7210c0117177e3118daf5
|
4
|
+
data.tar.gz: 8f474685a3f839083f73bc376554b189dc19bc1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f724892ba32a35bacbe178a070577769f91b9dde5b8c773d79d1c04813896d2cf925c35052ea41749cda78b8291e34e634fae85b2b734f97ff4faba50518742
|
7
|
+
data.tar.gz: 4cfffe0d845bc0d1a0fe4a7c49f59c79863036e09ce4d76da0f4dcbd2ebdd5fb0a39deae9625a70012f2f5753dbd2e22a8bd97078c152e3c13c59f7dde2e11f2
|
data/README.md
CHANGED
@@ -176,6 +176,13 @@ when using the hardware engine. It defaults to *redis*, with no domain.
|
|
176
176
|
##### `LOCK_MANAGER_PORT`
|
177
177
|
Port of the system where redis is running. Defaults to *6379*.
|
178
178
|
|
179
|
+
##### `VANAGON_USE_MIRRORS`
|
180
|
+
Controls whether component sources are downloaded directly from upstream URLs
|
181
|
+
or from configured mirrors. Most Puppet projects using Vanagon default to
|
182
|
+
fetching components from internal mirrors. Set this variable to `n` when
|
183
|
+
building outside of the Puppet private network to download directly from
|
184
|
+
upstream sources.
|
185
|
+
|
179
186
|
##### `VANAGON_RETRY_COUNT`
|
180
187
|
Some phases of compilation support retries. The default value is *1* but
|
181
188
|
setting to any integer value greater than 1 will causes these components
|
data/lib/vanagon/component.rb
CHANGED
@@ -284,7 +284,11 @@ class Vanagon
|
|
284
284
|
def get_source(workdir) # rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity
|
285
285
|
opts = options.merge({ workdir: workdir })
|
286
286
|
if url || !mirrors.empty?
|
287
|
-
|
287
|
+
if ENV['VANAGON_USE_MIRRORS'] == 'n'
|
288
|
+
fetch_url(opts)
|
289
|
+
else
|
290
|
+
fetch_mirrors(opts) || fetch_url(opts)
|
291
|
+
end
|
288
292
|
source.verify
|
289
293
|
extract_with << source.extract(platform.tar) if source.respond_to? :extract
|
290
294
|
|
@@ -26,13 +26,6 @@ depend fmri=pkg:/<%= requirement %> type=require
|
|
26
26
|
<transform dir path=usr$ -> drop>
|
27
27
|
<transform dir path=var$ -> drop>
|
28
28
|
|
29
|
-
# (CPR-251) In solaris 11, /var/run is a symlink to /system/volatile, which
|
30
|
-
# causes conflicts during package installation. To avoid this, we transform any
|
31
|
-
# directory under /var/run to repoint under /system/volatile and drop
|
32
|
-
# /system/volatile itself to avoid conflicts.
|
33
|
-
<transform dir -> edit path var/run system/volatile>
|
34
|
-
<transform dir path=system/volatile$ -> drop>
|
35
|
-
|
36
29
|
<%- get_root_directories.each do |dir| -%>
|
37
30
|
<transform dir path=<%= strip_and_escape(dir.split('/')[0..-2].join('/')) %>$ -> drop>
|
38
31
|
<%- end -%>
|
@@ -95,6 +95,18 @@ describe "Vanagon::Component" do
|
|
95
95
|
expect(subject).to receive(:fetch_url)
|
96
96
|
subject.get_source(@workdir)
|
97
97
|
end
|
98
|
+
|
99
|
+
it 'retrieves from a canonical URI if VANAGON_USE_MIRRORS is set to "n"' do
|
100
|
+
allow(ENV).to receive(:[]).with('VANAGON_USE_MIRRORS').and_return('n')
|
101
|
+
allow(subject)
|
102
|
+
.to receive(:fetch_url)
|
103
|
+
.and_return(true)
|
104
|
+
|
105
|
+
# We expect #get_source to skip mirrors
|
106
|
+
expect(subject).not_to receive(:fetch_mirrors)
|
107
|
+
expect(subject).to receive(:fetch_url)
|
108
|
+
subject.get_source(@workdir)
|
109
|
+
end
|
98
110
|
end
|
99
111
|
|
100
112
|
describe "#get_sources" do
|
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.15.
|
4
|
+
version: 0.15.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
261
|
version: '0'
|
262
262
|
requirements: []
|
263
263
|
rubyforge_project:
|
264
|
-
rubygems_version: 2.6.
|
264
|
+
rubygems_version: 2.6.14
|
265
265
|
signing_key:
|
266
266
|
specification_version: 3
|
267
267
|
summary: All of your packages will fit into this van with this one simple trick.
|