-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.LinuxHostNFS
47 lines (38 loc) · 1.73 KB
/
Vagrantfile.LinuxHostNFS
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
# Funziona solo su Linux o MacOS X con vagrant-hostmaster installato sulla macchina host
# e nfs-utils installato sulla macchina guest. nfs-utils viene installato automaticamente
# da puppet durante il primo provisioning.
#
# Per installare vagrant-hostmaster:
# vagrant gem install vagrant-hostmaster
#
# Author: Andrea Sosso <[email protected]>
Vagrant::Config.run do |config|
config.vm.box = 'centos-63-64-puppet-vbox4.2.6'
config.vm.box_url = 'http://packages.vstone.eu/vagrant-boxes/centos/6.3/centos-6.3-64bit-puppet-vbox.4.2.6-2.box'
### Configurazione del numero di core e della RAM per la VM
# config.vm.customize ["modifyvm", :id, "--memory", 2048, "--cpus", 2]
### Condivisione cartelle NFS (veloce) | Richiede nfs-utils
config.vm.share_folder("v-data", "/home/vagrant/data", "data", :nfs => true, :extra => 'dmode=777,fmode=777')
### Abilita l'interfaccia grafica
# config.vm.boot_mode = :gui
### Configurazione per VirtualBox lente
config.ssh.max_tries = 50
config.ssh.timeout = 300
### Configurazione port forwarding
# config.vm.forward_port 3306, 3306
### Puppet configuration
config.vm.define :project do |project_config|
project_config.vm.host_name = "centos.tekarea.dev"
project_config.hosts.name = "pma.dev centos.tekarea.dev"
project_config.vm.network :hostonly, "33.33.33.10"
### Pass installation procedure over to Puppet (see `manifests/project.pp`)
project_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "puppet-modules"
puppet.manifest_file = "project.pp"
puppet.options = [
'--verbose',
]
end
end
end