-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
48 lines (36 loc) · 1.59 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
44
45
46
47
48
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
# Fix static IPs not correctly set up under Fedora 36 and above
# config.vm.provision "shell", inline: "dnf install -y NetworkManager-initscripts-ifcfg-rh && reboot"
config.vm.define "snyssen.duckdns.org" do |apps|
apps.vm.hostname = "snyssen.duckdns.org"
apps.vm.network :private_network, ip: "192.168.56.12"
# Adds one alias per subdomain
subdomains = %w(routing dash recipes speedtest git drone cloud office photo streaming torrent usenet sonarr radarr lidarr prowlarr bazarr yt api-yt proxy-yt mc wiki dnd prometheus monitor)
.map{|s| s+= ".snyssen.duckdns.org"}
apps.hostmanager.aliases = subdomains
# Adds disks
apps.vm.disk :disk, size: "100GB", name: "parity1"
apps.vm.disk :disk, size: "100GB", name: "disk1"
apps.vm.disk :disk, size: "100GB", name: "disk2"
end
config.vm.define "backup.sny" do |backup|
backup.vm.hostname = "backup.sny"
backup.vm.network :private_network, ip: "192.168.56.13"
backup.vm.disk :disk, size: "300GB", name: "storage"
# Provision with Ansible
backup.vm.provision "ansible" do |ansible|
ansible.playbook = "setup-deploy.ansible.yml"
ansible.galaxy_role_file = "requirements.yml"
ansible.inventory_path = "hosts/dev.yml"
ansible.limit = "all"
end
end
end