aboutsummaryrefslogtreecommitdiff
path: root/Vagrantfile
blob: 4748efd081c15613c860b6e36728b85d9bf3b6a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant::Config.run do |config|
  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "wheezy"

  # Shell provisioner to keep the system updated.
  config.vm.provision :shell, :inline => "sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove && sudo apt-get clean"

  # Enable provisioning with Puppet stand alone.
  config.vm.provision :puppet do |puppet|
    puppet.manifest_file  = "vagrant.pp"
    puppet.manifests_path = "puppet/manifests"
    puppet.module_path    = "puppet/modules"
    puppet.pp_path        = "/etc/puppet"
  end

  # Share hiera configuration.
  config.vm.share_folder "hiera", "/etc/puppet/hiera", "puppet/hiera", create: true
end