mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-12-31 21:56:41 +01:00
「✨」 feat(p2): successfully migrated to alpine
This commit is contained in:
8
p2/Vagrantfile
vendored
8
p2/Vagrantfile
vendored
@ -23,17 +23,17 @@ end
|
|||||||
# • Be able to connect with SSH on both machines with no password.
|
# • Be able to connect with SSH on both machines with no password.
|
||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
config.vagrant.plugins = []
|
config.vm.box = "generic/alpine319"
|
||||||
|
|
||||||
config.vm.box = "debian/bookworm64"
|
|
||||||
config.vm.provider "#{IOT_PROVIDER}" do |provider|
|
config.vm.provider "#{IOT_PROVIDER}" do |provider|
|
||||||
provider.cpus = 1
|
provider.cpus = 4
|
||||||
provider.memory = 1024
|
provider.memory = 4096
|
||||||
end
|
end
|
||||||
|
|
||||||
config.vm.define "#{IOT_LOGIN}S" do |server|
|
config.vm.define "#{IOT_LOGIN}S" do |server|
|
||||||
server.vm.hostname = "#{IOT_LOGIN}S"
|
server.vm.hostname = "#{IOT_LOGIN}S"
|
||||||
server.vm.network "private_network", ip: "192.168.56.110", auto_config: true
|
server.vm.network "private_network", ip: "192.168.56.110", auto_config: true
|
||||||
|
server.vm.synced_folder ".", "/vagrant"
|
||||||
|
|
||||||
server.vm.provision "shell", path: "scripts/setup-S.sh"
|
server.vm.provision "shell", path: "scripts/setup-S.sh"
|
||||||
server.vm.provision "shell", path: "scripts/deploy-apps.sh"
|
server.vm.provision "shell", path: "scripts/deploy-apps.sh"
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install curl -y
|
|
||||||
|
|
||||||
echo "Launching k3s install"
|
echo "Launching k3s install"
|
||||||
curl -sfL https://get.k3s.io | sh -s - server --cluster-init --node-ip=192.168.56.110
|
curl -sfL https://get.k3s.io | sh -s - server --cluster-init --node-ip=192.168.56.110
|
||||||
|
|
||||||
|
echo Waiting
|
||||||
|
sleep 15
|
||||||
|
|||||||
Reference in New Issue
Block a user