Skip to content
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

Fix Vagrantfile after adding test suite. #298

Merged
merged 1 commit into from May 6, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Fix Vagrantfile after adding test suite.

The install_salt.sh script was moved, so use the new name,
and filter out the 'test' node when making the list of VMs.
  • Loading branch information
aneeshusa committed Apr 5, 2016
commit 6ec2ee72794c443fd2891c67b7853959463997b5
@@ -28,11 +28,13 @@ Vagrant.configure(2) do |config|
{ id: extract_id(node['env']), os: node['os'], box: 'ubuntu/trusty64' }
end
end
if node_config.nil? && ENV['VAGRANT_LOG'] == 'debug'
version = node.has_key?('dist') ? ', version' + node['dist'] : ''
os_and_version = node['os'] + version
puts "OS #{os_and_version} is not yet supported"
else
if node_config.nil?
if ENV['VAGRANT_LOG'] == 'debug'
version = node.has_key?('dist') ? ', version' + node['dist'] : ''
os_and_version = node['os'] + version
puts "OS #{os_and_version} is not yet supported"
end
elsif node_config[:id] != 'test'
node_config
end
end.compact.each do |node|
@@ -46,8 +48,8 @@ Vagrant.configure(2) do |config|
machine.vm.synced_folder dir, state_root
machine.vm.synced_folder File.join(dir, ".travis/test_pillars"), pillar_root
machine.vm.provision :salt do |salt|
salt.bootstrap_script = '.travis/install_salt'
salt.install_args = node[:os] # Pass OS type to install_salt script
salt.bootstrap_script = '.travis/install_salt.sh'
salt.install_args = node[:os] # Pass OS type to bootstrap script
salt.masterless = true
salt.minion_config = '.travis/minion'
# hack to provide additional options to salt-call
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.