forked from voxpupuli/puppet-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
24 lines (21 loc) · 944 Bytes
/
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
# This Vagrant file is provided as a convenience for development and
# exploratory testing of puppet-logstash. It's not used by the formal
# testing framwork, it's just for hacking.
#
# See `CONTRIBUTING.md` for details on formal testing.
module_root = '/etc/puppetlabs/code/environments/production/modules/logstash'
Vagrant.configure(2) do |config|
# config.vm.box = 'puppetlabs/debian-8.2-64-puppet'
config.vm.box = 'puppetlabs/ubuntu-16.04-64-puppet'
config.vm.provider 'virtualbox' do |vm|
vm.memory = 3 * 1024
end
# Make the Logstash module available.
%w(manifests templates files).each do |dir|
config.vm.synced_folder(dir, "#{module_root}/#{dir}")
end
# Prepare a puppetserver install so we can test the module in a realistic
# way. 'puppet apply' is cool, but in reality, most people need this to work
# in a master/agent configuration.
config.vm.provision('shell', path: 'Vagrantfile.d/server.sh')
end