corl 0.4.23 → 0.4.24
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 +1 -1
- data/corl.gemspec +2 -2
- data/lib/CORL/provisioner/puppetnode.rb +11 -3
- 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: e6bf577243e8547180dfba960639bf2bc4a924f2
|
|
4
|
+
data.tar.gz: 2f0100c0679d386c62dcf9f1cba831970ffb4087
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d823a375d6e2a76a795e38514e5123d48f39a1fac58ef3c641aa47669b65641748238a1b368a4e582013af530b664cc031bde58ac687bee7de83e7f484f83a7
|
|
7
|
+
data.tar.gz: 1dba62d74a618462531a2449ab0b80c51127dd82b794ee26c8f67841c10d0bf9dfa7f2c1bfe37eef72adcbfa2bf439e35d603453b65b7c854eb7f7cb61598d2e
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.24
|
data/bin/corl
CHANGED
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.24 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.24"
|
|
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"]
|
|
@@ -4,6 +4,14 @@ class Puppetnode < CORL.plugin_class(:provisioner)
|
|
|
4
4
|
|
|
5
5
|
@@puppet_lock = Mutex.new
|
|
6
6
|
|
|
7
|
+
#---
|
|
8
|
+
|
|
9
|
+
@@status = {}
|
|
10
|
+
|
|
11
|
+
def self.status
|
|
12
|
+
@@status
|
|
13
|
+
end
|
|
14
|
+
|
|
7
15
|
#-----------------------------------------------------------------------------
|
|
8
16
|
# Provisioner plugin interface
|
|
9
17
|
|
|
@@ -30,7 +38,7 @@ class Puppetnode < CORL.plugin_class(:provisioner)
|
|
|
30
38
|
level = levels[msg.level]
|
|
31
39
|
|
|
32
40
|
if [ :warn, :error ].include?(level[:send])
|
|
33
|
-
|
|
41
|
+
::CORL::Provisioner::Puppetnode.status[name] = 111
|
|
34
42
|
end
|
|
35
43
|
|
|
36
44
|
CORL.ui_group("puppetnode::#{name}(#{CORL.yellow(level[:name])})", :cyan) do |ui|
|
|
@@ -256,7 +264,7 @@ class Puppetnode < CORL.plugin_class(:provisioner)
|
|
|
256
264
|
begin
|
|
257
265
|
ui.info("Starting catalog generation")
|
|
258
266
|
|
|
259
|
-
|
|
267
|
+
@@status[id] = code.success
|
|
260
268
|
|
|
261
269
|
start_time = Time.now
|
|
262
270
|
node = init_puppet(profiles)
|
|
@@ -295,7 +303,7 @@ class Puppetnode < CORL.plugin_class(:provisioner)
|
|
|
295
303
|
Puppet.log_exception(error)
|
|
296
304
|
end
|
|
297
305
|
end
|
|
298
|
-
success = false if
|
|
306
|
+
success = false if @@status[id] != code.success
|
|
299
307
|
success
|
|
300
308
|
end
|
|
301
309
|
end
|