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

Vagrant: Use `salt_call_args` instead of minion_id #493

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -19,9 +19,8 @@ end

# Need Vagrant >= 1.8.0, in which the Vagrant Salt provisioner was overhauled
# See https://github.com/servo/saltfs/pull/180
# Vagrant 1.8.3+ breaks our usage of minion_id to pass additional args to Salt
# See https://github.com/mitchellh/vagrant/pull/7207
Vagrant.require_version('>= 1.8.0', "< 1.8.3")
# Need Vagrant >=1.8.6 for `salt_call_args`
Vagrant.require_version('>= 1.8.6')

Vagrant.configure(2) do |config|

@@ -53,6 +52,7 @@ Vagrant.configure(2) do |config|
config.vm.define node[:id] do |machine|
machine.vm.box = node[:box]
machine.vm.provider :virtualbox do |vbox|
machine.vm.hostname = node[:id]
# Need extra memory for downloading large files (e.g. Android SDK)
vbox.memory = 1024
vbox.linked_clone = true
@@ -72,12 +72,7 @@ Vagrant.configure(2) do |config|
salt.install_args = node[:os] # Pass OS type to bootstrap script
salt.masterless = true
salt.minion_config = File.join(dir, '.travis', 'minion')
# hack to provide additional options to salt-call
salt.minion_id = node[:id] + ' ' + ([
'--file-root=/vagrant',
'--pillar-root=/vagrant/.travis/test_pillars',
'--retcode-passthrough'
].join(' '))
salt.salt_call_args='--file-root /vagrant/ --pillar-root /vagrant/.travis/test_pillars'
salt.run_highstate = true
salt.verbose = true
salt.log_level = 'info'
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.