blob: 9c85f999f370ac4d144bdc1490c10f839eb97d49 (
plain)
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
|
# 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|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "jessie"
# Hostname
config.vm.hostname = "puppet-bootstrap.example.org"
# Shell provisioner to setup basic environment.
config.vm.provision :shell, :inline => "/vagrant/puppet/bin/provision"
# Enable provisioning with Puppet stand alone.
config.vm.provision :puppet do |puppet|
puppet.manifest_file = "bootstrap/vagrant.pp"
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.hiera_config_path = "puppet/hiera.yaml"
puppet.temp_dir = "/etc/puppet"
puppet.working_directory = "/etc/puppet"
end
# Share hiera configuration.
config.vm.synced_folder "puppet/config", "/etc/puppet/hiera"
# Forwarded ports
#config.vm.network "forwarded_port", guest: 80, host: 8081
end
|