forked from gina-alaska/mount-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
69 lines (61 loc) · 2.27 KB
/
Vagrantfile
File metadata and controls
69 lines (61 loc) · 2.27 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.hostname = "mount-berkshelf"
config.vm.define 'ubuntu-13.04' do |c|
c.berkshelf.berksfile_path = "./Berksfile"
c.vm.box = "opscode-ubuntu-13.04"
c.vm.box_url = "http://goo.gl/Y4aRr"
#c.vm.box_url = "http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-13.04_provisionerless.box"
end
config.vm.define 'ubuntu-13.10' do |c|
c.berkshelf.berksfile_path = "./Berksfile"
c.vm.box = "canonical-ubuntu-13.10"
c.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"
end
config.vm.define 'centos-6' do |c|
c.berkshelf.berksfile_path = "./Berksfile"
c.vm.box = "opscode-centos-6.3"
#c.vm.box_url = "http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.3_chef-11.2.0.box"
c.vm.box_url = "http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.4_chef-11.4.4.box"
end
config.omnibus.chef_version = "11.6.0"
config.berkshelf.enabled = true
config.berkshelf.berksfile_path = "./Berksfile"
config.ssh.forward_agent = true
config.vm.provision :chef_solo do |chef|
chef.json = {
:mounts => {
:auto => [
{
:device => 'pod6.gina.alaska.edu:/gvolfile',
:fstype => 'nfs',
:mount_point => 'OfficeShare',
:options => 'ro,intr,tcp,nolock,vers=3',
:parent_directory => '/auto/nfs',
:config_file => '/etc/auto.nfs',
}
],
:static => [
{
:REMOVE => 'the value does not matter it will be removed if the REMOVE key is present',
:device => 'pod6.gina.alaska.edu:/gvolfile',
:fstype => 'nfs',
:mount_point => '/static/nfs/OfficeShare',
:options => 'ro,intr,tcp,nolock,vers=3',
:device_type => :device,
:dump => 0,
:pass => 2
}
]
}
}
chef.run_list = [
"recipe[minitest-handler::default]",
"recipe[mount::default]"
]
end
end