Created
September 25, 2014 00:34
-
-
Save jfryman/e9f08affec54307e5198 to your computer and use it in GitHub Desktop.
Using nginx module with Vagrant
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
--- | |
:backends: | |
- module_data |
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
class { 'nginx': } | |
nginx::resource::vhost { 'example.com': | |
www_root => '/vagrant/www', | |
} |
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| | |
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