Skip to content

Commit

Permalink
Merge branch 'master' into feature/#18850_add_internal_virtual_ips
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezborder committed Dec 11, 2024
2 parents c5bd32f + e01ac1f commit 5bc008e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-rb-manager CHANGELOG
===============

## 4.6.4

- Miguel Alvarez
- [e461f49] Always create s3cfg_initial

## 4.6.3

- Nils
Expand Down
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
maintainer_email '[email protected]'
license 'AGPL-3.0'
description 'Installs/Configures redborder manager'
version '4.6.3'
version '4.6.4'

depends 'rb-common'
depends 'chef-server'
Expand Down
17 changes: 16 additions & 1 deletion resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

if manager_services['keepalived']
begin
vrrp_secrets = Chef::EncryptedDataBagItem.load('passwords', 'vrrp').to_hash
vrrp_secrets = data_bag_item('passwords', 'vrrp').to_hash
rescue
vrrp_secrets = {}
end
Expand Down Expand Up @@ -630,6 +630,21 @@
s3_secrets = {}
end

template '/root/.s3cfg_initial' do
source 's3cfg_initial.erb'
cookbook 'minio'
variables(
s3_user: s3_secrets['s3_access_key_id'],
s3_password: s3_secrets['s3_secret_key_id'],
s3_endpoint: 's3.service'
)
action :create
only_if do
s3_secrets['s3_access_key_id'] && !s3_secrets['s3_access_key_id'].empty? &&
s3_secrets['s3_secret_key_id'] && !s3_secrets['s3_secret_key_id'].empty?
end
end

# Allow only s3 onpremise nodes for now..
minio_config 'Configure S3 (minio)' do
managers_with_minio node['redborder']['managers_per_services']['s3']
Expand Down

0 comments on commit 5bc008e

Please sign in to comment.