Skip to content

Commit 0e02f2c

Browse files
committed
update puppet_agent plugin to openvox_bootstrap
1 parent e29911c commit 0e02f2c

File tree

8 files changed

+18
-17
lines changed

8 files changed

+18
-17
lines changed

bolt-modules/boltlib/spec/functions/apply_prep_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
plugins.expects(:get_hook)
7070
.twice
71-
.with("puppet_agent", :puppet_library)
71+
.with("openvox_bootstrap", :puppet_library)
7272
.returns(task_hook)
7373

7474
is_expected.to run.with_params(hostnames.join(','))
@@ -86,7 +86,7 @@
8686

8787
plugins.expects(:get_hook)
8888
.twice
89-
.with("puppet_agent", :puppet_library)
89+
.with("openvox_bootstrap", :puppet_library)
9090
.returns(task_hook)
9191

9292
is_expected.to run.with_params(hostnames, '_run_as' => 'root')
@@ -104,7 +104,7 @@
104104

105105
plugins.expects(:get_hook)
106106
.twice
107-
.with("puppet_agent", :puppet_library)
107+
.with("openvox_bootstrap", :puppet_library)
108108
.returns(task_hook)
109109

110110
is_expected.to run.with_params(hostnames, '_noop' => true)
@@ -124,7 +124,7 @@
124124

125125
plugins.expects(:get_hook)
126126
.twice
127-
.with("puppet_agent", :puppet_library)
127+
.with("openvox_bootstrap", :puppet_library)
128128
.returns(task_hook)
129129

130130
is_expected.to run.with_params(hostnames).and_raise_error(
@@ -188,7 +188,7 @@
188188
.returns(facts)
189189

190190
plugins.expects(:get_hook)
191-
.with('puppet_agent', :puppet_library)
191+
.with('openvox_bootstrap', :puppet_library)
192192
.returns(task_hook)
193193

194194
is_expected.to run.with_params(hostname)
@@ -286,7 +286,7 @@
286286
applicator.stubs(:custom_facts_task).returns(custom_facts_task)
287287

288288
plugins.expects(:get_hook)
289-
.with("puppet_agent", :puppet_library)
289+
.with("openvox_bootstrap", :puppet_library)
290290
.returns(task_hook)
291291
end
292292

lib/bolt/config/options.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@ module Options
430430
"plugin-hooks" => {
431431
description: "A map of [plugin hooks](writing_plugins.md#hooks) and which plugins a hook should use. "\
432432
"The only configurable plugin hook is `puppet_library`, which can use two possible plugins: "\
433-
"[`puppet_agent`](https://github.com/puppetlabs/puppetlabs-puppet_agent#puppet_agentinstall) "\
433+
"[`openvox_bootstrap`]" \
434+
"(https://github.com/voxpupuli/puppet-openvox_bootstrap#openvox_boostrapinstall) "\
434435
"and [`task`](using_plugins.md#task).",
435436
type: Hash,
436437
_plugin: true,

pwsh_module/command.tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ Describe "test all bolt command examples" {
256256
$result = Get-BoltModule
257257
$result | Should -Be 'bolt module show'
258258
}
259-
It "bolt module show puppet_agent" {
260-
$result = Get-BoltModule -Name 'puppet_agent'
261-
$result | Should -Be 'bolt module show puppet_agent'
259+
It "bolt module show openvox_bootstrap" {
260+
$result = Get-BoltModule -Name 'openvox_bootstrap'
261+
$result | Should -Be 'bolt module show openvox_bootstrap'
262262
}
263263
}
264264

schemas/bolt-defaults.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
}
236236
},
237237
"plugin-hooks": {
238-
"description": "A map of [plugin hooks](writing_plugins.md#hooks) and which plugins a hook should use. The only configurable plugin hook is `puppet_library`, which can use two possible plugins: [`puppet_agent`](https://github.com/puppetlabs/puppetlabs-puppet_agent#puppet_agentinstall) and [`task`](using_plugins.md#task).",
238+
"description": "A map of [plugin hooks](writing_plugins.md#hooks) and which plugins a hook should use. The only configurable plugin hook is `puppet_library`, which can use two possible plugins: [`openvox_bootstrap`](https://github.com/voxpupuli/puppet-openvox_bootstrap#openvox_boostrapinstall) and [`task`](using_plugins.md#task).",
239239
"oneOf": [
240240
{
241241
"type": "object"

spec/unit/config_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
},
226226
'plugin-hooks' => {
227227
'puppet_library' => {
228-
'plugin' => 'puppet_agent',
228+
'plugin' => 'openvox_bootstrap',
229229
'_run_as' => 'root'
230230
}
231231
},
@@ -344,7 +344,7 @@
344344
it 'performs a shallow merge on hash values' do
345345
expect(config.plugin_hooks).to eq(
346346
'puppet_library' => {
347-
'plugin' => 'puppet_agent',
347+
'plugin' => 'openvox_bootstrap',
348348
'_run_as' => 'root'
349349
},
350350
'fake_hook' => {

spec/unit/inventory/inventory_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ def common_data(transport)
12741274
'features' => [],
12751275
'groups' => %w[group1 group2 all],
12761276
'plugin_hooks' => {
1277-
'puppet_library' => { 'plugin' => 'puppet_agent', 'stop_service' => true }
1277+
'puppet_library' => { 'plugin' => 'openvox_bootstrap', 'stop_service' => true }
12781278
} }
12791279
}
12801280

spec/unit/plugin/puppet_library_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
let(:config_data) { { 'modulepath' => modulepath } }
1616

1717
let(:library_hook) {
18-
{ 'plugin' => 'puppet_agent',
18+
{ 'plugin' => 'openvox_bootstrap',
1919
'_run_as' => 'me' }
2020
}
2121

@@ -59,7 +59,7 @@ def capture_opts
5959

6060
context 'without _run_as in the module plugin' do
6161
let(:library_hook) {
62-
{ 'plugin' => 'puppet_agent' }
62+
{ 'plugin' => 'openvox_bootstrap' }
6363
}
6464

6565
it 'runs the correct command' do

spec/unit/plugin_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def identity(value, cache = nil)
115115
'param' => 'foobar'
116116
},
117117
'puppet_library' => {
118-
'plugin' => 'puppet_agent',
118+
'plugin' => 'openvox_bootstrap',
119119
'stop_service' => true
120120
}
121121
)

0 commit comments

Comments
 (0)