Skip to content

Commit

Permalink
Simplify add_mcli
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Oct 15, 2024
1 parent bec1655 commit 359f3fb
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,10 @@

action :add_mcli do
managers_with_minio = new_resource.managers_with_minio
s3_bucket = new_resource.s3_bucket
s3_endpoint = new_resource.s3_endpoint

if !Minio::Helpers.s3_ready?
s3_user = Minio::Helpers.generate_random_key(20)
s3_password = Minio::Helpers.generate_random_key(40)
else
s3_user = new_resource.access_key_id
s3_password = new_resource.secret_key_id
end
s3_user = new_resource.access_key_id
s3_password = new_resource.secret_key_id

# mcli (mc) tool configuration
# mcli (mc) tool configuration
directory '/root/.mcli' do
owner 'root'
group 'root'
Expand Down

0 comments on commit 359f3fb

Please sign in to comment.