forked from wunki/django-salted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
40 lines (31 loc) · 1.08 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- mode: ruby; -*-
require 'etc'
Vagrant.configure("2") do |config|
config.vm.define :web do |web|
# Ubuntu 12.04
web.vm.box = "precise64"
web.vm.box_url = "http://files.vagrantup.com/precise64.box"
# Network
web.vm.hostname = "vagrant.django-salted.org"
web.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true
# Share for masterless server
web.vm.synced_folder "salt/roots/", "/srv/"
web.vm.provision :salt do |salt|
# Configure the minion
salt.minion_config = "salt/minion.conf"
# Show the output of salt
salt.verbose = true
# Pre-distribute these keys on our local installation
salt.minion_key = "salt/keys/vagrant.django-salted.org.pem"
salt.minion_pub = "salt/keys/vagrant.django-salted.org.pub"
# Run the highstate on start
salt.run_highstate = true
# Install the latest version of SaltStack
salt.install_type = "daily"
end
# Customize the box
web.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", 512]
end
end
end