작성
·
242
0
Vagrantfile 작성 후 vagrant up 시 network bridge 설정 질문이 나와서 설정방법 문의드립니다.
virtualbox version: 6.1.18
vagrant version: 2.2.14
[Vagrantfile 내용]
#-*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| config.vm.define:"ansible-server" do |cfg| cfg.vm.box = "centos/7" cfg.vm.provider:virtualbox do |vb| vb.name="Ansible-Server(Udemy-Bloter)" end cfg.vm.host_name="ansible-server" cfg.vm.synced_folder ".", "/vagrant", disabled: true cfg.vm.network "public_network", ip: "192.168.1.10" cfg.vm.network "forwarded_port", guest: 22, host: 19210, auto_correct: false, id: "ssh" cfg.vm.provision "shell", path: "bootstrap.sh" end end