feat(Initial commit): Add minimal Vagrant configuration and idea
This commit is contained in:
commit
89dd98738b
15
README.md
Normal file
15
README.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Homelab
|
||||||
|
|
||||||
|
## TODO
|
||||||
|
- Write start script
|
||||||
|
- Write stop script
|
||||||
|
- Add Makefile for easy control
|
||||||
|
|
||||||
|
## Script
|
||||||
|
- Detect WSL or Linux
|
||||||
|
- Detect default network interface
|
||||||
|
- Inject network interface
|
||||||
|
- Gather IPs (vagrant ssh-config)
|
||||||
|
- Deploy Ansible playbook
|
||||||
|
- Download kubeconfig
|
||||||
|
- Ping cluster (kubectl get nodes)
|
25
Vagrantfile
vendored
Normal file
25
Vagrantfile
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.box = "debian/bullseye64"
|
||||||
|
config.vm.synced_folder '.', '/vagrant', disabled: true
|
||||||
|
config.vm.provision :shell, path: "https://git.halis.io/athens-school/ISO-repository/raw/branch/master/quick-installer.sh", run: "always"
|
||||||
|
|
||||||
|
config.vm.network "public_network", bridge: "Intel(R) I211 Gigabit Network Connection"
|
||||||
|
config.vm.provider "virtualbox" do |v|
|
||||||
|
v.memory = 1024
|
||||||
|
v.cpus = 1
|
||||||
|
end
|
||||||
|
|
||||||
|
(1..3).each do |i|
|
||||||
|
config.vm.define "hb-slim-#{i}"
|
||||||
|
end
|
||||||
|
|
||||||
|
(1..2).each do |i|
|
||||||
|
config.vm.define "hb-wide-#{i}" do |wide|
|
||||||
|
wide.vm.provider "virtualbox" do |v|
|
||||||
|
v.memory = 4096
|
||||||
|
v.cpus = 2
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user