summaryrefslogtreecommitdiff
path: root/lib/chef/tasks
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2013-10-09 16:07:17 -0700
committerBryan McLellan <btm@loftninjas.org>2013-10-09 16:07:17 -0700
commitce268ae0db690b7146bbb4e5c265038da85d2965 (patch)
tree7851384044421aa8793cb4845eda90c3c6ca4402 /lib/chef/tasks
parenta0c5ec3ae381985596706df39120d950b0eb3138 (diff)
parentea23f017151b12d01c08b943ace5e8733dd63434 (diff)
downloadchef-ce268ae0db690b7146bbb4e5c265038da85d2965.tar.gz
Merge pull request #578 from sjoerdmulder/patch-1
Fixing ssl_cert task error message
Diffstat (limited to 'lib/chef/tasks')
-rw-r--r--lib/chef/tasks/chef_repo.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/tasks/chef_repo.rake b/lib/chef/tasks/chef_repo.rake
index 62fef3434a..704557ebb3 100644
--- a/lib/chef/tasks/chef_repo.rake
+++ b/lib/chef/tasks/chef_repo.rake
@@ -188,8 +188,8 @@ task :ssl_cert do
fqdn =~ /^(.+?)\.(.+)$/
hostname = $1
domain = $2
- keyfile = fqdn.gsub("*", "wildcard")
raise "Must provide FQDN!" unless fqdn && hostname && domain
+ keyfile = fqdn.gsub("*", "wildcard")
puts "** Creating self signed SSL Certificate for #{fqdn}"
sh("(cd #{CADIR} && openssl genrsa 2048 > #{keyfile}.key)")
sh("(cd #{CADIR} && chmod 644 #{keyfile}.key)")