-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (31 loc) · 1.04 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
# coding: utf-8
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Configuration variables.
VAGRANTFILE_API_VERSION = "2"
DOMAIN = 'ckan'
name = 'test123'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.insert_key = true
config.vm.define name do |machine|
#machine.vm.box = 'debian/stretch64'
#machine.vm.box_version = "9.9.0"
machine.vm.box = 'debian/buster64'
machine.vm.box_version = "10.0"
machine.vm.provider "virtualbox" do |vbox|
vbox.gui = true
vbox.cpus = 2
vbox.memory = 2048
vbox.name = name
end
machine.vm.hostname = name + DOMAIN
machine.vm.network "private_network", ip: "192.168.10.50"
machine.vm.provision "shell", inline: "sudo timedatectl set-timezone Europe/Amsterdam", run: "always"
machine.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbook-ckan.yml"
ansible.install_mode = "pip"
ansible.version = "2.8.0"
ansible.verbose = "vvv"
end
end
end