Skip to content

Commit

Permalink
Configure S3 cert before nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Jun 12, 2024
1 parent 41d9a3d commit 0c62fe0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,7 @@
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)
end

# First configure the cert for the service before configuring nginx
if manager_services["s3"]
nginx_config "Configure S3 certs" do
service_name "s3"
Expand All @@ -400,6 +395,12 @@
end
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") ? [:configure_certs, :add_s3_conf_nginx] : :nothing)
end

ssh_secrets = Chef::DataBagItem.load("passwords", "ssh") rescue ssh_secrets = {}

directory "/root/.ssh" do
Expand Down

0 comments on commit 0c62fe0

Please sign in to comment.