From 71e816c37428b25c94de245198d54014f57dd783 Mon Sep 17 00:00:00 2001 From: Tracey Jaquith Date: Tue, 12 Mar 2024 19:20:43 -0700 Subject: [PATCH] picky gossip rules --- bin/entrypoint.sh | 4 ++-- etc/consul.hcl | 3 ++- etc/nomad.hcl | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh index 279adf1..55fc91b 100755 --- a/bin/entrypoint.sh +++ b/bin/entrypoint.sh @@ -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 diff --git a/etc/consul.hcl b/etc/consul.hcl index 0c779a1..7d18be8 100644 --- a/etc/consul.hcl +++ b/etc/consul.hcl @@ -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=" diff --git a/etc/nomad.hcl b/etc/nomad.hcl index 4539784..deb6e86 100644 --- a/etc/nomad.hcl +++ b/etc/nomad.hcl @@ -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=" }