From c765200d1e5592074f7ab643914a3cb034dec557 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Sun, 23 Jul 2023 13:44:12 -0500 Subject: [PATCH] install from fixture modules https://github.com/puppetlabs/puppet_litmus/issues/183 --- rakelib/litmus.rake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rakelib/litmus.rake b/rakelib/litmus.rake index 34fcc8a..dacc4db 100644 --- a/rakelib/litmus.rake +++ b/rakelib/litmus.rake @@ -11,7 +11,7 @@ task :acceptance, [:group, :tag] do |_task, args| Rake::Task['spec_prep'].invoke Rake::Task['litmus:provision_list'].invoke args[:group] Rake::Task['litmus:install_agent'].invoke - Rake::Task['litmus:install_module'].invoke + Rake::Task['litmus:install_modules_from_fixtures'].invoke Rake::Task['litmus:acceptance:parallel'].invoke args[:tag] end @@ -32,6 +32,14 @@ namespace :litmus do _atask.invoke(*args) end end + + desc 'install all fixture modules' + task :install_modules_from_fixtures, [:resolve_dependencies] do |_task, args| + args.with_defaults(resolve_dependencies: false) + + Rake::Task['spec_prep'].invoke + Rake::Task['litmus:install_modules_from_directory'].invoke(nil, nil, nil, !args[:resolve_dependencies]) + end end # Patch docker targets in inventory to support DOCKER_HOST environment variable