Skip to content

Commit

Permalink
picky gossip rules
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Mar 13, 2024
1 parent 00f3403 commit 71e816c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
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/cafe-facade/$HIND_C/" $CONSUL_HCL
sed -i "s/cafe-facade/$HIND_N/" $NOMAD_HCL
sed -i "s/VEhJUy1HRVRTLVJFUExBQ0VELUlULURPRVMtUklMTFk=/$HIND_C/" $CONSUL_HCL
sed -i "s/VEhJUy1HRVRTLVJFUExBQ0VELUlULURPRVMtUklMTFk=/$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
3 changes: 2 additions & 1 deletion etc/consul.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ limits {
}

# setup for 2+ VMs to have their consul daemons be able to talk to each other
encrypt = "cafe-facade"
# echo -n THIS-GETS-REPLACED-IT-DOES-RILLY |base64
encrypt = "VEhJUy1HRVRTLVJFUExBQ0VELUlULURPRVMtUklMTFk="
3 changes: 2 additions & 1 deletion etc/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ server {
}

# setup for 2+ VMs to have their nomad daemons be able to talk to each other
encrypt = "cafe-facade"
# echo -n THIS-GETS-REPLACED-IT-DOES-RILLY |base64
encrypt = "VEhJUy1HRVRTLVJFUExBQ0VELUlULURPRVMtUklMTFk="
}

0 comments on commit 71e816c

Please sign in to comment.