bolt 2.8.0 → 2.12.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/datatypes/applyresult.rb +2 -0
  4. data/bolt-modules/boltlib/lib/puppet/datatypes/resourceinstance.rb +27 -0
  5. data/bolt-modules/boltlib/lib/puppet/datatypes/result.rb +2 -0
  6. data/bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb +2 -0
  7. data/bolt-modules/boltlib/lib/puppet/datatypes/target.rb +4 -3
  8. data/bolt-modules/boltlib/lib/puppet/functions/run_plan.rb +61 -0
  9. data/bolt-modules/boltlib/lib/puppet/functions/set_resources.rb +122 -0
  10. data/bolt-modules/boltlib/types/planresult.pp +12 -1
  11. data/bolt-modules/file/lib/puppet/functions/file/exists.rb +3 -1
  12. data/bolt-modules/file/lib/puppet/functions/file/join.rb +1 -1
  13. data/bolt-modules/file/lib/puppet/functions/file/read.rb +2 -1
  14. data/bolt-modules/file/lib/puppet/functions/file/readable.rb +3 -1
  15. data/bolt-modules/file/lib/puppet/functions/file/write.rb +3 -1
  16. data/lib/bolt/analytics.rb +21 -2
  17. data/lib/bolt/applicator.rb +3 -1
  18. data/lib/bolt/apply_result.rb +1 -1
  19. data/lib/bolt/apply_target.rb +3 -2
  20. data/lib/bolt/bolt_option_parser.rb +18 -8
  21. data/lib/bolt/cli.rb +35 -5
  22. data/lib/bolt/config.rb +45 -13
  23. data/lib/bolt/config/transport/docker.rb +2 -0
  24. data/lib/bolt/config/transport/local.rb +2 -0
  25. data/lib/bolt/config/transport/orch.rb +2 -0
  26. data/lib/bolt/config/transport/remote.rb +2 -0
  27. data/lib/bolt/config/transport/ssh.rb +50 -1
  28. data/lib/bolt/config/transport/winrm.rb +2 -0
  29. data/lib/bolt/inventory.rb +2 -1
  30. data/lib/bolt/inventory/group.rb +1 -0
  31. data/lib/bolt/inventory/inventory.rb +5 -0
  32. data/lib/bolt/inventory/target.rb +17 -1
  33. data/lib/bolt/node/output.rb +1 -1
  34. data/lib/bolt/outputter/human.rb +5 -4
  35. data/lib/bolt/outputter/json.rb +1 -1
  36. data/lib/bolt/pal.rb +4 -1
  37. data/lib/bolt/pal/yaml_plan.rb +1 -0
  38. data/lib/bolt/plugin.rb +13 -7
  39. data/lib/bolt/plugin/puppetdb.rb +5 -2
  40. data/lib/bolt/project.rb +25 -7
  41. data/lib/bolt/puppetdb/config.rb +14 -26
  42. data/lib/bolt/rerun.rb +1 -1
  43. data/lib/bolt/resource_instance.rb +126 -0
  44. data/lib/bolt/result.rb +46 -23
  45. data/lib/bolt/result_set.rb +2 -5
  46. data/lib/bolt/shell/bash.rb +1 -1
  47. data/lib/bolt/shell/powershell.rb +12 -4
  48. data/lib/bolt/target.rb +12 -1
  49. data/lib/bolt/transport/ssh.rb +6 -2
  50. data/lib/bolt/transport/ssh/connection.rb +4 -0
  51. data/lib/bolt/transport/ssh/exec_connection.rb +110 -0
  52. data/lib/bolt/transport/winrm/connection.rb +6 -2
  53. data/lib/bolt/version.rb +1 -1
  54. data/lib/bolt_server/pe/pal.rb +1 -38
  55. data/lib/bolt_server/transport_app.rb +7 -7
  56. data/lib/bolt_spec/bolt_context.rb +1 -4
  57. data/lib/bolt_spec/plans/mock_executor.rb +1 -0
  58. data/lib/bolt_spec/run.rb +2 -5
  59. metadata +6 -2
@@ -145,10 +145,7 @@ module BoltSpec
145
145
  end
146
146
 
147
147
  def plugins
148
- @plugins ||= Bolt::Plugin.setup(config,
149
- pal,
150
- nil,
151
- Bolt::Analytics::NoopClient.new)
148
+ @plugins ||= Bolt::Plugin.setup(config, pal)
152
149
  end
153
150
 
154
151
  def pal
@@ -230,6 +230,7 @@ module BoltSpec
230
230
  def transport(_protocol)
231
231
  Class.new do
232
232
  attr_reader :provided_features
233
+
233
234
  def initialize(features)
234
235
  @provided_features = features
235
236
  end
@@ -152,14 +152,11 @@ module BoltSpec
152
152
  end
153
153
 
154
154
  def plugins
155
- @plugins ||= Bolt::Plugin.setup(config, pal, puppetdb_client, @analytics)
155
+ @plugins ||= Bolt::Plugin.setup(config, pal)
156
156
  end
157
157
 
158
158
  def puppetdb_client
159
- @puppetdb_client ||= begin
160
- puppetdb_config = Bolt::PuppetDB::Config.load_config(nil, config.puppetdb)
161
- Bolt::PuppetDB::Client.new(puppetdb_config)
162
- end
159
+ plugins.puppetdb_client
163
160
  end
164
161
 
165
162
  def pal
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.8.0
4
+ version: 2.12.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-05-05 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -390,6 +390,7 @@ extra_rdoc_files: []
390
390
  files:
391
391
  - Puppetfile
392
392
  - bolt-modules/boltlib/lib/puppet/datatypes/applyresult.rb
393
+ - bolt-modules/boltlib/lib/puppet/datatypes/resourceinstance.rb
393
394
  - bolt-modules/boltlib/lib/puppet/datatypes/result.rb
394
395
  - bolt-modules/boltlib/lib/puppet/datatypes/resultset.rb
395
396
  - bolt-modules/boltlib/lib/puppet/datatypes/target.rb
@@ -413,6 +414,7 @@ files:
413
414
  - bolt-modules/boltlib/lib/puppet/functions/run_task_with.rb
414
415
  - bolt-modules/boltlib/lib/puppet/functions/set_config.rb
415
416
  - bolt-modules/boltlib/lib/puppet/functions/set_feature.rb
417
+ - bolt-modules/boltlib/lib/puppet/functions/set_resources.rb
416
418
  - bolt-modules/boltlib/lib/puppet/functions/set_var.rb
417
419
  - bolt-modules/boltlib/lib/puppet/functions/upload_file.rb
418
420
  - bolt-modules/boltlib/lib/puppet/functions/vars.rb
@@ -493,6 +495,7 @@ files:
493
495
  - lib/bolt/puppetdb/config.rb
494
496
  - lib/bolt/r10k_log_proxy.rb
495
497
  - lib/bolt/rerun.rb
498
+ - lib/bolt/resource_instance.rb
496
499
  - lib/bolt/result.rb
497
500
  - lib/bolt/result_set.rb
498
501
  - lib/bolt/secret.rb
@@ -516,6 +519,7 @@ files:
516
519
  - lib/bolt/transport/simple.rb
517
520
  - lib/bolt/transport/ssh.rb
518
521
  - lib/bolt/transport/ssh/connection.rb
522
+ - lib/bolt/transport/ssh/exec_connection.rb
519
523
  - lib/bolt/transport/winrm.rb
520
524
  - lib/bolt/transport/winrm/connection.rb
521
525
  - lib/bolt/util.rb