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.
- checksums.yaml +4 -4
- data/Puppetfile +2 -2
- data/bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb +137 -104
- data/bolt-modules/boltlib/lib/puppet/functions/background.rb +2 -1
- data/bolt-modules/boltlib/lib/puppet/functions/parallelize.rb +5 -1
- data/bolt-modules/boltlib/lib/puppet/functions/run_plan.rb +13 -0
- data/bolt-modules/boltlib/lib/puppet/functions/wait.rb +47 -7
- data/bolt-modules/log/lib/puppet/functions/log/debug.rb +39 -0
- data/bolt-modules/log/lib/puppet/functions/log/error.rb +40 -0
- data/bolt-modules/log/lib/puppet/functions/log/fatal.rb +40 -0
- data/bolt-modules/log/lib/puppet/functions/log/info.rb +39 -0
- data/bolt-modules/log/lib/puppet/functions/log/trace.rb +39 -0
- data/bolt-modules/log/lib/puppet/functions/log/warn.rb +41 -0
- data/bolt-modules/out/lib/puppet/functions/out/message.rb +9 -49
- data/bolt-modules/out/lib/puppet/functions/out/verbose.rb +35 -0
- data/guides/{debugging.txt → debugging.yaml} +5 -6
- data/guides/{inventory.txt → inventory.yaml} +6 -7
- data/guides/{links.txt → links.yaml} +3 -4
- data/guides/{logging.txt → logging.yaml} +5 -6
- data/guides/{module.txt → module.yaml} +5 -6
- data/guides/{modulepath.txt → modulepath.yaml} +5 -6
- data/guides/{project.txt → project.yaml} +6 -7
- data/guides/{targets.txt → targets.yaml} +5 -6
- data/guides/{transports.txt → transports.yaml} +6 -7
- data/lib/bolt/analytics.rb +1 -1
- data/lib/bolt/applicator.rb +23 -1
- data/lib/bolt/bolt_option_parser.rb +6 -3
- data/lib/bolt/cli.rb +34 -14
- data/lib/bolt/config/options.rb +2 -2
- data/lib/bolt/config/transport/options.rb +12 -0
- data/lib/bolt/config/transport/ssh.rb +7 -0
- data/lib/bolt/error.rb +3 -3
- data/lib/bolt/executor.rb +12 -4
- data/lib/bolt/fiber_executor.rb +57 -12
- data/lib/bolt/outputter/human.rb +124 -15
- data/lib/bolt/outputter/json.rb +5 -5
- data/lib/bolt/outputter/logger.rb +6 -0
- data/lib/bolt/pal.rb +81 -21
- data/lib/bolt/pal/yaml_plan/step.rb +2 -0
- data/lib/bolt/pal/yaml_plan/step/message.rb +0 -8
- data/lib/bolt/pal/yaml_plan/step/verbose.rb +31 -0
- data/lib/bolt/pal/yaml_plan/transpiler.rb +1 -1
- data/lib/bolt/plan_future.rb +21 -6
- data/lib/bolt/plugin/task.rb +1 -1
- data/lib/bolt/transport/ssh/exec_connection.rb +3 -1
- data/lib/bolt/util/format.rb +68 -0
- data/lib/bolt/version.rb +1 -1
- data/lib/bolt_server/schemas/connect-data.json +4 -1
- data/lib/bolt_server/schemas/partials/target-ssh.json +4 -0
- data/lib/bolt_server/schemas/partials/target-winrm.json +4 -0
- data/lib/bolt_server/transport_app.rb +93 -52
- data/lib/bolt_spec/bolt_context.rb +9 -0
- data/lib/bolt_spec/plans.rb +1 -1
- data/lib/bolt_spec/plans/mock_executor.rb +31 -7
- data/lib/bolt_spec/plans/publish_stub.rb +4 -4
- data/modules/canary/plans/init.pp +1 -1
- data/resources/bolt_bash_completion.sh +1 -1
- metadata +28 -14
- 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
|
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
|
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
|
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
|
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 = "
|
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
|
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.
|
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-
|
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:
|
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:
|
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.
|
457
|
-
- guides/
|
458
|
-
- guides/
|
459
|
-
- guides/
|
460
|
-
- guides/
|
461
|
-
- guides/
|
462
|
-
- guides/
|
463
|
-
- guides/
|
464
|
-
- guides/
|
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
|