forked from mitchellh/vagrant-aws
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile.chef.sample
34 lines (30 loc) · 1.09 KB
/
Vagrantfile.chef.sample
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
config.vm.provider :niftycloud do |niftycloud, override|
niftycloud.access_key_id = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "foo"
niftycloud.secret_access_key = ENV["NIFTY_CLOUD_SECRET_KEY"] || "bar"
niftycloud.zone= "east-12"
niftycloud.image_id = "26"
niftycloud.instance_type= "mini"
niftycloud.key_name = "sshkeypairname"
niftycloud.firewall = "vagrantservers"
niftycloud.password = "password"
override.ssh.username = "vagrant"
override.ssh.private_key_path = "/path/to/vagrant_private.pem"
config.vm.provision :chef_solo do |chef|
chef_root = '/path/to/chef_root'
chef.cookbooks_path = "#{chef_root}/chef-repo/cookbooks"
chef.roles_path = "#{chef_root}/chef-repo/roles"
chef.data_bags_path = "#{chef_root}/chef-repo/data_bags"
chef.json = {
:mysql => {
:server_root_password => "p@ssw0rd",
:server_repl_password => "p@ssw0rd",
:server_debian_password => "p@ssw0rd"
}
}
end
end
end