Skip to content

Commit

Permalink
Merge pull request #231 from redBorder/improvement/#19123_mcli_replicate
Browse files Browse the repository at this point in the history
execute add_mcli before installing and registering minio
  • Loading branch information
jsotofernandez authored Nov 13, 2024
2 parents ca4a276 + 1c3a2b9 commit d1d0d12
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -614,12 +614,10 @@

s3_secrets = {}

if manager_services['s3'] && (external_services['s3'] == 'onpremise')
begin
s3_secrets = data_bag_item('passwords', 's3')
rescue
s3_secrets = {}
end
begin
s3_secrets = data_bag_item('passwords', 's3')
rescue
s3_secrets = {}
end

# Allow only s3 onpremise nodes for now..
Expand All @@ -629,9 +627,9 @@
secret_key_id s3_secrets['s3_secret_key_id']
if manager_services['s3'] && (external_services['s3'] == 'onpremise')
ipaddress node['ipaddress_sync']
action [:add, :register, :add_mcli]
action [:add_mcli, :add, :register]
else
action [:remove, :deregister, :add_mcli]
action [:add_mcli, :remove, :deregister]
end
end

Expand Down

0 comments on commit d1d0d12

Please sign in to comment.