Skip to content

Commit

Permalink
Update configure.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads authored Jun 10, 2024
1 parent ed91ff3 commit d89bd26
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,7 @@
# Allow only s3 onpremise nodes for now..
minio_config "Configure S3 (minio)" do
ipaddress node["ipaddress_sync"]
access_key_id s3_secrets["s3_access_key_id"]
secret_key_id s3_secrets["s3_secret_key_id"]
action ((manager_services["s3"] and external_services["s3"] == "onpremise") ? [:add, :register] : [:remove, :deregister])
end

# Configure Nginx s3 onpremise nodes for now..
minio_config "Configure Nginx S3 (minio)" do
s3_hosts node["redborder"]["s3"]["s3_hosts"]
action ((manager_services["s3"] and external_services["s3"] == "onpremise") ? [:add_s3_conf_nginx] : :nothing)
action ((manager_services["s3"] and external_services["s3"] == "onpremise" and s3_leader == node.name ) ? [:add, :register] : [:remove, :deregister])
end

if manager_services["s3"]
Expand Down

0 comments on commit d89bd26

Please sign in to comment.