Skip to content

Commit 03f46f0

Browse files
committed
add windows support
1 parent a2a79e1 commit 03f46f0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Puppetfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ moduledir File.join(File.dirname(__FILE__), 'modules')
66

77
# Core modules used by 'apply'
88
mod 'puppetlabs-service', '3.1.0'
9-
mod 'puppet-openvox_bootstrap', '1.1.0'
9+
mod 'puppet-openvox_bootstrap',
10+
git: 'https://github.com/austb/puppet-openvox_bootstrap.git',
11+
ref: '77aa68e43d48a815d7730256fed60af7941efe80'
1012
mod 'puppetlabs-facts', '1.7.0'
1113

1214
# puppetlabs-puppet_agent deps

spec/integration/apply_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
TEST_VERSIONS.each do |version, collection|
438438
context "with puppet#{version} installed" do
439439
before(:all) do
440-
install('winrm', collection: collection, inventory: conn_inventory)
440+
install('winrm', version: "8.19.2", collection: collection, inventory: conn_inventory)
441441
end
442442

443443
after(:all) do

spec/lib/bolt_spec/puppet_agent.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def uninstall(target, inventory: nil)
2626
run_command(uninstall, target, config: config, inventory: inventory)
2727
end
2828

29-
def install(target, collection: nil, inventory: nil)
29+
def install(target, version: nil, collection: nil, inventory: nil)
3030
config = {
3131
'ssh' => {
3232
'run-as' => 'root',
@@ -39,7 +39,7 @@ def install(target, collection: nil, inventory: nil)
3939
}
4040
inventory ||= {}
4141
# Task will get latest collection without collection specified
42-
task_params = collection ? { 'collection' => collection } : {}
42+
task_params = { 'collection' => collection, 'version' => version }.compact
4343

4444
result = run_task('openvox_bootstrap::install', target, task_params, config: config, inventory: inventory)
4545

0 commit comments

Comments
 (0)