corl 0.4.22 → 0.4.23
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/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/bin/corl +7 -1
- data/bootstrap/os/ubuntu/06_puppet.sh +1 -1
- data/corl.gemspec +2 -2
- data/lib/CORL/action/lookup.rb +2 -2
- data/lib/CORL/provisioner/puppetnode.rb +7 -0
- data/lib/core/vagrant/commands/launcher.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9f1651b77d15462f9a7c1951cdd5764d98b4499
|
4
|
+
data.tar.gz: e14e2dc2e1e723ff80a966c9c198d7677084985e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b9ac46be10b8bde82c7cafa62de05f1b54975d886027dac63edd8ae080a1095f3b964fa4a31e72d8ba1624b115a52acfb0cccff63699926da4144e208e17537
|
7
|
+
data.tar.gz: 363e2bd24af39522e8fffcabd95af09a01710770ffafb0518d18fba3f1df44937505b377e615dfaa03b06f521e1882306458bd5657c09e0e0da22194df0d062b
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.23
|
data/bin/corl
CHANGED
@@ -15,7 +15,7 @@ esac
|
|
15
15
|
# Set up Puppet Apt repositories
|
16
16
|
apt-key adv --recv-key --keyserver pgp.mit.edu 4BD6EC30 2>&1 || exit 60
|
17
17
|
|
18
|
-
echo -e "
|
18
|
+
echo -e "# corl_puppet\ndeb http://apt.puppetlabs.com $OS_NAME main dependencies\ndeb-src http://apt.puppetlabs.com $OS_NAME main dependencies" | cat > /etc/apt/sources.list.d/corl_puppet.list || exit 61
|
19
19
|
chmod 0644 /etc/apt/sources.list.d/corl_puppet.list || exit 62
|
20
20
|
|
21
21
|
# Install Puppet
|
data/corl.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
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.4.
|
5
|
+
# stub: corl 0.4.23 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "corl"
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.23"
|
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"]
|
data/lib/CORL/action/lookup.rb
CHANGED
@@ -33,8 +33,8 @@ class Lookup < Plugin::CloudAction
|
|
33
33
|
def execute
|
34
34
|
super do |node, network|
|
35
35
|
ensure_node(node) do
|
36
|
-
property = settings
|
37
|
-
value = node.lookup(property)
|
36
|
+
property = settings.delete(:property)
|
37
|
+
value = node.lookup(property, nil, settings)
|
38
38
|
|
39
39
|
ui.info(sprintf("#{property} = %s", value.inspect))
|
40
40
|
end
|
@@ -28,6 +28,10 @@ class Puppetnode < CORL.plugin_class(:provisioner)
|
|
28
28
|
str = msg.respond_to?(:multiline) ? msg.multiline : msg.to_s
|
29
29
|
str = msg.source == "Puppet" ? str : "#{CORL.blue(msg.source)}: #{str}"
|
30
30
|
level = levels[msg.level]
|
31
|
+
|
32
|
+
if [ :warn, :error ].include?(level[:send])
|
33
|
+
myself.status = 111
|
34
|
+
end
|
31
35
|
|
32
36
|
CORL.ui_group("puppetnode::#{name}(#{CORL.yellow(level[:name])})", :cyan) do |ui|
|
33
37
|
ui.send(level[:send], str)
|
@@ -252,6 +256,8 @@ class Puppetnode < CORL.plugin_class(:provisioner)
|
|
252
256
|
begin
|
253
257
|
ui.info("Starting catalog generation")
|
254
258
|
|
259
|
+
myself.status = code.success
|
260
|
+
|
255
261
|
start_time = Time.now
|
256
262
|
node = init_puppet(profiles)
|
257
263
|
|
@@ -289,6 +295,7 @@ class Puppetnode < CORL.plugin_class(:provisioner)
|
|
289
295
|
Puppet.log_exception(error)
|
290
296
|
end
|
291
297
|
end
|
298
|
+
success = false if myself.status != code.success
|
292
299
|
success
|
293
300
|
end
|
294
301
|
end
|
@@ -25,7 +25,7 @@ class Launcher < ::Vagrant.plugin("2", :command)
|
|
25
25
|
def execute
|
26
26
|
# Set the base command so we can access in any actions executed
|
27
27
|
::CORL::Vagrant.command = ::CORL.handle(self)
|
28
|
-
::CORL.executable(@argv - [ "--" ], "vagrant corl")
|
28
|
+
::CORL.executable(@argv - [ "--" ], "[ vagrant ] corl")
|
29
29
|
end
|
30
30
|
|
31
31
|
#-----------------------------------------------------------------------------
|