forked from ckan/ckan-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
43 lines (33 loc) · 1.14 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "trusty" do |trusty|
trusty.vm.box = "ubuntu/trusty64"
end
config.vm.define "xenial" do |xenial|
xenial.vm.box = "ubuntu/xenial64"
end
config.vm.define "bionic" do |bionic|
bionic.vm.box = "ubuntu/bionic64"
end
config.ssh.forward_agent = true
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "package.yml"
ansible.host_key_checking = false
ansible.become = true
ansible.verbose = ENV.fetch("CKAN_PACKAGE_ANSIBLE_VERBOSE", "vv")
ansible.extra_vars = {}
ansible.extra_vars["datapusher"] = ENV.fetch("CKAN_PACKAGE_DATAPUSHER", "y")
if ENV.has_key?("CKAN_PACKAGE_VERSION")
ansible.extra_vars["version"] = ENV["CKAN_PACKAGE_VERSION"]
end
if ENV.has_key?("CKAN_PACKAGE_ITERATION")
ansible.extra_vars["iteration"] = ENV["CKAN_PACKAGE_ITERATION"]
end
end
end