Skip to content

Commit 5e8f0a9

Browse files
committed
terraform: output connected status at end of script
1 parent 0f280d6 commit 5e8f0a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

terraform/internal-modules/tailscale-install-scripts/scripts/tailscale-ubuntu.tftpl

+2
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ echo -e '\n#\n# Complete.\n#\n'
2929
%{ for s in after_scripts }
3030
${s}
3131
%{ endfor }
32+
33+
tailscale status --peers=false 2>&1 1> /dev/null && echo -e '\n#\n# Tailscale status: connected\n#\n' || echo -e '\n#\n# Tailscale status: NOT connected\n#\n'

0 commit comments

Comments
 (0)