corl 0.5.13 → 0.5.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/corl.gemspec +3 -3
- data/lib/core/vagrant/config.rb +21 -21
- data/lib/puppet/parser/functions/corl_include.rb +8 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7aa748974143ba8a58a9d80fb344ccb4156060d
|
4
|
+
data.tar.gz: 8c3937130f2468a5462adc2fdb1171c730762387
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 333a02982ceb698acec7f3d5c2064b327b783cefe0315e2d1b4eb6390f88988134c9d9a49c496bea297eb5dd946f96bd86099d41eb80ded6fcdfaf07fc36606d
|
7
|
+
data.tar.gz: 9f086aca3037fa7c37eca60dc406d0167b0cacfd5b1577718ced41c36737500f58955eeb05cb9222f625ba996a3c64924fe69386a46330495b56fe6c043960c7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.14
|
data/corl.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: corl 0.5.
|
5
|
+
# stub: corl 0.5.14 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "corl"
|
9
|
-
s.version = "0.5.
|
9
|
+
s.version = "0.5.14"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Adrian Webb"]
|
14
|
-
s.date = "2015-02-
|
14
|
+
s.date = "2015-02-09"
|
15
15
|
s.description = "Framework that provides a simple foundation for growing organically in the cloud"
|
16
16
|
s.email = "adrian.webb@coralnexus.com"
|
17
17
|
s.executables = ["corl"]
|
data/lib/core/vagrant/config.rb
CHANGED
@@ -269,27 +269,6 @@ module Config
|
|
269
269
|
machine.vm.provider provider do |interface, override|
|
270
270
|
render(" node.vm.provider '#{provider}' do |provider, override| # for #{node.hostname}") unless already_processed[provider]
|
271
271
|
|
272
|
-
if box || box_url
|
273
|
-
if provider != :docker
|
274
|
-
if box && box_url
|
275
|
-
render(" override.vm.box = %property", { :property => box }) unless already_processed[provider]
|
276
|
-
override.vm.box = box
|
277
|
-
|
278
|
-
render(" override.vm.box_url = %property", { :property => box_url }) unless already_processed[provider]
|
279
|
-
override.vm.box_url = box_url
|
280
|
-
end
|
281
|
-
else
|
282
|
-
if box_file
|
283
|
-
render(" provider.build_dir = %property", { :property => box_file }) unless already_processed[provider]
|
284
|
-
interface.build_dir = box_file
|
285
|
-
else
|
286
|
-
render(" provider.image = %property", { :property => box }) unless already_processed[provider]
|
287
|
-
interface.image = box
|
288
|
-
end
|
289
|
-
end
|
290
|
-
render("\n")
|
291
|
-
end
|
292
|
-
|
293
272
|
if info.has_key?(:private_network)
|
294
273
|
network_options = info[:private_network].is_a?(Hash) ? info[:private_network] : { :ip => info[:private_network] }
|
295
274
|
|
@@ -338,6 +317,27 @@ module Config
|
|
338
317
|
end
|
339
318
|
end
|
340
319
|
|
320
|
+
if box || box_url
|
321
|
+
if provider != :docker
|
322
|
+
if box && box_url
|
323
|
+
render(" override.vm.box = %property", { :property => box }) unless already_processed[provider]
|
324
|
+
override.vm.box = box
|
325
|
+
|
326
|
+
render(" override.vm.box_url = %property", { :property => box_url }) unless already_processed[provider]
|
327
|
+
override.vm.box_url = box_url
|
328
|
+
end
|
329
|
+
else
|
330
|
+
if box_file
|
331
|
+
render(" provider.build_dir = %property", { :property => box_file }) unless already_processed[provider]
|
332
|
+
interface.build_dir = box_file
|
333
|
+
else
|
334
|
+
render(" provider.image = %property", { :property => box }) unless already_processed[provider]
|
335
|
+
interface.image = box
|
336
|
+
end
|
337
|
+
end
|
338
|
+
render("\n")
|
339
|
+
end
|
340
|
+
|
341
341
|
# Server shares
|
342
342
|
unless configure_shares(node, provider, override, already_processed[provider], ' ')
|
343
343
|
raise "Configuration of Vagrant shares failed: #{node_name}"
|
@@ -18,7 +18,7 @@ This function performs a lookup for a variable value in various locations follow
|
|
18
18
|
If no value is found in the defined sources, it does not include any classes.
|
19
19
|
EOS
|
20
20
|
) do |args|
|
21
|
-
|
21
|
+
|
22
22
|
CORL.run do
|
23
23
|
raise(Puppet::ParseError, "corl_include(): Define at least the variable name " +
|
24
24
|
"given (#{args.size} for 1)") if args.size < 1
|
@@ -26,11 +26,13 @@ If no value is found in the defined sources, it does not include any classes.
|
|
26
26
|
var_name = args[0]
|
27
27
|
parameters = ( args.size > 1 ? args[1] : {} )
|
28
28
|
options = ( args.size > 2 ? args[2] : {} )
|
29
|
-
|
29
|
+
|
30
30
|
module_name = parent_module_name
|
31
31
|
contexts = [ :include, var_name ]
|
32
|
-
|
32
|
+
|
33
33
|
default_options = {
|
34
|
+
:node => CORL::Provisioner::Puppetnode.node,
|
35
|
+
:provisioner => :puppetnode,
|
34
36
|
:hiera_scope => self,
|
35
37
|
:puppet_scope => self,
|
36
38
|
:search => 'core::default',
|
@@ -38,13 +40,13 @@ If no value is found in the defined sources, it does not include any classes.
|
|
38
40
|
:merge => true,
|
39
41
|
:undefined_value => :undef
|
40
42
|
}
|
41
|
-
|
43
|
+
|
42
44
|
if module_name
|
43
|
-
config = CORL::Config.init(options, contexts, module_name, default_options)
|
45
|
+
config = CORL::Config.init(options, contexts, module_name, default_options)
|
44
46
|
else
|
45
47
|
config = CORL::Config.init_flat(options, contexts, default_options)
|
46
48
|
end
|
47
|
-
|
49
|
+
|
48
50
|
CORL::Util::Puppet.include(var_name, parameters, config)
|
49
51
|
end
|
50
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Webb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nucleon
|