Move the generate options to config.rb at the root of the repo

This has been the only way I managed to make `chef generate cookbook
COOKBOOK_NAME` set the default values

This is not documented, there is an issue open about it:
https://github.com/chef/chef-cli/issues/54
This commit is contained in:
Greg 2019-12-27 11:33:05 +01:00
parent 8d78d41af7
commit d029ee91be
2 changed files with 4 additions and 4 deletions

View File

@ -8,10 +8,6 @@ data_bag_path "data_bags"
encrypted_data_bag_secret "#{current_dir}/encrypted_data_bag_secret"
local_mode true # Chef local mode, replacing Solo
cookbook_copyright 'Kosmos Developers'
cookbook_license 'MIT'
cookbook_email 'mail@kosmos.org'
# Knife-Zero config, see https://knife-zero.github.io/40_configuration/
# Prevent attributes from being saved to the node files
knife[:automatic_attribute_whitelist] = %w[

4
config.rb Normal file
View File

@ -0,0 +1,4 @@
# Set default values for `chef generate cookbook COOKBOOK_NAME`
chefdk.generator.copyright_holder 'Kosmos Developers'
chefdk.generator.license 'mit'
chefdk.generator.email 'mail@kosmos.org'