Skip to content

Instantly share code, notes, and snippets.

@emaildano
Last active January 17, 2016 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emaildano/f93a3df101f0677706fb to your computer and use it in GitHub Desktop.
Save emaildano/f93a3df101f0677706fb to your computer and use it in GitHub Desktop.
Sites YAML Example
sites:
example.dev:
site_hosts:
- example.dev
- www.example.dev
testing.dev:
site_hosts:
- testing.dev
# -*- mode: ruby -*-
# # vi: set ft=ruby :
require "yaml"
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Box
config.vm.box = "ubuntu/trusty64"
# Networking
config.vm.host_name = "localhost"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "private_network", ip: "192.168.50.4"
# Ansible
config.vm.provision "ansible" do |ansible|
ansible.playbook = "launch-pad/server.yml"
end
# Hosts
config.hostsupdater.aliases = ["testing.dev", "example.dev"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment