Skip to content

Instantly share code, notes, and snippets.

@hschaeidt
Last active August 29, 2015 14:14
Show Gist options
  • Save hschaeidt/64d389963adf26631047 to your computer and use it in GitHub Desktop.
Save hschaeidt/64d389963adf26631047 to your computer and use it in GitHub Desktop.
Vagrant-Puppet example
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "ubuntu/trusty64"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 80, host: 8080
# See plugin website https://github.com/petems/vagrant-puppet-install#installation
config.puppet_install.puppet_version = :latest
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision "puppet"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment