summaryrefslogtreecommitdiff
path: root/lib/chef/application/client.rb
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2016-01-22 09:18:34 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2016-01-25 09:54:20 -0800
commitcf86de29bcfabb8709b6efa4ce8a5a4f8b983796 (patch)
treed8525e05cc215e8be433b89b6cc1b3567a9663de /lib/chef/application/client.rb
parent74f32edd28ab18508440061e2b16020f03812589 (diff)
downloadchef-cf86de29bcfabb8709b6efa4ce8a5a4f8b983796.tar.gz
Allow chef-client --fips
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r--lib/chef/application/client.rb7
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)