Skip to content

Commit

Permalink
temp stand-in encryption still needs to be valid base64 😝
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Mar 13, 2024
1 parent a099662 commit 00f3403
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [ ! $FIRST ]; then
done
set -e

consul keygen | tr -d ^ | podman secret create HIND_C -
consul keygen | tr -d ^ | podman secret create HIND_C -
nomad operator gossip keyring generate | tr -d ^ | podman secret create HIND_N -

export NOMAD_TOKEN=$(fgrep 'Secret ID' /tmp/bootstrap |cut -f2- -d= |tr -d ' ')
Expand Down
4 changes: 2 additions & 2 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if [ ! -e /opt/nomad/data/plugins ]; then
exit 0
fi

sed -i "s/RUNTIME_REPLACED/$HIND_C/" $CONSUL_HCL
sed -i "s/RUNTIME_REPLACED/$HIND_N/" $NOMAD_HCL
sed -i "s/cafe-facade/$HIND_C/" $CONSUL_HCL
sed -i "s/cafe-facade/$HIND_N/" $NOMAD_HCL

# set for `nomad run` of jobs with `podman` driver
podman system service -t 0 & # xxx prolly add into supervisord for autorestart
Expand Down
2 changes: 1 addition & 1 deletion etc/consul.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ limits {
}

# setup for 2+ VMs to have their consul daemons be able to talk to each other
encrypt = "RUNTIME_REPLACED"
encrypt = "cafe-facade"
2 changes: 1 addition & 1 deletion etc/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ server {
}

# setup for 2+ VMs to have their nomad daemons be able to talk to each other
encrypt = "RUNTIME_REPLACED"
encrypt = "cafe-facade"
}

0 comments on commit 00f3403

Please sign in to comment.