Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 42 lines (33 sloc) 1.356 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# -*- mode: ruby -*-
# vi: set ft=ruby :

require "yaml"

_config = YAML.load(File.open(File.join(File.dirname(__FILE__), "../../vagrantconfig.yaml"), File::RDONLY).read)

begin
    _config.merge!(YAML.load(File.open(File.join(File.dirname(__FILE__), "../../vagrantconfig_local.yaml"), File::RDONLY).read))
rescue Errno::ENOENT

end

CONF = _config

Vagrant.configure("2") do |config|
  config.vm.hostname = "piwik-precise64"
  config.vm.box = "precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise64.box"

  config.vm.synced_folder "../../www", "/home/vagrant/www", :nfs => false, :owner => "vagrant"
  config.vm.synced_folder "../../puppet/files", "/etc/puppet/files", :nfs => false
  config.vm.network :private_network, ip: "192.168.33.10"
    config.ssh.forward_agent = true

  config.vm.provider :virtualbox do |v|
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    v.customize ["modifyvm", :id, "--memory", 1024]
    v.customize ["modifyvm", :id, "--name", "piwik-dev"]
  end

  config.vm.provision :puppet do |puppet|
    puppet.manifests_path = "../../puppet"
    puppet.manifest_file = "site.pp"
    puppet.module_path = "../../puppet/modules"
    puppet.options = ['--verbose']
    puppet.facter = [
        ['db_username', CONF['db_username']],
        ['db_password', CONF['db_password']],
    ]
  end
end
Something went wrong with that request. Please try again.