代码拉取完成,页面将自动刷新
同步操作将从 buxiaomo/kubeasy 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- mode: ruby -*-
# vi: set ft=ruby :
hosts = {
"ansible" => "192.168.22.10",
"node01" => "192.168.22.11",
"node02" => "192.168.22.12",
"node03" => "192.168.22.13",
"node04" => "192.168.22.14"
}
Vagrant.configure("2") do |config|
hosts.each do |name, ip|
config.vm.define name do |machine|
machine.vm.box = "ubuntu/focal64"
machine.vm.box_check_update = false
machine.ssh.insert_key = false
machine.vm.hostname = name
# machine.vm.synced_folder "./.ssh", "/root/.ssh"
machine.vm.network :private_network, ip: ip
machine.vm.provider "virtualbox" do |v|
v.name = name
v.memory = 1024
v.cpus = 1
end
machine.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install git make -y
sudo apt-get dist-upgrade -y
sudo cp /vagrant/.ssh/id_rsa /home/vagrant/.ssh/id_rsa
sudo cp /vagrant/.ssh/id_rsa.pub /home/vagrant/.ssh/id_rsa.pub
sudo cat /vagrant/.ssh/id_rsa.pub >> /home/vagrant/.ssh/authorized_keys
SHELL
end
end
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。