Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

Check for the certificate file (bsc#960006) #233

Merged
merged 1 commit into from
Feb 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions chef/cookbooks/nova_dashboard/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,17 @@
# old
multi_domain_support = keystone_settings["api_version"].to_f < 3.0 ? false : node["nova_dashboard"]["multi_domain_support"]

# Verify that we have the certificate available before configuring things to use it
if node[:nova_dashboard][:apache][:ssl]
unless ::File.size? node[:nova_dashboard][:apache][:ssl_crt_file]
message = "The file \"#{node[:nova_dashboard][:apache][:ssl_crt_file]}\" does not exist or is empty."
Chef::Log.fatal(message)
raise message
end
# we do not check for existence of keyfile, as the private key is allowed
# to be in the certfile
end

# Need to template the "EXTERNAL_MONITORING" array
template local_settings do
source "local_settings.py.erb"
Expand Down