summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2016-01-22 14:57:48 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2016-01-25 09:54:21 -0800
commit2610b7753f81ebf027fd07032551afa5bd7742ba (patch)
tree12637628ceb075531c77b70d9f73d9dd6190acca
parent6e784ba749b543b13f667a2e267877f0d54141cb (diff)
downloadchef-2610b7753f81ebf027fd07032551afa5bd7742ba.tar.gz
Allow setting fips through environment variable
-rw-r--r--chef-config/lib/chef-config/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index f352d754c6..a371af9738 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -452,7 +452,7 @@ module ChefConfig
default :recipe_url, nil
# Set to true if Chef is to set OpenSSL to run in FIPS mode
- default :fips, false
+ default(:fips) { ENV['CHEF_FIPS'] == '1' }
# Initialize openssl
def self.init_openssl