- vagrant installed
- virtualbox installed
- clone repository
git clone https://github.com/prastamaha/reuni-nolsatu.git
cd reuni-nolsatu
- download box
vagrant box add hashicorp/bionic64 https://app.vagrantup.com/hashicorp/boxes/bionic64/versions/1.0.282/providers/virtualbox.box
- run example
cd example1
vagrant up
vagrant status
vagrant ssh
- destroy
cd example1
vagrant destroy
- box: singlebox (hashicorp/bionic64)
- provider: virtualbox (cpu: 2, memory: 2048)
- network: private_network (dhcp)
- box: singlebox (hashicorp/bionic64)
- provider: virtualbox (cpu: 2, memory: 2048)
- network: forwarded_port (host: 8080, guest: 80)
- sync: host=
~/html
, guest=/var/www/html
- provision: shell (install nginx)
- box: singlebox (hashicorp/bionic64)
- provider: virtualbox (cpu: 2, memory: 2048)
- network: private_network (10.0.0.10)
- sync: host=
~/html
, guest=/var/www/html
- provision: ansible (install nginx)
- box: multi-machine (hashicorp/bionic64)
- provider: virtualbox (cpu: 2, memory: 2048)
- network: private_network (vm1: 10.0.0.10, vm2: 10.0.0.20)
- box: multi-machine (hashicorp/bionic64)
- provider: virtualbox (cpu: 2, memory: 2048)
- network: private_network (based on
number_of_vm
) - plugin: vagrant-hostmanager
- box: multi-machine (hashicorp/bionic64)
- provision: ansible (setup kubernetes master with 1 master, N worker)
- provider: virtualbox (cpu: 2, memory: 2048)
- network: private_network (based on
192.168.50.N
)