github.com/hernad/nomad@v1.6.112/e2e/terraform/Makefile (about)

     1  PKG_PATH = $(shell pwd)/../../pkg/linux_amd64/nomad
     2  LICENSE_PATH ?=
     3  
     4  # deploy for quick local development testing
     5  
     6  plan:
     7  	terraform plan \
     8  		-var="nomad_local_binary=$(PKG_PATH)" \
     9  		-var="volumes=false" \
    10  		-var="client_count_ubuntu_jammy_amd64=3" \
    11  		-var="client_count_windows_2016_amd64=0"
    12  
    13  apply:
    14  	terraform apply -auto-approve \
    15  		-var="nomad_local_binary=$(PKG_PATH)" \
    16  		-var="volumes=false" \
    17  		-var="client_count_ubuntu_jammy_amd64=3" \
    18  		-var="client_count_windows_2016_amd64=0"
    19  
    20  clean: destroy tidy
    21  
    22  destroy:
    23  	terraform destroy -auto-approve \
    24  		-var="nomad_local_binary=$(PKG_PATH)" \
    25  		-var="client_count_ubuntu_jammy_amd64=3" \
    26  		-var="client_count_windows_2016_amd64=0"
    27  
    28  # deploy what's in E2E nightly
    29  
    30  plan_full:
    31  	terraform plan
    32  
    33  apply_full:
    34  	@terraform apply -auto-approve \
    35  		-var="nomad_license=$(shell cat $(LICENSE_PATH))"
    36  
    37  clean_full: destroy_full tidy
    38  
    39  destroy_full:
    40  	terraform destroy -auto-approve
    41  
    42  # util
    43  
    44  # don't run this by default in plan/apply because it prevents you from
    45  # updating a running cluster
    46  tidy:
    47  	rm -rf keys
    48  	mkdir keys
    49  	chmod 0700 keys
    50  	rm -rf uploads/*
    51  	git checkout uploads/README.md
    52  	rm -f terraform.tfstate.*.backup