-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile.in
42 lines (35 loc) · 1.38 KB
/
Vagrantfile.in
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
# vim: set ft=ruby :
Vagrant.configure("2") do |config|
# libvirt provider
config.vm.provider :libvirt do |lv|
lv.memory = @VM_MEMORY@
lv.cpus = @VM_CPUS@
end
# ssh settings
config.ssh.keys_only = true
config.ssh.insert_key = false
config.ssh.forward_agent = true
config.ssh.private_key_path = ["@SSH_PRIVATE_KEY_PATH@", "~/.vagrant.d/insecure_private_key"]
config.vm.provision "file", source: "@SSH_PUBLIC_KEY_PATH@", destination: "~/.ssh/authorized_keys"
# disable default synced folder
config.vm.synced_folder ".", "@VM_SYNCED_FOLDER_MOUNT@", disabled: true
# vagrant-hostmanager plugin
if Vagrant.has_plugin?("vagrant-hostmanager")
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
end
# VM definition
config.vm.box = "@VM_BOX_OWNER@/@VM_BOX_NAME@"
config.vm.hostname = "@VM_BOX_OWNER@-@VM_BOX_NAME@"
config.vm.provision "shell", path: "provision/package-upgrade-vm"
config.vm.provision "shell", path: "provision/package-install-vm"
config.vm.provision "shell", path: "provision/pip-install"
config.vm.provision "shell", path: "provision/envconf-install", privileged: false,
env:
{
"CONAN_USERNAME": "@CONAN_USERNAME@",
"GIT_AUTHOR_NAME": "@GIT_AUTHOR_NAME@",
"GIT_AUTHOR_EMAIL": "@GIT_AUTHOR_EMAIL@"
}
config.vm.provision "shell", path: "provision/detutils-install", privileged: false
end