Created
June 11, 2014 12:44
-
-
Save Tombar/98151902a1fad0763dc9 to your computer and use it in GitHub Desktop.
Vagrantfile with puppet provisioner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# 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 = "debian-70rc1-x64-vbox4210" | |
config.cache.scope = :box | |
config.vm.define :name do |node| | |
node.vm.hostname = "name" | |
node.vm.network :private_network, ip: "192.168.33.114" | |
node.vm.network "forwarded_port", guest: 80, host: 8080 | |
# If true, then any SSH connections made will enable agent forwarding. | |
# Default value: false | |
# node.ssh.forward_agent = true | |
node.vm.synced_folder "./hieradata", "/hieradata" | |
node.vm.synced_folder "./files", "/etc/puppet/files" | |
node.vm.synced_folder ".", "/vagrant_data" | |
node.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "512"] | |
end | |
node.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "manifests" | |
puppet.manifest_file = "init.pp" | |
puppet.module_path = "modules" | |
puppet.hiera_config_path = "hiera.yaml" | |
puppet.options = " --summarize --debug --evaltrace " | |
puppet.facter = { "vagrant" => "1", "fqnd" => node.vm.hostname } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment