Skip to content

Commit

Permalink
boundary updates, work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
star3am committed Sep 11, 2024
1 parent bd2dee4 commit bbc059e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions boundary/boundary.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
# https://learn.hashicorp.com/tutorials/boundary/getting-started-install
# https://learn.hashicorp.com/tutorials/boundary/getting-started-dev
# https://developer.hashicorp.com/boundary/docs/commands/dev

VERSION=latest

Expand Down Expand Up @@ -98,7 +99,7 @@ After=network-online.target
[Service]
EnvironmentFile=/etc/boundary/boundary.env
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/local/bin/boundary dev -api-listen-address 0.0.0.0:19200
ExecStart=/usr/local/bin/boundary dev -api-listen-address 0.0.0.0:19200 -proxy-listen-address 0.0.0.0 -worker-public-address 0.0.0.0
KillMode=process
KillSignal=SIGINT
LimitNOFILE=65536
Expand Down Expand Up @@ -197,10 +198,20 @@ echo -e '\e[38;5;198m'"++++ Set Boundary Token ENV variable"
echo -e '\e[38;5;198m'"++++ "
export BOUNDARY_TOKEN=$(cat /etc/boundary/auth.info | tail -n 1)

echo -e '\e[38;5;198m'"++++ "
echo -e '\e[38;5;198m'"++++ List Boundary targets"
echo -e '\e[38;5;198m'"++++ "
boundary targets list -recursive -token env://BOUNDARY_TOKEN

echo -e '\e[38;5;198m'"++++ "
echo -e '\e[38;5;198m'"++++ Print Boundary ENV variables"
echo -e '\e[38;5;198m'"++++ "
env | grep BOUNDARY
for i in $(env | grep BOUNDARY); do echo "export $i"; done

# echo -e '\e[38;5;198m'"++++ "
# echo -e '\e[38;5;198m'"++++ DEBUG: Test Boundary target"
# echo -e '\e[38;5;198m'"++++ "
# boundary connect ssh -target-id ttcp_g4twnnFCNk -token env://BOUNDARY_TOKEN -username vagrant

echo -e '\e[38;5;198m'"++++ "
echo -e '\e[38;5;198m'"++++ Access Boundary"
Expand Down

0 comments on commit bbc059e

Please sign in to comment.