I've already added the SSH keys that I found from https://github.com/aspen-hudbuz.keys to 10.101.0.200.
docker context create aa0 --docker "host=ssh://[email protected]" --default-stack-orchestrator swarm --description "all-access swarm"
# diff all common files | |
diff -bur --color inventories/preprod inventories/prod | |
# diff the main inventories | |
diff -bur --color inventories/preprod/preprod.ini inventories/prod/prod.ini |
docker context create aa0 --docker "host=ssh://[email protected]" --default-stack-orchestrator swarm --description "all-access swarm" |
# ensure JSON output with ANSIBLE_STDOUT_CALLBACK | |
# remove all lines before the first '{' | |
# remove all lines after the last '}' | |
# use jq to query the stdout value from the command | |
# ASSUMPTION | |
# there is a group "services" that identifies machines with node.js installed | |
ANSIBLE_STDOUT_CALLBACK=json ansible services -i inventories/dev -m command -a 'node --version' -v | sed '1,/^[^{]/d' | sed '/^}/q' | jq -r '.plays[].tasks[].hosts | keys[] as $k | "\($k): \(.[$k] | .stdout)"' |
# 16 bytes | |
hexdump -n 16 -e '4/4 "%08X" 1 "\n"' /dev/random | |
# 32 bytes | |
hexdump -n 32 -e '8/4 "%08X" 1 "\n"' /dev/random | |
# ref: https://stackoverflow.com/questions/34328759/how-to-get-a-random-string-of-32-hexadecimal-digits-through-command-line/34329057 |
#!/bin/bash | |
set -e -o pipefail | |
# DESCRIPTION: | |
# * executes all scripts found in the directory identifed by GIT_URL | |
# * only loads files ending with .sql | |
# REQUIRED ENV VARS | |
# ================= | |
# + GIT_TOKEN |
I've already added the SSH keys that I found from https://github.com/aspen-hudbuz.keys to 10.101.0.200.
docker context create aa0 --docker "host=ssh://[email protected]" --default-stack-orchestrator swarm --description "all-access swarm"
coverage | |
dist | |
node_modules |
node_modules |
These are the steps I run to turn preprod back on and verify. Once oidc is up, you can run the node.js, springboot, and ui playbooks in parallel (I've fixed the overwriting problem with generating .env files).
ap-preprod azure-start.yml
ap-preprod services-nodejs.yml -l oidc
ap-preprod services-nodejs.yml -l oidc -t init_pm2
ap-preprod services-nodejs.yml -l non_oidc
ap-preprod services-nodejs.yml -l non_oidc -t init_pm2
ap-preprod services-spring.yml
ap-preprod ui.yml