Rakefile in puppet-strings-1.1.0 vs Rakefile in puppet-strings-1.1.1
- old
+ new
@@ -21,10 +21,11 @@
task :acceptance do
require 'beaker-hostgenerator'
install_type = 'aio'
target = ENV['platform']
+ abs = if ENV['BEAKER_ABS'] then 'abs' else 'vmpooler' end
if ! target
STDERR.puts 'TEST_TARGET environment variable is not set'
STDERR.puts 'setting to default value of "centos7-64ma".'
target = "centos7-64ma{type=#{install_type}}"
end
@@ -32,10 +33,10 @@
unless target =~ /type=/
puts "INFO: adding 'type=#{install_type}' to host config"
target += "{type=#{install_type}}"
end
- cli = BeakerHostGenerator::CLI.new([target])
+ cli = BeakerHostGenerator::CLI.new([target, '--hypervisor', abs])
nodeset_dir = 'spec/acceptance/nodesets'
nodeset = "#{nodeset_dir}/#{target}.yml"
FileUtils.mkdir_p(nodeset_dir)
File.open(nodeset, 'w') do |fh|
fh.print(cli.execute)