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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6689cece3da0f0598e2b101e9d830d54f3772fc9
4
- data.tar.gz: b82d70a25434a64f1704eec02f5811b9e41283f8
3
+ metadata.gz: d9f1651b77d15462f9a7c1951cdd5764d98b4499
4
+ data.tar.gz: e14e2dc2e1e723ff80a966c9c198d7677084985e
5
5
  SHA512:
6
- metadata.gz: 29952bd940117c67ff3159faddc993dc9d76c2e95ad7a8037e85169caedb1a169a3a5b91960d2d1c893c5d92576bd9dec548f354e96f58bec8e736ca0ef5681d
7
- data.tar.gz: 08a1399763d9dbb9865e1642d4ae8769ca1ccb895888ae3e13359518932c364118a3462cfd3f9e23fbf141a8d8e99f751860d2015f2c1855fef3dfe22d568fa3
6
+ metadata.gz: 9b9ac46be10b8bde82c7cafa62de05f1b54975d886027dac63edd8ae080a1095f3b964fa4a31e72d8ba1624b115a52acfb0cccff63699926da4144e208e17537
7
+ data.tar.gz: 363e2bd24af39522e8fffcabd95af09a01710770ffafb0518d18fba3f1df44937505b377e615dfaa03b06f521e1882306458bd5657c09e0e0da22194df0d062b
data/Gemfile.lock CHANGED
@@ -36,7 +36,7 @@ GIT
36
36
  PATH
37
37
  remote: .
38
38
  specs:
39
- corl (0.4.22)
39
+ corl (0.4.23)
40
40
  facter (~> 1.7)
41
41
  fog (~> 1.20)
42
42
  hiera (~> 1.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.22
1
+ 0.4.23
data/bin/corl CHANGED
@@ -1,3 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'corl'
3
- exit(CORL.executable(ARGV, :corl))
3
+
4
+ if nucleon_locate :vagrant
5
+ system(*[ 'vagrant', 'corl', ARGV ].flatten)
6
+ exit($?.exitstatus)
7
+ else
8
+ exit(CORL.executable(ARGV, :corl))
9
+ end
@@ -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 "deb 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
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.22 ruby lib
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.22"
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"]
@@ -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[:property]
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
  #-----------------------------------------------------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.22
4
+ version: 0.4.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Webb