From 77a910f596943e8472bdd2936b401b071f6ebb44 Mon Sep 17 00:00:00 2001 From: Juan Soto Date: Fri, 8 Nov 2024 12:16:54 +0000 Subject: [PATCH 1/2] Add configuration to vrrp encrypted --- resources/bin/rb_configure_leader.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/bin/rb_configure_leader.sh b/resources/bin/rb_configure_leader.sh index 0ce98f4..13d7bbf 100755 --- a/resources/bin/rb_configure_leader.sh +++ b/resources/bin/rb_configure_leader.sh @@ -100,6 +100,8 @@ function configure_dataBags(){ # IF S3HOST not found, set default: s3.service [ "x$S3HOST" = "x" ] && S3HOST="s3.service" + VRRPPASS=`< /dev/urandom tr -dc A-Za-z0-9 | head -c8 | sed 's/ //g'` + # Vault data bag configuration HASH_KEY="yourenterprisekey" HASH_FUNCTION="SHA256" @@ -143,6 +145,16 @@ _RBEOF_ "s3_external_url": "$S3EXTERNALURL", "s3_bucket": "$S3BUCKET" } +_RBEOF_ + + mkdir -p /var/chef/data/data_bag_encrypted/passwords/ + cat > /var/chef/data/data_bag_encrypted/passwords/vrrp.json <<-_RBEOF_ +{ + "id": "vrrp", + "username": "vrrp", + "start_id": "$(( ( RANDOM % 191 ) + 10 ))", + "pass": "$VRRPPASS" +} _RBEOF_ # DB druid passwords From a2e6f8f9a9b504ca380af376f9a299f7820f08f3 Mon Sep 17 00:00:00 2001 From: Daniel Castro Date: Fri, 15 Nov 2024 11:43:06 +0000 Subject: [PATCH 2/2] Release 3.2.2 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index e4604e3..be94e6f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.1 +3.2.2