Skip to content

Commit

Permalink
run get-key before execution on default key
Browse files Browse the repository at this point in the history
  • Loading branch information
anixon604 committed Oct 25, 2024
1 parent b4722af commit f56e2dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ Before you begin, ensure you have the following installed on your local machine:
You will need to provide the following information:
- Host ID (public key of the validator node wallet)
- Private Key (private key of the validator node wallet)
- Host Public P2P Address (public IP address of the validator node)
- Host Public P2P Address (public IP address or DNS name of the validator node)
- Host ssh username (default is tenuser)*
- Host ssh password or path to ssh key file*
- L1 WS URL (websocket URL of the L1 node)
- L1 WS URL (geth client, Infura, etc.websocket URL of the L1 node)
- Postgres DB Host (leave blank if unsure or want to provision a new one)

\* Note: If you used terraform to provision the VM, you can just press enter and choose the default values.
Expand Down
Empty file modified clear.sh
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions install-ten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ read AUTH_METHOD
AUTH_METHOD=${AUTH_METHOD:-key}
if [[ "$AUTH_METHOD" == "key" ]]; then
prompt_for_input "Please enter the path to your SSH key file (Just press Enter if you ran terraform)" SSH_KEY_PATH '^.+$' "${CURRENT_DIR}/terraform/ssh-key.pem"
# if the key path is not provided, use the default and get the key from the terraform directory
if [ -z "$SSH_KEY_PATH" ] || [ "$SSH_KEY_PATH" == "${CURRENT_DIR}/terraform/ssh-key.pem" ]; then
chmod +x ${CURRENT_DIR}/terraform/get-key.sh
${CURRENT_DIR}/terraform/get-key.sh
fi
SSH_CREDENTIAL="ansible_ssh_private_key_file=${SSH_KEY_PATH}"
elif [[ "$AUTH_METHOD" == "password" ]]; then
prompt_for_input "Please enter the password for SSH authentication" SSH_PASSWORD '^.+$'
Expand Down

0 comments on commit f56e2dd

Please sign in to comment.