Skip to content

(maint) Fix module installing in master-agent scenario #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require 'beaker-rspec/helpers/serverspec'
require 'beaker/puppet_install_helper'
require 'beaker/testmode_switcher/dsl'
require 'beaker/module_install_helper'

UNSUPPORTED_PLATFORMS = ['debian', 'ubuntu', 'Solaris']
FUTURE_PARSER = ENV['FUTURE_PARSER'] == 'true' || false
Expand All @@ -12,13 +13,11 @@
configure_type_defaults_on(hosts)

unless ENV['MODULE_provision'] == 'no'

on default, "mkdir -p #{default['distmoduledir']}/powershell"
result = on default, "echo #{default['distmoduledir']}/powershell"
target = result.raw_output.chomp
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
%w(lib metadata.json).each do |file|
scp_to default, "#{proj_root}/#{file}", target
# Due to a bug in beaker-puppet, passing in a hosts array with differing architectures does
# weird things e.g. uses windows paths in linux. Best to just pass in one host at a time.
hosts.each do |host|
install_module_on(host)
install_module_dependencies_on(host)
end

# Install PowerShell on hosts that are not a Master, Dashboard or Database
Expand Down