bolt 3.11.0 → 3.15.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.

Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/Puppetfile +2 -2
  3. data/bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb +137 -104
  4. data/bolt-modules/boltlib/lib/puppet/functions/background.rb +2 -1
  5. data/bolt-modules/boltlib/lib/puppet/functions/parallelize.rb +5 -1
  6. data/bolt-modules/boltlib/lib/puppet/functions/run_plan.rb +13 -0
  7. data/bolt-modules/boltlib/lib/puppet/functions/wait.rb +47 -7
  8. data/bolt-modules/log/lib/puppet/functions/log/debug.rb +39 -0
  9. data/bolt-modules/log/lib/puppet/functions/log/error.rb +40 -0
  10. data/bolt-modules/log/lib/puppet/functions/log/fatal.rb +40 -0
  11. data/bolt-modules/log/lib/puppet/functions/log/info.rb +39 -0
  12. data/bolt-modules/log/lib/puppet/functions/log/trace.rb +39 -0
  13. data/bolt-modules/log/lib/puppet/functions/log/warn.rb +41 -0
  14. data/bolt-modules/out/lib/puppet/functions/out/message.rb +9 -49
  15. data/bolt-modules/out/lib/puppet/functions/out/verbose.rb +35 -0
  16. data/guides/{debugging.txt → debugging.yaml} +5 -6
  17. data/guides/{inventory.txt → inventory.yaml} +6 -7
  18. data/guides/{links.txt → links.yaml} +3 -4
  19. data/guides/{logging.txt → logging.yaml} +5 -6
  20. data/guides/{module.txt → module.yaml} +5 -6
  21. data/guides/{modulepath.txt → modulepath.yaml} +5 -6
  22. data/guides/{project.txt → project.yaml} +6 -7
  23. data/guides/{targets.txt → targets.yaml} +5 -6
  24. data/guides/{transports.txt → transports.yaml} +6 -7
  25. data/lib/bolt/analytics.rb +1 -1
  26. data/lib/bolt/applicator.rb +23 -1
  27. data/lib/bolt/bolt_option_parser.rb +6 -3
  28. data/lib/bolt/cli.rb +34 -14
  29. data/lib/bolt/config/options.rb +2 -2
  30. data/lib/bolt/config/transport/options.rb +12 -0
  31. data/lib/bolt/config/transport/ssh.rb +7 -0
  32. data/lib/bolt/error.rb +3 -3
  33. data/lib/bolt/executor.rb +12 -4
  34. data/lib/bolt/fiber_executor.rb +57 -12
  35. data/lib/bolt/outputter/human.rb +124 -15
  36. data/lib/bolt/outputter/json.rb +5 -5
  37. data/lib/bolt/outputter/logger.rb +6 -0
  38. data/lib/bolt/pal.rb +81 -21
  39. data/lib/bolt/pal/yaml_plan/step.rb +2 -0
  40. data/lib/bolt/pal/yaml_plan/step/message.rb +0 -8
  41. data/lib/bolt/pal/yaml_plan/step/verbose.rb +31 -0
  42. data/lib/bolt/pal/yaml_plan/transpiler.rb +1 -1
  43. data/lib/bolt/plan_future.rb +21 -6
  44. data/lib/bolt/plugin/task.rb +1 -1
  45. data/lib/bolt/transport/ssh/exec_connection.rb +3 -1
  46. data/lib/bolt/util/format.rb +68 -0
  47. data/lib/bolt/version.rb +1 -1
  48. data/lib/bolt_server/schemas/connect-data.json +4 -1
  49. data/lib/bolt_server/schemas/partials/target-ssh.json +4 -0
  50. data/lib/bolt_server/schemas/partials/target-winrm.json +4 -0
  51. data/lib/bolt_server/transport_app.rb +93 -52
  52. data/lib/bolt_spec/bolt_context.rb +9 -0
  53. data/lib/bolt_spec/plans.rb +1 -1
  54. data/lib/bolt_spec/plans/mock_executor.rb +31 -7
  55. data/lib/bolt_spec/plans/publish_stub.rb +4 -4
  56. data/modules/canary/plans/init.pp +1 -1
  57. data/resources/bolt_bash_completion.sh +1 -1
  58. metadata +28 -14
  59. data/guides/guide.txt +0 -17
@@ -7,19 +7,19 @@ module BoltSpec
7
7
  module Plans
8
8
  class PublishStub < ActionStub
9
9
  def return
10
- raise "return is not implemented for out_message"
10
+ raise "return is not implemented for out module functions"
11
11
  end
12
12
 
13
13
  def return_for_targets(_data)
14
- raise "return_for_targets is not implemented for out_message"
14
+ raise "return_for_targets is not implemented for out module functions"
15
15
  end
16
16
 
17
17
  def always_return(_data)
18
- raise "always_return is not implemented for out_message"
18
+ raise "always_return is not implemented for out module functions"
19
19
  end
20
20
 
21
21
  def error_with(_data)
22
- raise "error_with is not implemented for out_message"
22
+ raise "error_with is not implemented for out module functions"
23
23
  end
24
24
 
25
25
  def matches(message)
@@ -88,7 +88,7 @@ plan canary(
88
88
  $message = "Plan failed for ${merged_result.error_set.count} targets."
89
89
  }
90
90
  else {
91
- $message = "Plan aborted. ${canr.error_set.count} canary target failures. ${restr.count} targets skipped."
91
+ $message = "${canr.error_set.count} canary target failures. ${restr.count} targets skipped."
92
92
  }
93
93
  $details = {'action' => $action,
94
94
  'object' => $object,
@@ -47,7 +47,7 @@ _bolt_complete() {
47
47
  next=$(compgen -f -d "" -- $cur)
48
48
  # Handle tab completing enumerable CLI options
49
49
  elif [ "$prev" == "--log-level" ]; then
50
- next="trace debug info warn error fatal any"
50
+ next="trace debug info warn error fatal"
51
51
  elif [ "$prev" == "--transport" ]; then
52
52
  next="docker local lxd pcp podman remote ssh winrm"
53
53
  elif [ "$prev" == "--format" ]; then
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.11.0
4
+ version: 3.15.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-21 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -70,16 +70,22 @@ dependencies:
70
70
  name: ffi
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 1.9.25
73
76
  - - "<"
74
77
  - !ruby/object:Gem::Version
75
- version: 1.14.0
78
+ version: 2.0.0
76
79
  type: :runtime
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: 1.9.25
80
86
  - - "<"
81
87
  - !ruby/object:Gem::Version
82
- version: 1.14.0
88
+ version: 2.0.0
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: hiera-eyaml
85
91
  requirement: !ruby/object:Gem::Requirement
@@ -448,21 +454,27 @@ files:
448
454
  - bolt-modules/file/lib/puppet/functions/file/read.rb
449
455
  - bolt-modules/file/lib/puppet/functions/file/readable.rb
450
456
  - bolt-modules/file/lib/puppet/functions/file/write.rb
457
+ - bolt-modules/log/lib/puppet/functions/log/debug.rb
458
+ - bolt-modules/log/lib/puppet/functions/log/error.rb
459
+ - bolt-modules/log/lib/puppet/functions/log/fatal.rb
460
+ - bolt-modules/log/lib/puppet/functions/log/info.rb
461
+ - bolt-modules/log/lib/puppet/functions/log/trace.rb
462
+ - bolt-modules/log/lib/puppet/functions/log/warn.rb
451
463
  - bolt-modules/out/lib/puppet/functions/out/message.rb
464
+ - bolt-modules/out/lib/puppet/functions/out/verbose.rb
452
465
  - bolt-modules/prompt/lib/puppet/functions/prompt.rb
453
466
  - bolt-modules/prompt/lib/puppet/functions/prompt/menu.rb
454
467
  - bolt-modules/system/lib/puppet/functions/system/env.rb
455
468
  - exe/bolt
456
- - guides/debugging.txt
457
- - guides/guide.txt
458
- - guides/inventory.txt
459
- - guides/links.txt
460
- - guides/logging.txt
461
- - guides/module.txt
462
- - guides/modulepath.txt
463
- - guides/project.txt
464
- - guides/targets.txt
465
- - guides/transports.txt
469
+ - guides/debugging.yaml
470
+ - guides/inventory.yaml
471
+ - guides/links.yaml
472
+ - guides/logging.yaml
473
+ - guides/module.yaml
474
+ - guides/modulepath.yaml
475
+ - guides/project.yaml
476
+ - guides/targets.yaml
477
+ - guides/transports.yaml
466
478
  - lib/bolt.rb
467
479
  - lib/bolt/analytics.rb
468
480
  - lib/bolt/applicator.rb
@@ -531,6 +543,7 @@ files:
531
543
  - lib/bolt/pal/yaml_plan/step/script.rb
532
544
  - lib/bolt/pal/yaml_plan/step/task.rb
533
545
  - lib/bolt/pal/yaml_plan/step/upload.rb
546
+ - lib/bolt/pal/yaml_plan/step/verbose.rb
534
547
  - lib/bolt/pal/yaml_plan/transpiler.rb
535
548
  - lib/bolt/plan_creator.rb
536
549
  - lib/bolt/plan_future.rb
@@ -586,6 +599,7 @@ files:
586
599
  - lib/bolt/transport/winrm.rb
587
600
  - lib/bolt/transport/winrm/connection.rb
588
601
  - lib/bolt/util.rb
602
+ - lib/bolt/util/format.rb
589
603
  - lib/bolt/util/puppet_log_level.rb
590
604
  - lib/bolt/validator.rb
591
605
  - lib/bolt/version.rb
data/guides/guide.txt DELETED
@@ -1,17 +0,0 @@
1
- TOPIC
2
- guide
3
-
4
- DESCRIPTION
5
- A guide is a person (or CLI tool ;D) who leads travelers through unknown or
6
- unfamiliar locations. The term can also be applied to a person who leads others
7
- to more abstract goals such as knowledge or wisdom.
8
-
9
- Etymology: Originated sometime between 1325 and 1375. From Middle English
10
- guide, from the Old French guide, from Old Occitan guida, from guidar, from
11
- Frankish *wītan (“to show the way, lead”), from Proto-Germanic *wītaną (“to
12
- see, know; go, depart”), from Proto-Indo-European *weyd- (“to see, know”).
13
- Related also to English wit.
14
-
15
- DOCUMENTATION
16
- https://en.wikipedia.org/wiki/Guide
17
- https://en.wiktionary.org/wiki/guide