diff options
-rwxr-xr-x | bin/chef-zero | 4 | ||||
-rw-r--r-- | lib/chef_zero/server.rb | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/chef-zero b/bin/chef-zero index dc58e68..050d28f 100755 --- a/bin/chef-zero +++ b/bin/chef-zero @@ -58,8 +58,8 @@ OptionParser.new do |opts| options[:data_store] = ChefZero::DataStore::RawFileStore.new(value) end - opts.on("--ssl", "Use SSL with self-signed certificate(Auto generate before every run)") do - options[:ssl] = true + opts.on("--[no-]ssl", "Use SSL with self-signed certificate(Auto generate before every run). Default: false.") do |value| + options[:ssl] = value end opts.on_tail("-h", "--help", "Show this message") do diff --git a/lib/chef_zero/server.rb b/lib/chef_zero/server.rb index 0ef8804..a51d246 100644 --- a/lib/chef_zero/server.rb +++ b/lib/chef_zero/server.rb @@ -88,7 +88,8 @@ module ChefZero :port => 8889, :log_level => :info, :generate_real_keys => true, - :single_org => 'chef' + :single_org => 'chef', + :ssl => false }.freeze def initialize(options = {}) |