-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
49 lines (41 loc) · 1.35 KB
/
Vagrantfile
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
43
44
45
46
47
48
49
Vagrant.configure("2") do |config|
#provider blocks
config.vm.provider :virtualbox do |config, override|
override.vm.box = "opscode-ubuntu-12.04"
override.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box"
override.vm.network :forwarded_port, host: 9000, guest: 9000
config.customize ["modifyvm", :id, "--memory", 512]
end
config.vm.provider "aws" do |aws, override|
override.vm.box = "dummy"
override.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
aws.access_key_id = ENV['AWS_ACCESS_KEY']
aws.secret_access_key = ENV['AWS_SECRET_KEY']
aws.keypair_name = ""
aws.ami = "ami-66ef0111"
aws.region = "eu-west-1"
aws.security_groups = [ "NIAccess" ]
aws.tags = {
"Name" => "",
"ServiceName" => "",
"ServiceOwner" => "",
"CostCentre" => ""
}
override.ssh.username = "ubuntu"
override.ssh.private_key_path = ""
end
#configure chef installation and cookbooks
config.berkshelf.enabled = true
config.omnibus.chef_version = :latest
#configure chef solo
config.vm.provision :chef_solo do |chef|
chef.log_level = :info
chef.json = {
"nodejs" => { "version" => "0.10.26" }
}
chef.run_list = [
"recipe[nodejs]"
]
end
config.vm.synced_folder ".", "/vagrant"
end