forked from castiron/didh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile.pkg
More file actions
34 lines (22 loc) · 770 Bytes
/
Vagrantfile.pkg
File metadata and controls
34 lines (22 loc) · 770 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'socket'
project = "didh"
recipes = [ "cic_projects::project_#{project}" ]
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.host_name = "vagrant-#{project}.#{Socket.gethostname}"
config.vm.forward_port 80, 8003
config.vm.customize ["modifyvm", :id, "--memory", 512]
config.vm.provision :chef_client do |chef|
chef.environment = "vagrant"
chef.node_name = "#{project}-vagrant"
chef.chef_server_url = "http://chef.ciclabs.com:4000"
chef.validation_key_path = "/etc/chef/validation.pem"
chef.validation_client_name = "chef-validator"
# Change this to whatever recipe you need to run
recipes.each do |recipe|
chef.add_recipe recipe
end
end
end