2021-08-29 04:19:19 +00:00
|
|
|
# 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
|
2021-08-29 04:19:19 +00:00
|
|
|
vagrant package --vagrantfile Vagrantfile
|
|
|
|
|
|
|
|
halt:
|
|
|
|
vagrant halt
|
|
|
|
|
|
|
|
destroy: halt
|
|
|
|
vagrant destroy -f
|
|
|
|
|
|
|
|
clean: destroy
|
|
|
|
rm -rf .vagrant package.box
|