mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Cleanup old Vagrantfile
This commit is contained in:
parent
d35af69049
commit
b0d6fe5ca0
1 changed files with 0 additions and 37 deletions
37
Vagrantfile
vendored
37
Vagrantfile
vendored
|
@ -1,37 +0,0 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
||||||
VAGRANTFILE_API_VERSION = "2"
|
|
||||||
|
|
||||||
NETWORK = "10.0.3."
|
|
||||||
|
|
||||||
HOSTS = {
|
|
||||||
"ynh-dev" => ["83", "ynh-dev"],
|
|
||||||
"compta" => ["85", "ynh-dev"],
|
|
||||||
"animafac" => ["86", "ynh-dev"],
|
|
||||||
"ynh-dev-buster" => ["84", "ynh-dev-buster"],
|
|
||||||
}
|
|
||||||
|
|
||||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
||||||
|
|
||||||
# Force guest type, because YunoHost /etc/issue can't be tuned
|
|
||||||
config.vm.guest = :debian
|
|
||||||
|
|
||||||
HOSTS.each do | (name, cfg) |
|
|
||||||
ipaddr, version = cfg
|
|
||||||
|
|
||||||
config.vm.define name do |machine|
|
|
||||||
machine.vm.box = "yunohost/" + version
|
|
||||||
# Force guest type, because YunoHost /etc/issue can't be tuned
|
|
||||||
machine.vm.guest = :debian
|
|
||||||
|
|
||||||
machine.vm.provider "lxc" do |lxc|
|
|
||||||
config.vm.box_url = "https://build.yunohost.org/" + version + "-lxc.box"
|
|
||||||
config.vm.synced_folder ".", "/ynh-dev", id: "vagrant-root"
|
|
||||||
config.vm.network :private_network, ip: NETWORK + ipaddr, lxc__bridge_name: 'lxcbr0'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end # HOSTS-each
|
|
||||||
|
|
||||||
end
|
|
Loading…
Reference in a new issue