chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::Knife::DataBagSecretOptions.included

The config object is populated by knife#merge_configs with knife.rb `knife[:*]` config values, but they do
not overwrite the command line properties.  It does mean, however, that `knife[:secret]` and `--secret-file`
passed at the same time populate both `config[:secret]` and `config[:secret_file]`.  We cannot differentiate
the valid case (`knife[:secret]` in config file and `--secret-file` on CL) and the invalid case (`--secret`
and `--secret-file` on the CL) - thats why I'm storing the CL options in a different config key if they
are provided.

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open knife/lib/chef/knife/data_bag_secret_options.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Knife--DataBagSecretOptions-included-for-pr


# Commit to git

git add knife/lib/chef/knife/data_bag_secret_options.rbgit commit -m "better docs for Chef::Knife::DataBagSecretOptions.included"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Chef--Knife--DataBagSecretOptions-included-for-pr

hub pull-request


# Celebrate!