-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
38 lines (32 loc) · 1.41 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'centos-65-x86_64-puppetlabs'
config.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box'
config.vm.hostname = 'foo.bar.com'
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network :private_network, ip: '192.168.56.10'
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder 'www', '/var/www/html'
config.vm.synced_folder 'files', '/home/vagrant/files'
config.vm.synced_folder 'bats/bin', '/home/vagrant/bin'
config.vm.synced_folder 'bats/libexec', '/home/vagrant/libexec'
config.vm.synced_folder 'bats/tests', '/home/vagrant/tests'
config.vm.provider :virtualbox do |vb|
vb.gui = false
vb.name = 'lampstack'
vb.customize ['modifyvm', :id, '--cpus', 1 ]
vb.customize ['modifyvm', :id, '--memory', 512 ]
end
config.vm.provision :puppet do |puppet|
puppet.options = '--hiera_config /etc/hiera.yaml'
puppet.manifests_path = 'manifests'
puppet.manifest_file = 'site.pp'
puppet.module_path = 'modules'
end
end