Skip to content

Commit

Permalink
Merge pull request #195 from redBorder/development
Browse files Browse the repository at this point in the history
Release 3.2.2
  • Loading branch information
dcastro-redBorder authored Nov 15, 2024
2 parents c4e646c + a2e6f8f commit 6158515
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.1
3.2.2
12 changes: 12 additions & 0 deletions resources/bin/rb_configure_leader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6158515

Please sign in to comment.