forked from yashap/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
27 lines (21 loc) · 861 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 :
Vagrant.configure(2) do |config|
BASEDIR = "#{`git rev-parse --show-toplevel`.strip}/playbook"
EMAIL = `git config user.email`.strip
config.vm.box = "ubuntu/trusty64"
config.vm.network :private_network, ip: "192.168.33.11"
config.vm.hostname = "airflow"
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 6192]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.synced_folder "workflows", "/home/vagrant/airflow/workflows", create: true
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbook/main.yml"
ansible.inventory_path = "playbook/inventories/vagrant"
ansible.extra_vars = { base_dir: BASEDIR, airflow_email_to: EMAIL }
end
end