bolt 2.23.0 → 2.27.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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/Puppetfile +1 -1
  3. data/bolt-modules/boltlib/lib/puppet/datatypes/result.rb +2 -1
  4. data/bolt-modules/boltlib/lib/puppet/functions/download_file.rb +1 -1
  5. data/bolt-modules/dir/lib/puppet/functions/dir/children.rb +1 -1
  6. data/exe/bolt +1 -0
  7. data/guides/inventory.txt +19 -0
  8. data/guides/project.txt +22 -0
  9. data/lib/bolt/analytics.rb +11 -7
  10. data/lib/bolt/applicator.rb +11 -10
  11. data/lib/bolt/bolt_option_parser.rb +75 -13
  12. data/lib/bolt/catalog.rb +4 -2
  13. data/lib/bolt/cli.rb +156 -176
  14. data/lib/bolt/config.rb +55 -25
  15. data/lib/bolt/config/options.rb +28 -6
  16. data/lib/bolt/executor.rb +5 -3
  17. data/lib/bolt/inventory.rb +8 -1
  18. data/lib/bolt/inventory/group.rb +4 -4
  19. data/lib/bolt/inventory/inventory.rb +1 -1
  20. data/lib/bolt/inventory/target.rb +1 -1
  21. data/lib/bolt/logger.rb +12 -6
  22. data/lib/bolt/outputter/human.rb +10 -0
  23. data/lib/bolt/outputter/json.rb +11 -0
  24. data/lib/bolt/outputter/logger.rb +3 -3
  25. data/lib/bolt/outputter/rainbow.rb +15 -0
  26. data/lib/bolt/pal.rb +23 -12
  27. data/lib/bolt/pal/yaml_plan/evaluator.rb +1 -1
  28. data/lib/bolt/pal/yaml_plan/transpiler.rb +11 -3
  29. data/lib/bolt/plugin/puppetdb.rb +1 -1
  30. data/lib/bolt/project.rb +63 -17
  31. data/lib/bolt/project_migrate.rb +138 -0
  32. data/lib/bolt/puppetdb/client.rb +1 -1
  33. data/lib/bolt/puppetdb/config.rb +1 -1
  34. data/lib/bolt/puppetfile.rb +160 -0
  35. data/lib/bolt/puppetfile/installer.rb +43 -0
  36. data/lib/bolt/puppetfile/module.rb +66 -0
  37. data/lib/bolt/r10k_log_proxy.rb +1 -1
  38. data/lib/bolt/rerun.rb +2 -2
  39. data/lib/bolt/result.rb +23 -0
  40. data/lib/bolt/shell.rb +1 -1
  41. data/lib/bolt/shell/bash.rb +7 -7
  42. data/lib/bolt/task.rb +1 -1
  43. data/lib/bolt/transport/base.rb +1 -1
  44. data/lib/bolt/transport/docker/connection.rb +10 -10
  45. data/lib/bolt/transport/local/connection.rb +3 -3
  46. data/lib/bolt/transport/orch.rb +3 -3
  47. data/lib/bolt/transport/ssh.rb +1 -1
  48. data/lib/bolt/transport/ssh/connection.rb +6 -6
  49. data/lib/bolt/transport/ssh/exec_connection.rb +5 -5
  50. data/lib/bolt/transport/winrm.rb +1 -1
  51. data/lib/bolt/transport/winrm/connection.rb +9 -9
  52. data/lib/bolt/util.rb +2 -2
  53. data/lib/bolt/util/puppet_log_level.rb +4 -3
  54. data/lib/bolt/version.rb +1 -1
  55. data/lib/bolt_server/base_config.rb +2 -2
  56. data/lib/bolt_server/config.rb +1 -1
  57. data/lib/bolt_server/file_cache.rb +1 -1
  58. data/lib/bolt_server/transport_app.rb +189 -14
  59. data/lib/bolt_spec/plans.rb +1 -1
  60. data/lib/bolt_spec/run.rb +3 -0
  61. metadata +12 -12
@@ -206,7 +206,7 @@ module BoltSpec
206
206
  Puppet[:tasks] = true
207
207
 
208
208
  # Ensure logger is initialized with Puppet levels so 'notice' works when running plan specs.
209
- Logging.init :debug, :info, :notice, :warn, :error, :fatal, :any
209
+ Logging.init :trace, :debug, :info, :notice, :warn, :error, :fatal, :any
210
210
  end
211
211
 
212
212
  # Provided as a class so expectations can be placed on it.
@@ -8,6 +8,7 @@ require 'bolt/pal'
8
8
  require 'bolt/plugin'
9
9
  require 'bolt/puppetdb'
10
10
  require 'bolt/util'
11
+ require 'bolt/logger'
11
12
 
12
13
  # This is intended to provide a relatively stable method of executing bolt in process from tests.
13
14
  module BoltSpec
@@ -153,6 +154,8 @@ module BoltSpec
153
154
  end
154
155
 
155
156
  def initialize(config_data, inventory_data, project_path)
157
+ Bolt::Logger.initialize_logging
158
+
156
159
  @config_data = config_data || {}
157
160
  @inventory_data = inventory_data || {}
158
161
  @project_path = project_path
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: 2.23.0
4
+ version: 2.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-17 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -182,22 +182,16 @@ dependencies:
182
182
  name: puppet
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: 6.16.0
188
- - - "<"
185
+ - - '='
189
186
  - !ruby/object:Gem::Version
190
- version: '7'
187
+ version: 6.18.0
191
188
  type: :runtime
192
189
  prerelease: false
193
190
  version_requirements: !ruby/object:Gem::Requirement
194
191
  requirements:
195
- - - ">="
196
- - !ruby/object:Gem::Version
197
- version: 6.16.0
198
- - - "<"
192
+ - - '='
199
193
  - !ruby/object:Gem::Version
200
- version: '7'
194
+ version: 6.18.0
201
195
  - !ruby/object:Gem::Dependency
202
196
  name: puppetfile-resolver
203
197
  requirement: !ruby/object:Gem::Requirement
@@ -437,6 +431,8 @@ files:
437
431
  - bolt-modules/prompt/lib/puppet/functions/prompt.rb
438
432
  - bolt-modules/system/lib/puppet/functions/system/env.rb
439
433
  - exe/bolt
434
+ - guides/inventory.txt
435
+ - guides/project.txt
440
436
  - lib/bolt.rb
441
437
  - lib/bolt/analytics.rb
442
438
  - lib/bolt/applicator.rb
@@ -498,9 +494,13 @@ files:
498
494
  - lib/bolt/plugin/puppetdb.rb
499
495
  - lib/bolt/plugin/task.rb
500
496
  - lib/bolt/project.rb
497
+ - lib/bolt/project_migrate.rb
501
498
  - lib/bolt/puppetdb.rb
502
499
  - lib/bolt/puppetdb/client.rb
503
500
  - lib/bolt/puppetdb/config.rb
501
+ - lib/bolt/puppetfile.rb
502
+ - lib/bolt/puppetfile/installer.rb
503
+ - lib/bolt/puppetfile/module.rb
504
504
  - lib/bolt/r10k_log_proxy.rb
505
505
  - lib/bolt/rerun.rb
506
506
  - lib/bolt/resource_instance.rb