Skip to content

Commit eccdbe2

Browse files
committed
update puppet_agent plugin to openvox_bootstrap
1 parent 1da0f8a commit eccdbe2

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
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
@@ -69,7 +69,7 @@
6969

7070
plugins.expects(:get_hook)
7171
.twice
72-
.with("puppet_agent", :puppet_library)
72+
.with("openvox_bootstrap", :puppet_library)
7373
.returns(task_hook)
7474

7575
is_expected.to run.with_params(hostnames.join(','))
@@ -87,7 +87,7 @@
8787

8888
plugins.expects(:get_hook)
8989
.twice
90-
.with("puppet_agent", :puppet_library)
90+
.with("openvox_bootstrap", :puppet_library)
9191
.returns(task_hook)
9292

9393
is_expected.to run.with_params(hostnames, '_run_as' => 'root')
@@ -105,7 +105,7 @@
105105

106106
plugins.expects(:get_hook)
107107
.twice
108-
.with("puppet_agent", :puppet_library)
108+
.with("openvox_bootstrap", :puppet_library)
109109
.returns(task_hook)
110110

111111
is_expected.to run.with_params(hostnames, '_noop' => true)
@@ -125,7 +125,7 @@
125125

126126
plugins.expects(:get_hook)
127127
.twice
128-
.with("puppet_agent", :puppet_library)
128+
.with("openvox_bootstrap", :puppet_library)
129129
.returns(task_hook)
130130

131131
is_expected.to run.with_params(hostnames).and_raise_error(
@@ -189,7 +189,7 @@
189189
.returns(facts)
190190

191191
plugins.expects(:get_hook)
192-
.with('puppet_agent', :puppet_library)
192+
.with('openvox_bootstrap', :puppet_library)
193193
.returns(task_hook)
194194

195195
is_expected.to run.with_params(hostname)
@@ -287,7 +287,7 @@
287287
applicator.stubs(:custom_facts_task).returns(custom_facts_task)
288288

289289
plugins.expects(:get_hook)
290-
.with("puppet_agent", :puppet_library)
290+
.with("openvox_bootstrap", :puppet_library)
291291
.returns(task_hook)
292292
end
293293

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)