added some vagrant files for experiment
This commit is contained in:
35
vagrant/Makefile
Normal file
35
vagrant/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# 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:
|
||||
vagrant package --vagrantfile Vagrantfile
|
||||
|
||||
halt:
|
||||
vagrant halt
|
||||
|
||||
destroy: halt
|
||||
vagrant destroy -f
|
||||
|
||||
clean: destroy
|
||||
rm -rf .vagrant package.box
|
Reference in New Issue
Block a user