-
Notifications
You must be signed in to change notification settings - Fork 13
/
Vagrantfile
36 lines (30 loc) · 1.21 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Vagrantfile for lib.reviews
#
Vagrant.configure('2') do |config|
config.vm.box = 'debian/jessie64'
config.vm.post_up_message = <<-END
To view logs, run 'vagrant ssh', then 'journalctl -u lib-reviews.service'.
To restart lib-reviews, run 'sudo systemctl restart lib-reviews'.
lib.reviews is available at http://localhost:8080 (on the host).
END
config.vm.network :private_network, ip: '10.11.12.13'
# Make lib.reviews reachable via http://localhost:8080/ on the host.
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.synced_folder '.', '/vagrant',
:nfs => true,
:mount_options => ['noatime', 'nodiratime']
# The debian/jessie64 box doesn't come with Puppet pre-installed,
# so we need to run the shell provisioner first.
config.vm.provision 'shell', run: 'always', inline: %{
DEBIAN_FRONTEND=noninteractive apt-get install -q -y puppet
install -o vagrant -g vagrant -d /srv/node_modules
mount --bind /srv/node_modules /vagrant/node_modules
}
config.vm.provision 'puppet', run: 'always' do |puppet|
# Uncomment the line below to make Puppet runs vebrose:
# puppet.options = '--verbose --debug'
end
end