forked from id/pepyatka-ansible
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
27 lines (25 loc) · 867 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'ubuntu/trusty32'
config.vm.network "forwarded_port", guest: 80, host: 8080
config.ssh.forward_agent = true
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbooks/site.yml"
ansible.sudo = true
ansible.groups = {
"pepyatka" => ["default"],
"nginx" => ["default"],
"redis" => ["default"]
}
ansible.extra_vars = {
pepyatka_hostname: "localhost:8080",
pepyatka_server_repo: "https://github.com/pepyatka/pepyatka-server.git",
pepyatka_server_branch: "development",
pepyatka_html_repo: "https://github.com/pepyatka/pepyatka-html.git",
pepyatka_html_branch: "development"
}
ansible.raw_arguments = ENV['ANSIBLE_ARGS']
end
end