mirror of
https://github.com/status-im/infra-les.git
synced 2025-02-01 07:05:51 +00:00
add terraform init step
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
b5745c5161
commit
ce686d2c91
7
Makefile
7
Makefile
@ -2,10 +2,8 @@
|
||||
|
||||
OS = $(strip $(shell uname -s))
|
||||
ARCH = linux_amd64
|
||||
PLATFORM = linux
|
||||
ifeq ($(OS),Darwin)
|
||||
ARCH = darwin_amd64
|
||||
PLATFORM = darwin
|
||||
endif
|
||||
|
||||
PLUGIN_DIR = ~/.terraform.d/plugins
|
||||
@ -20,7 +18,7 @@ PROVISIONER_VERSION = v2.0.0
|
||||
PROVISIONER_ARCHIVE = $(PROVISIONER_NAME)-$(subst _,-,$(ARCH))_$(PROVISIONER_VERSION)
|
||||
PROVISIONER_URL = https://github.com/radekg/terraform-provisioner-ansible/releases/download/$(PROVISIONER_VERSION)/$(PROVISIONER_ARCHIVE)
|
||||
|
||||
all: requirements install-provider install-provisioner secrets
|
||||
all: requirements install-provider install-provisioner secrets init-terraform
|
||||
echo "Success!"
|
||||
|
||||
plugins: install-provider install-provisioner
|
||||
@ -47,6 +45,9 @@ install-provisioner:
|
||||
chmod +x $(PLUGIN_DIR)/$(ARCH)/$(PROVISIONER_NAME)_$(PROVISIONER_VERSION); \
|
||||
fi
|
||||
|
||||
init-terraform:
|
||||
terraform init -upgrade=true
|
||||
|
||||
secrets:
|
||||
pass services/consul/ca-crt > ansible/files/consul-ca.crt
|
||||
pass services/consul/ca-key > ansible/files/consul-ca.key
|
||||
|
Loading…
x
Reference in New Issue
Block a user