Skip to content

Instantly share code, notes, and snippets.

@jfryman
Created September 25, 2014 00:34
Show Gist options
  • Save jfryman/e9f08affec54307e5198 to your computer and use it in GitHub Desktop.
Save jfryman/e9f08affec54307e5198 to your computer and use it in GitHub Desktop.
Using nginx module with Vagrant
---
:backends:
- module_data
class { 'nginx': }
nginx::resource::vhost { 'example.com':
www_root => '/vagrant/www',
}
# -*- 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|
config.vm.box = "ubuntu-14.04-amd64"
config.vm.provision "shell", inline: "sudo apt-get -y install ruby"
config.vm.provision "shell", inline: "sudo gem install --no-ri --no-rdoc puppet -v 3.7.1"
config.vm.provision "puppet" do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.manifest_file = "site.pp"
puppet.hiera_config_path = "hiera.yaml"
puppet.options = "--verbose --debug --pluginsync"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment