How to run bootstraps for server setup
attracs-server-bootstrap.sh
Old bootstrap. Used additionally with the modern adi-server-bootstrap.sh if there are legacy applications running on the new server.
Example command:
./attracs-server-bootstrap.sh -s root@34.88.60.215 -p ./.vault_password_file -i ./inventory/linux-servers.ini -l adi-core-confidential-instance-stable-1 -h adi-core-confidential-instance-stable-1
Contains:
* Playbook services/shared/auth-internal-credentials.yml that creates internally used authentication files
/etc/auth.internal.attracs$ ls
generate.sh nightly.key nightly.key.pub nightly.pub nightly.secret stable.key stable.key.pub stable.pub stable.secret
ERROR: JWTUtil.AuthorizeTwirp: Failed to create auth token: Signer not initialized it probably means you are missing these internal authentication files
adi-server-bootstrap.sh
Used for all new servers as a base. Example command:
./adi-server-bootstrap.sh -s root@34.88.249.239 -p ./.vault_password_file -i ./inventory/linux-servers.ini -l adi-devops-confidential-instance-stable-1 -h adi-devops-confidential-instance-stable-1
Syntax:
./adi-server-bootstrap.sh -s root@<server-ip-address> -p ./.vault_password_file -i ./inventory/linux-servers.ini -l <ansible-inventory-server-name> -h <server-hostname>