From b21bbe7915177d5a6672e56c2bb29104540085c4 Mon Sep 17 00:00:00 2001 From: danielsdeleo Date: Wed, 20 May 2015 17:12:29 -0700 Subject: Make policyfile native mode the default --- chef-config/lib/chef-config/config.rb | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'chef-config') diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb index 800e8065de..63de8a451f 100644 --- a/chef-config/lib/chef-config/config.rb +++ b/chef-config/lib/chef-config/config.rb @@ -339,16 +339,23 @@ module ChefConfig # most of our testing scenarios) default :minimal_ohai, false - # Policyfile is an experimental feature where a node gets its run list and - # cookbook version set from a single document on the server instead of - # expanding the run list and having the server compute the cookbook version - # set based on environment constraints. - # - # Because this feature is experimental, it is not recommended for - # production use. Developent/release of this feature may not adhere to - # semver guidelines. + # Policyfile is a feature where a node gets its run list and cookbook + # version set from a single document on the server instead of expanding the + # run list and having the server compute the cookbook version set based on + # environment constraints. default :use_policyfile, false + # Policyfiles can be used in a native mode (default) or compatibility mode. + # Native mode requires Chef Server 12.1 (it can be enabled via feature flag + # on some prior versions). In native mode, policies and associated + # cookbooks are accessed via feature-specific APIs. In compat mode, + # policies are stored as data bags and cookbooks are stored at the + # cookbooks/ endpoint. Compatibility mode can be dangerous on existing Chef + # Servers; it's recommended to upgrade your Chef Server rather than use + # compatibility mode. Compatibility mode remains available so you can use + # policyfiles with servers that don't yet support the native endpoints. + default :policy_document_native_api, true + # Set these to enable SSL authentication / mutual-authentication # with the server -- cgit v1.2.1