Skip to content

Commit ff112e4

Browse files
authored
Merge pull request OpenVoxProject#45 from OpenVoxProject/remove-orchestrator_client
Remove orchestrator_client / pcp transport
2 parents 7d3f2d1 + bf43695 commit ff112e4

File tree

29 files changed

+50
-1730
lines changed

29 files changed

+50
-1730
lines changed

.github/workflows/orch_transport.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

documentation/bolt.ditamap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
<topichead navtitle="Using Bolt with Puppet">
111111
<topicref href="applying_manifest_blocks.md" format="markdown"/>
112112
<topicref href="hiera.md" format="markdown"/>
113-
<topicref href="bolt_configure_orchestrator.md" format="markdown"/>
114113
<topicref href="bolt_connect_puppetdb.md" format="markdown"/>
115114
</topichead>
116115
<topicref href="bolt_examples.md" format="markdown">

documentation/bolt_configure_orchestrator.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

documentation/configuring_bolt.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,5 @@ disable-warnings:
281281
- [bolt-project.yaml options](bolt_project_reference.md)
282282
- [inventory.yaml fields](bolt_inventory_reference.md)
283283
- [Transport configuration options](bolt_transports_reference.md)
284-
- For information on configuring Bolt for Puppet Enterprise, see [Using
285-
Bolt with Puppet Enterprise](bolt_configure_orchestrator.md)
286284
- For information on connecting Bolt to PuppetDB, see [Connecting Bolt to
287285
PuppetDB](bolt_connect_puppetdb.md)

lib/bolt/application.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -375,15 +375,7 @@ def run_plan(plan, targets, params: {})
375375
end
376376
end
377377

378-
sensitive_params = params.keys.select { |param| plan_params.dig(param, 'sensitive') }
379-
380-
plan_context = { plan_name: plan, params: params, sensitive: sensitive_params }
381-
382-
executor.start_plan(plan_context)
383-
result = pal.run_plan(plan, params, executor, inventory, plugins.puppetdb_client)
384-
executor.finish_plan(result)
385-
386-
result
378+
pal.run_plan(plan, params, executor, inventory, plugins.puppetdb_client)
387379
rescue Bolt::Error => e
388380
Bolt::PlanResult.new(e, 'failure')
389381
end

lib/bolt/config/options.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
require_relative '../../bolt/config/transport/jail'
55
require_relative '../../bolt/config/transport/local'
66
require_relative '../../bolt/config/transport/lxd'
7-
require_relative '../../bolt/config/transport/orch'
87
require_relative '../../bolt/config/transport/podman'
98
require_relative '../../bolt/config/transport/remote'
109
require_relative '../../bolt/config/transport/ssh'
@@ -20,7 +19,6 @@ module Options
2019
'jail' => Bolt::Config::Transport::Jail,
2120
'local' => Bolt::Config::Transport::Local,
2221
'lxd' => Bolt::Config::Transport::LXD,
23-
'pcp' => Bolt::Config::Transport::Orch,
2422
'podman' => Bolt::Config::Transport::Podman,
2523
'remote' => Bolt::Config::Transport::Remote,
2624
'ssh' => Bolt::Config::Transport::SSH,
@@ -572,12 +570,6 @@ module Options
572570
_plugin: true,
573571
_example: { cleanup: false }
574572
},
575-
"pcp" => {
576-
description: "A map of configuration options for the pcp transport.",
577-
type: Hash,
578-
_plugin: true,
579-
_example: { "job-poll-interval" => 15, "job-poll-timeout" => 30 }
580-
},
581573
"podman" => {
582574
description: "A map of configuration options for the podman transport.",
583575
type: Hash,

lib/bolt/config/transport/orch.rb

Lines changed: 0 additions & 41 deletions
This file was deleted.

lib/bolt/executor.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
require_relative '../bolt/transport/jail'
1818
require_relative '../bolt/transport/local'
1919
require_relative '../bolt/transport/lxd'
20-
require_relative '../bolt/transport/orch'
2120
require_relative '../bolt/transport/podman'
2221
require_relative '../bolt/transport/remote'
2322
require_relative '../bolt/transport/ssh'
@@ -29,7 +28,6 @@ module Bolt
2928
jail: Bolt::Transport::Jail,
3029
local: Bolt::Transport::Local,
3130
lxd: Bolt::Transport::LXD,
32-
pcp: Bolt::Transport::Orch,
3331
podman: Bolt::Transport::Podman,
3432
remote: Bolt::Transport::Remote,
3533
ssh: Bolt::Transport::SSH,
@@ -511,24 +509,6 @@ def prompt(prompt, options)
511509
value
512510
end
513511

514-
# Plan context doesn't make sense for most transports but it is tightly
515-
# coupled with the orchestrator transport since the transport behaves
516-
# differently when a plan is running. In order to limit how much this
517-
# pollutes the transport API we only handle the orchestrator transport here.
518-
# Since we call this function without resolving targets this will result
519-
# in the orchestrator transport always being initialized during plan runs.
520-
# For now that's ok.
521-
#
522-
# In the future if other transports need this or if we want a plan stack
523-
# we'll need to refactor.
524-
def start_plan(plan_context)
525-
transport('pcp').plan_context = plan_context
526-
end
527-
528-
def finish_plan(plan_result)
529-
transport('pcp').finish_plan(plan_result)
530-
end
531-
532512
def without_default_logging
533513
publish_event(type: :disable_default_output)
534514
yield

0 commit comments

Comments
 (0)