imfreedom/bamboo-terraform
Clone
Summary
Browse
Changes
Graph
remove the installer and always start the agent
draft
2019-05-26, Gary Kramlich
10cdd0571af7
remove the installer and always start the agent
NODE
=
PLAN_LIMIT
=
$(
LIMIT:%
=
-target
=
%
)
TFARGS
=
-var-file
nodes/
$(
NODE
)
.tfvars
all
:
plan
plan
:
_require_node
terraform
plan
-parallelism
=
1
-out
$(
NODE
)
.tfplan
$(
TFARGS
)
$(
PLAN_LIMIT
)
destroy
:
_require_node
terraform
plan
-destroy
-out
$(
NODE
)
.tfplan
$(
TFARGS
)
apply
:
_require_node
terraform
apply
-input
=
true
$(
NODE
)
.tfplan
rm
$(
NODE
)
.tfplan
showplan
:
_require_node
terraform
show
$(
NODE
)
.tfplan
_require_node
:
nodes
/
$(
NODE
)
.
tfvars
$(
warning
*
)
$(
warning
*
)
$(
warning
Executing
on
host
$(
NODE
))
$(
warning
*
)
$(
warning
*
)
nodes/$(NODE).tfvars
:
@echo
unknown
node
\"
$(
NODE
)
\"
@exit
1