diff options
author | danielsdeleo <dan@getchef.com> | 2015-03-31 14:33:19 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2015-04-01 13:35:01 -0700 |
commit | 8157fdea21c913dfb99ee4f8c285d2d64557d4bc (patch) | |
tree | 3d4d3998276f92411cc61cac8135befd3de714e2 /lib/chef/config.rb | |
parent | f066fef19be99ba1b857ecaaabc4c70c9201f1d4 (diff) | |
download | chef-8157fdea21c913dfb99ee4f8c285d2d64557d4bc.tar.gz |
Add --no-listen option to disable zero binding to port
Diffstat (limited to 'lib/chef/config.rb')
-rw-r--r-- | lib/chef/config.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb index b897f9fdbd..25557b077f 100644 --- a/lib/chef/config.rb +++ b/lib/chef/config.rb @@ -305,6 +305,14 @@ class Chef default :pid_file, nil + # Whether Chef Zero local mode should bind to a port. All internal requests + # will go through the socketless code path regardless, so the socket is + # only needed if other processes will connect to the local mode server. + # + # For compatibility this is set to true but it will be changed to false in + # the future. + default :listen, true + config_context :chef_zero do config_strict_mode true default(:enabled) { Chef::Config.local_mode } |