Created
June 25, 2013 22:02
-
-
Save llbbl/5862863 to your computer and use it in GitHub Desktop.
puppet-vagrantfile
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
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.provider :virtualbox do |v| | |
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
end | |
# Set the Timezone to something useful | |
config.vm.provision :shell, :inline => "echo \"America/Chicago\" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata" | |
# Update the server | |
config.vm.provision :shell, :inline => "apt-get update --fix-missing" | |
config.vm.synced_folder "./www", "/var/www", id: "vagrant-root" | |
config.vm.define :lamp do |lamp| | |
config.vm.network :private_network, ip: "192.168.50.4" | |
config.ssh.forward_agent = true | |
config.vm.provision :puppet do |puppet| | |
puppet.manifests_path = "manifests" | |
puppet.module_path = "modules" | |
puppet.options = ['--verbose'] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment