Skip to content

Commit

Permalink
(main) improve install_module_from_dir performance
Browse files Browse the repository at this point in the history
install each module to nodes in parallel
  • Loading branch information
h0tw1r3 committed Feb 23, 2024
1 parent 1944c65 commit 0215e0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/puppet_litmus/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@
include BoltSpec::Run
module_tars.each do |module_tar|
puts "Installing '#{module_tar}'"
target_nodes.each do |target_node_name|
install_module(inventory_hash, target_node_name, module_tar, args[:module_repository], args[:ignore_dependencies])
puts "Installed '#{module_tar}' on #{target_node_name}"
end
install_module(inventory_hash, target_nodes, module_tar, args[:module_repository], args[:ignore_dependencies])
puts "Installed '#{module_tar}' on #{target_nodes.join(', ')}"
end
end

Expand Down

0 comments on commit 0215e0f

Please sign in to comment.