bolt 3.10.0 → 3.11.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bolt might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa1075046a81e0596ff3f0483dc7b7a5913a073dd6e998f66c70687049531e74
4
- data.tar.gz: 9cdb2d3503e1bd2d84fa7c0fc846e3f4d2293780f648d9d07d549fd50d2b1a51
3
+ metadata.gz: ef5e67102ddbc1b3ef1c0d08352fd5392766b73f3686e54ca62e9f5e09141356
4
+ data.tar.gz: dc371bb5483705f7c7dbca0be037aad53338e27480faf1f884eb669f8c14fbb2
5
5
  SHA512:
6
- metadata.gz: 4b2f636ec7f5f038b69cd5c4f82e9fd93e59521035e15fa678cef67501a4e00287e29f40ce1672d2f5db0fa4972cbc26d9763f62480612e30ebcfae404d12a1f
7
- data.tar.gz: f87b3966ea10cf5a5fe46937e9a47b73d4553924bff00ee578f6c659a70fe82864e2cc78b76a685dfb9e3d4a4e5a3fb7bea136730bf6b5160454e665f4f02ea8
6
+ metadata.gz: 7efd326949ec4d661ff4d4471d9626dcf2688a5e0f699f777d70537135493b2b55250054b6de1989f933a23c8aafb6e2124a7062d32f398218529fd6550ff2b7
7
+ data.tar.gz: ac92568d449f852bc39e0c824c9fe6e3c13cee329fa6c5a3bfc1794b01a9b4b9278124456fe4adfd9cebe2ec0056ab42651b5f1aa4f1a56402a743c7893e42a3
data/Puppetfile CHANGED
@@ -6,13 +6,13 @@ moduledir File.join(File.dirname(__FILE__), 'modules')
6
6
 
7
7
  # Core modules used by 'apply'
8
8
  mod 'puppetlabs-service', '2.0.0'
9
- mod 'puppetlabs-puppet_agent', '4.6.1'
9
+ mod 'puppetlabs-puppet_agent', '4.7.0'
10
10
  mod 'puppetlabs-facts', '1.4.0'
11
11
 
12
12
  # Core types and providers for Puppet 6
13
13
  mod 'puppetlabs-augeas_core', '1.1.2'
14
14
  mod 'puppetlabs-host_core', '1.0.3'
15
- mod 'puppetlabs-scheduled_task', '3.0.0'
15
+ mod 'puppetlabs-scheduled_task', '3.0.1'
16
16
  mod 'puppetlabs-sshkeys_core', '2.2.0'
17
17
  mod 'puppetlabs-zfs_core', '1.2.0'
18
18
  mod 'puppetlabs-cron_core', '1.0.5'
@@ -29,14 +29,14 @@ mod 'puppetlabs-python_task_helper', '0.5.0'
29
29
  mod 'puppetlabs-reboot', '4.0.2'
30
30
  mod 'puppetlabs-ruby_task_helper', '0.6.0'
31
31
  mod 'puppetlabs-ruby_plugin_helper', '0.2.0'
32
- mod 'puppetlabs-stdlib', '7.0.1'
32
+ mod 'puppetlabs-stdlib', '7.1.0'
33
33
 
34
34
  # Plugin modules
35
35
  mod 'puppetlabs-aws_inventory', '0.7.0'
36
36
  mod 'puppetlabs-azure_inventory', '0.5.0'
37
37
  mod 'puppetlabs-gcloud_inventory', '0.3.0'
38
38
  mod 'puppetlabs-http_request', '0.2.2'
39
- mod 'puppetlabs-pkcs7', '0.1.1'
39
+ mod 'puppetlabs-pkcs7', '0.1.2'
40
40
  mod 'puppetlabs-secure_env_vars', '0.2.0'
41
41
  mod 'puppetlabs-terraform', '0.6.1'
42
42
  mod 'puppetlabs-vault', '0.4.0'
@@ -718,7 +718,7 @@ module Bolt
718
718
  Run a script on the specified targets.
719
719
 
720
720
  #{colorize(:cyan, 'Documentation')}
721
- Learn more about running scrips at https://pup.pt/bolt-commands.
721
+ Learn more about running scripts at https://pup.pt/bolt-commands.
722
722
 
723
723
  #{colorize(:cyan, 'Actions')}
724
724
  run Run a script on the specified targets.
@@ -740,7 +740,7 @@ module Bolt
740
740
  be quoted.
741
741
 
742
742
  #{colorize(:cyan, 'Documentation')}
743
- Learn more about running scrips at https://pup.pt/bolt-commands.
743
+ Learn more about running scripts at https://pup.pt/bolt-commands.
744
744
 
745
745
  #{colorize(:cyan, 'Examples')}
746
746
  bolt script run myscript.sh 'echo hello' --targets target1,target2
@@ -30,7 +30,7 @@ module Bolt
30
30
 
31
31
  settings = R10K::Settings.global_settings.evaluate(@config)
32
32
  R10K::Initializers::GlobalInitializer.new(settings).call
33
- install_action = R10K::Action::Puppetfile::Install.new(r10k_opts, nil)
33
+ install_action = R10K::Action::Puppetfile::Install.new(r10k_opts, nil, {})
34
34
 
35
35
  # Override the r10k logger with a proxy to our own logger
36
36
  R10K::Logging.instance_variable_set(:@outputter, Bolt::R10KLogProxy.new)
@@ -174,11 +174,22 @@ module Bolt
174
174
  if result.message?
175
175
  @stream.puts(remove_trail(indent(2, result.message)))
176
176
  end
177
-
178
177
  case result.action
179
178
  when 'command', 'script'
180
179
  safe_value = result.safe_value
181
- @stream.puts(indent(2, safe_value['merged_output'])) unless safe_value['merged_output'].strip.empty?
180
+ if safe_value["merged_output"]
181
+ @stream.puts(indent(2, safe_value['merged_output'])) unless safe_value['merged_output'].strip.empty?
182
+
183
+ else # output stdout or stderr
184
+ unless safe_value['stdout'].nil? || safe_value['stdout'].strip.empty?
185
+ @stream.puts(indent(2, "STDOUT:"))
186
+ @stream.puts(indent(4, safe_value['stdout']))
187
+ end
188
+ unless safe_value['stderr'].nil? || safe_value['stderr'].strip.empty?
189
+ @stream.puts(indent(2, "STDERR:"))
190
+ @stream.puts(indent(4, safe_value['stderr']))
191
+ end
192
+ end
182
193
  when 'lookup'
183
194
  @stream.puts(indent(2, result['value']))
184
195
  else
data/lib/bolt/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bolt
4
- VERSION = '3.10.0'
4
+ VERSION = '3.11.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.0
4
+ version: 3.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-14 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable