bolt 3.12.0 → 3.16.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 +1 -1
- 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 +3 -20
- data/lib/bolt/application.rb +620 -0
- data/lib/bolt/bolt_option_parser.rb +18 -6
- data/lib/bolt/cli.rb +592 -772
- 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/executor.rb +12 -4
- data/lib/bolt/fiber_executor.rb +63 -14
- data/lib/bolt/outputter/human.rb +201 -43
- data/lib/bolt/outputter/json.rb +68 -43
- data/lib/bolt/outputter/logger.rb +6 -0
- data/lib/bolt/pal.rb +67 -14
- 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_creator.rb +2 -20
- data/lib/bolt/plan_future.rb +23 -3
- data/lib/bolt/plan_result.rb +1 -1
- data/lib/bolt/plugin/task.rb +1 -1
- data/lib/bolt/project.rb +0 -7
- data/lib/bolt/result_set.rb +2 -1
- data/lib/bolt/transport/local/connection.rb +17 -1
- data/lib/bolt/transport/orch/connection.rb +13 -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/partials/target-ssh.json +4 -0
- data/lib/bolt_server/schemas/partials/target-winrm.json +4 -0
- data/lib/bolt_server/transport_app.rb +92 -50
- 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/resources/bolt_bash_completion.sh +1 -1
- metadata +29 -15
- data/guides/guide.txt +0 -17
- data/lib/bolt/secret.rb +0 -37
@@ -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)
|
@@ -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.16.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-09 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,23 +454,30 @@ 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
|
480
|
+
- lib/bolt/application.rb
|
468
481
|
- lib/bolt/applicator.rb
|
469
482
|
- lib/bolt/apply_inventory.rb
|
470
483
|
- lib/bolt/apply_result.rb
|
@@ -531,6 +544,7 @@ files:
|
|
531
544
|
- lib/bolt/pal/yaml_plan/step/script.rb
|
532
545
|
- lib/bolt/pal/yaml_plan/step/task.rb
|
533
546
|
- lib/bolt/pal/yaml_plan/step/upload.rb
|
547
|
+
- lib/bolt/pal/yaml_plan/step/verbose.rb
|
534
548
|
- lib/bolt/pal/yaml_plan/transpiler.rb
|
535
549
|
- lib/bolt/plan_creator.rb
|
536
550
|
- lib/bolt/plan_future.rb
|
@@ -557,7 +571,6 @@ files:
|
|
557
571
|
- lib/bolt/resource_instance.rb
|
558
572
|
- lib/bolt/result.rb
|
559
573
|
- lib/bolt/result_set.rb
|
560
|
-
- lib/bolt/secret.rb
|
561
574
|
- lib/bolt/shell.rb
|
562
575
|
- lib/bolt/shell/bash.rb
|
563
576
|
- lib/bolt/shell/bash/tmpdir.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
|
data/lib/bolt/secret.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'bolt/plugin'
|
4
|
-
|
5
|
-
module Bolt
|
6
|
-
class Secret
|
7
|
-
KNOWN_KEYS = {
|
8
|
-
'createkeys' => %w[keysize private_key public_key],
|
9
|
-
'encrypt' => %w[public_key],
|
10
|
-
'decrypt' => %w[private_key public_key]
|
11
|
-
}.freeze
|
12
|
-
|
13
|
-
def self.execute(plugins, outputter, options)
|
14
|
-
name = options[:plugin] || 'pkcs7'
|
15
|
-
plugin = plugins.by_name(name)
|
16
|
-
|
17
|
-
unless plugin
|
18
|
-
raise Bolt::Plugin::PluginError::Unknown, name
|
19
|
-
end
|
20
|
-
|
21
|
-
case options[:action]
|
22
|
-
when 'createkeys'
|
23
|
-
opts = { 'force' => options[:force] }.compact
|
24
|
-
result = plugins.get_hook(name, :secret_createkeys).call(opts)
|
25
|
-
outputter.print_message(result)
|
26
|
-
when 'encrypt'
|
27
|
-
encrypted = plugins.get_hook(name, :secret_encrypt).call('plaintext_value' => options[:object])
|
28
|
-
outputter.print_message(encrypted)
|
29
|
-
when 'decrypt'
|
30
|
-
decrypted = plugins.get_hook(name, :secret_decrypt).call('encrypted_value' => options[:object])
|
31
|
-
outputter.print_message(decrypted)
|
32
|
-
end
|
33
|
-
|
34
|
-
0
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|