diff options
author | Seth Chisamore <schisamo@opscode.com> | 2013-03-20 16:24:27 -0400 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 14:25:45 -0700 |
commit | 1b34d3f869304525f006e1222ffb4cc09157c226 (patch) | |
tree | da2c6bea0acd06241bc65f60cbd2f9571fd61e9c | |
parent | c28e9b53e897029f2ca7bc94d617cc33ceea454b (diff) | |
download | chef-1b34d3f869304525f006e1222ffb4cc09157c226.tar.gz |
[CHEF-4011] improve deprecation message
* Add a reference to CHEF-4011 for users who want
more information on the deprecation.
* Give users a pointer that `knife[:secret_file]` may still be used for
previous behavior.
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index 92e853d9f6..a05f48dfc9 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -248,8 +248,14 @@ class Chef ui.warn "* " * 40 ui.warn(<<-WARNING) Specifying the encrypted data bag secret key using an 'encrypted_data_bag_secret' -entry in 'knife.rb' is deprecated. Please use the '--secret' or '--secret-file' -options of this command instead. +entry in 'knife.rb' is deprecated. Please see CHEF-4011 for more details. You +can supress this warning and still distribute the secret key to all bootstrapped +machines by adding the following to your 'knife.rb' file: + + knife[:secret_file] = "/path/to/your/secret" + +If you would like to selectively distribute a secret key during bootstrap +please use the '--secret' or '--secret-file' options of this command instead. #{ui.color('IMPORTANT:', :red, :bold)} In a future version of Chef, this behavior will be removed and any 'encrypted_data_bag_secret' entries in |