2019-10-11 21:21:28 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-10-16 17:30:04 +02:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
2019-10-11 21:21:28 +02:00
|
|
|
VAGRANTFILE_API_VERSION = '2'
|
2014-10-16 17:30:04 +02:00
|
|
|
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
2019-12-11 19:03:35 +01:00
|
|
|
config.vm.box = 'bento/ubuntu-18.04'
|
2019-10-11 21:21:28 +02:00
|
|
|
config.vm.hostname = 'salt'
|
|
|
|
config.vm.synced_folder './', '/srv/salt', id: 'vagrant-root'
|
2014-10-16 17:30:04 +02:00
|
|
|
|
|
|
|
config.ssh.forward_agent = true
|
|
|
|
|
|
|
|
config.vm.provider :virtualbox do |vb|
|
|
|
|
# Use VBoxManage to customize the VM. For example to change memory:
|
2019-10-11 21:21:28 +02:00
|
|
|
vb.customize ['modifyvm', :id, '--memory', '1024']
|
2014-10-16 17:30:04 +02:00
|
|
|
end
|
2019-10-11 21:21:28 +02:00
|
|
|
config.cache.scope = :box if Vagrant.has_plugin?('vagrant-cachier')
|
2014-10-16 17:30:04 +02:00
|
|
|
|
|
|
|
# Set up salt-master and minion
|
2019-10-11 21:21:28 +02:00
|
|
|
config.vm.provision 'shell', path: 'dev/setup-salt.sh'
|
2014-10-16 17:30:04 +02:00
|
|
|
end
|