Skip to content

Commit

Permalink
updating motd
Browse files Browse the repository at this point in the history
  • Loading branch information
star3am committed Jul 31, 2024
1 parent 668f599 commit 469bd1b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions hashiqube/basetools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,42 @@ cat <<EOF | sudo tee /etc/update-motd.d/00-header
#!/bin/bash
/usr/bin/toilet --gay -f standard hashiqube0 -w 170
printf "%s"
if [[ ${CODESPACES} == true ]]; then
printf "\n"
printf '\e[33;0;36m'"Welcome! You are running in a Github Codespace. The information below will help you get started!\n"
printf '\e[33;0;36m'"You are in the /vagrant folder because this lab also runs in Vagrant, and many of the scripts depends on this path.\n"
printf '\e[33;1;93m'" * Hashiqube Documentation: \e[38;5;198m https://hashiqube.com\n"
printf '\e[33;1;93m'" * Start Vault: \e[38;5;198m bash vault/vault.sh\n"
printf '\e[33;1;93m'" * Access Vault Web UI: \e[38;5;198m Click on the Globe in the Ports Tab in port 8200\n"
printf '\e[33;1;93m'" * Get Vault Root token: \e[38;5;198m cat /etc/vault/init.file'\n"
printf '\e[33;1;93m'" * Get Vault Status: \e[38;5;198m vault status\n"
printf '\e[33;1;93m'" * Start Nomad: \e[38;5;198m bash nomad/nomad.sh\n"
printf '\e[33;1;93m'" * Access Nomad Web UI: \e[38;5;198m Click on the Globe in the Ports Tab in port 4646\n"
printf '\e[33;1;93m'" * Get Nomad Job Status: \e[38;5;198m nomad job status\n"
printf '\e[33;1;93m'" * Get Nomad Server Members:\e[38;5;198m nomad server members\n"
printf '\e[33;1;93m'" * Start Consul: \e[38;5;198m bash consul/consul.sh\n"
printf '\e[33;1;93m'" * Access Consul Web UI: \e[38;5;198m Click on the Globe in the Ports Tab in port 8500\n"
printf '\e[33;1;93m'" * Get Consul Info: \e[38;5;198m consul info\n"
printf '\e[33;1;93m'" * Get Consul Members: \e[38;5;198m consul members -wan\n"
printf '\e[33;1;93m'" * Start Terraform: \e[38;5;198m bash localstack/localstack.sh\n"
printf '\e[33;1;93m'" * Terraform Plan/Apply: \e[38;5;198m cd localstack; terraform plan; terraform apply;\n"
printf "\n"
else
printf "\n"
printf '\e[33;0;36m'"You are running in something\n"
printf '\e[33;1;93m'" * Hashiqube Documentation: \e[38;5;198m https://hashiqube.com\n"
printf '\e[33;1;93m'" * See User Data Log: tail -f /var/log/user-data.log\n"
printf '\e[33;1;93m'" * Get Vault Root token: vagrant ssh -c 'cat /etc/vault/init.file'\n"
printf '\e[33;1;93m'" * Get Vault Status: vault status\n"
printf '\e[33;1;93m'" * Get Nomad Job Status: nomad job status\n"
printf '\e[33;1;93m'" * Get Nomad Server Members: nomad server members\n"
printf '\e[33;1;93m'" * Get Consul Info: consul info\n"
printf '\e[33;1;93m'" * Get Consul Members: consul members -wan\n"
printf '\e[33;1;93m'" * Get Waypoint Token: vagrant ssh -c 'cat /home/vagrant/.waypoint-nomad-token'\n"
printf '\e[33;1;93m'" * SSH into Hashiqube: cd hashiqube; vagrant ssh\n"
printf "\n"
fi
EOF

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

0 comments on commit 469bd1b

Please sign in to comment.