-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
29 lines (23 loc) · 775 Bytes
/
Copy pathVagrantfile
File metadata and controls
29 lines (23 loc) · 775 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
hostname_short = 'dev'
vm_hostname = "#{hostname_short}.nodejs-mysql.loc"
Vagrant.require_version ">= 1.8.4"
Vagrant.configure(2) do |config|
config.vm.box = "bento/centos-6.7"
config.vm.box_version = "2.2.7"
config.vm.host_name = "#{vm_hostname}"
# Install ansible v2.6.
config.vm.provision :shell, path: "provisioners/ansible.install.sh", privileged: true
# Install everything else.
config.vm.provision :ansible_local do |ansible|
ansible.playbook = "nodejs.yml"
ansible.provisioning_path = "/vagrant/provisioners/ansible"
ansible.install = false
ansible.verbose = true
ansible.extra_vars = {
vm_hostname: "#{vm_hostname}",
vm_short_hostname: "#{hostname_short}",
}
end
end