diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-01-22 09:18:34 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-01-25 09:54:20 -0800 |
commit | cf86de29bcfabb8709b6efa4ce8a5a4f8b983796 (patch) | |
tree | d8525e05cc215e8be433b89b6cc1b3567a9663de /lib/chef/application/client.rb | |
parent | 74f32edd28ab18508440061e2b16020f03812589 (diff) | |
download | chef-cf86de29bcfabb8709b6efa4ce8a5a4f8b983796.tar.gz |
Allow chef-client --fips
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r-- | lib/chef/application/client.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index ba357b420d..5b124b60a7 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -274,6 +274,11 @@ class Chef::Application::Client < Chef::Application :description => "Whether a local mode (-z) server binds to a port", :boolean => true + option :fips, + :long => "--fips", + :description => "Enable fips mode", + :boolean => true + IMMEDIATE_RUN_SIGNAL = "1".freeze attr_reader :chef_client_json @@ -287,6 +292,8 @@ class Chef::Application::Client < Chef::Application set_specific_recipes + Chef::Config[:fips] = config[:fips] if config.has_key? :fips + Chef::Config[:chef_server_url] = config[:chef_server_url] if config.has_key? :chef_server_url Chef::Config.local_mode = config[:local_mode] if config.has_key?(:local_mode) |