Created
August 21, 2015 22:32
-
-
Save bradcypert/f5f520bffeb5c3312737 to your computer and use it in GitHub Desktop.
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| | |
# We're using an Ubuntu box from Puppet Labs with Puppet already installed | |
config.vm.box = "ubuntu-puppetlabs" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. | |
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210.box" | |
# Create a private network so that we can access our VM like any other maching | |
# on our network. We could use port forwarding instead, but we're opting to | |
# access the VM as a separate machine to mimick a more production-like setup. | |
config.vm.network :private_network, ip: "192.168.33.10" | |
# Create bridged network so that our VM can access the internet through the | |
# host machine's network. | |
config.vm.network :public_network | |
config.vm.synced_folder "./service", "/vagrant" | |
config.vm.provision "puppet" do |puppet| | |
puppet.manifests_path = "puppet/manifests" | |
puppet.manifest_file = "default.pp" | |
puppet.module_path = "puppet/modules" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment