」 feat(p2): successfully migrated to alpine

This commit is contained in:
2025-12-17 15:25:29 +01:00
parent 6b0353123b
commit c240b1cc75
2 changed files with 7 additions and 7 deletions

8
p2/Vagrantfile vendored
View File

@ -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"

View File

@ -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