fix: doctor target reports terraform now
This commit is contained in:
4
Makefile
4
Makefile
@@ -104,10 +104,10 @@ doctor: ## Check tools and basic repo setup
|
||||
@bash -ceu ' \
|
||||
ok(){ printf "✔ %s\n" "$$1"; }; fail(){ printf "❌ %s\n" "$$1"; exit 1; }; \
|
||||
command -v git >/dev/null && ok "git: $$(git --version)" || fail "git missing"; \
|
||||
command -v terraform >/dev/null && ok "terraform: $$(terraform version | head -1)"; \
|
||||
command -v ansible >/dev/null && ok "ansible: $$(ansible --version | head -1)"; \
|
||||
command -v sops >/dev/null && ok "sops: $$(sops --version)"; \
|
||||
command -v sops >/dev/null && ok "sops: $$(sops --version --check-for-updates)"; \
|
||||
command -v age >/dev/null && ok "age: $$(age --version)"; \
|
||||
command -v terraform >/dev/null && ok "terraform: $$(terraform -version | head -1)"; \
|
||||
test -f keys/admin_ssh.pub && ok "keys/admin_ssh.pub present" || echo "ℹ add your SSH pubkey to keys/admin_ssh.pub"; \
|
||||
test -f inventory/group_vars/secrets.sops.yaml && ok "secrets.sops.yaml present" || echo "ℹ create inventory/group_vars/secrets.sops.yaml"; \
|
||||
grep -q "age1" .sops.yaml && ok ".sops.yaml has an age recipient" || echo "ℹ add your age public key to .sops.yaml"; \
|
||||
|
||||
Reference in New Issue
Block a user