forked from linagora/obm-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
29 lines (23 loc) · 837 Bytes
/
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
Vagrant.configure("2") do |config|
## VM definition
config.vm.define "obm.example.com" do |centos66|
centos66.vm.box = "centos66"
centos66.vm.hostname = "obm.example.com"
centos66.vm.network :private_network,
:ip => "192.168.56.201"
## Shell script provisionning
centos66.vm.provision "shell" do |shell|
shell.path = "vagrant/bootstrap.sh"
end
## Ansible/obm-deploy provisionning
centos66.vm.provision :ansible do |ansible|
ansible.inventory_path = "obmfull-example"
ansible.playbook = "obm.yml"
ansible.extra_vars = { ansible_ssh_user: 'root' }
# Disable default limit (required with Vagrant 1.5+)
ansible.limit = 'all'
end
end
## synced folder configuration
config.vm.synced_folder "vagrant", "/vagrant", type: "rsync"
end