playground/vagrant/Makefile

37 lines
590 B
Makefile
Raw Normal View History

# vagrant init without the box name used the default box 'base'
# in the produced Vagrantfile.
#
#
##PROVIDER ?= libvirt
PROVIDER ?= virtualbox
all:
@echo choose one of the targets:
@echo " init up provision halt destory clean"
init:
#vagrant init antlabs/sg5-centos8-base
vagrant init generic/rocky8
##vagrant init
up:
##vagrant up
vagrant up --provider=$(PROVIDER)
provision: up
vagrant provision
package:
2021-08-30 02:53:16 +00:00
rm -rf package.box
vagrant package --vagrantfile Vagrantfile
halt:
vagrant halt
destroy: halt
vagrant destroy -f
clean: destroy
rm -rf .vagrant package.box