mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-06 23:16:54 +02:00
Added a Vagrant setup to instantly test the formula
This commit is contained in:
1 parent
1682df8592
commit
862421e80f
5 files changed
+50
No files matched your search
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
||||
VAGRANTFILE_API_VERSION = "2"
|
||||
|
||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
config.vm.box = "ubuntu/trusty64"
|
||||
config.vm.hostname = "salt"
|
||||
config.vm.synced_folder "./", "/srv/salt", id: "vagrant-root"
|
||||
|
||||
config.ssh.forward_agent = true
|
||||
|
||||
config.vm.provider :virtualbox do |vb|
|
||||
# Use VBoxManage to customize the VM. For example to change memory:
|
||||
vb.customize ["modifyvm", :id, "--memory", "1024"]
|
||||
end
|
||||
if Vagrant.has_plugin?("vagrant-cachier")
|
||||
config.cache.scope = :box
|
||||
end
|
||||
|
||||
# Set up salt-master and minion
|
||||
config.vm.provision "shell", path: "dev/setup-salt.sh"
|
||||
end
|
||||
Reference in new issue
Block a user