summaryrefslogtreecommitdiff
path: root/lib/chef/knife/core/bootstrap_context.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use double quotes by defaultThom May2016-01-141-4/+4
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-16/+16
|
* Update knife bootstrap command to honor --no-color flag in chef-client run ↵Tyler Fitch2015-10-281-0/+1
| | | | that is part of the bootstrap process.
* Consider only knife configuration for chef environment in bootstrap contextEvan Gilman2015-10-241-1/+1
| | | | | | Setting these values in Chef::Config is being deprecated in favor of using the knife config directly. https://github.com/chef/chef/issues/3946
* Don't pass -E to chef-client unless given an environmentdanielsdeleo2015-09-241-2/+2
| | | | | | | | | | | | | | | | | | | Chef::PolicyBuilder::Policyfile requires `Chef::Config[:environment]` to be nil or empty, in order to prevent confusion that could arise from using two conflicting features. Because `chef-client` merges CLI options to `Chef::Config` automatically, running `chef-cient -E _default` causes `Chef::Config[:environment]` to be non-nil, resulting in chef-client emitting this error when bootstrapping: ``` 192.168.99.143 Unexpected Error: 192.168.99.143 ----------------- 192.168.99.143 Chef::PolicyBuilder::Policyfile::UnsupportedFeature: Policyfile does not work with Chef Environments ``` For non-policyfile users, this should behave the same as before since Chef will just default to the `_default` environment (this gets set via Node#initialize) if none is specified.
* Add policyfile support to bootstrap contextdanielsdeleo2015-09-241-1/+6
|
* If tags are present, add to the first-boot.jsonSean Walberg2015-04-091-2/+5
| | | | | | Thanks to @coderanger from IRC for pointing me in the right direction. I also snuck in a whitespace fix
* validatorless bootstraps and chef-vault integrationLamont Granquist2015-02-111-1/+7
|
* Add comments to trusted_certs_contentBryan McLellan2015-01-271-0/+5
| | | | | It's initially confusing why #trusted_certs has commands embedded in the certificates. I've added comments to try to reduce that confusion for the next person.
* knife-windows bootstrap context inherits from ↵Serdar Sutay2014-12-081-1/+1
| | | | | | | | | Chef::Knife::Core::BootstrapContext and uses the Chef 11 arity in its constructor (https://github.com/opscode/knife-windows/blob/master/lib/chef/knife/core/windows_bootstrap_context.rb#L36) In order to protect compatibility with knife-windows make sure that we have a default for the new parameter that is added to the BootstrapContext constructor.
* Merge branch 'master' into tball/contrib-passtyler-ball2014-11-251-1/+1
|\ | | | | | | | | Conflicts: CHANGELOG.md
| * Fix installer_version_string to be an array on prerelease parameter.Yulian Kuncheff2014-11-241-1/+1
| |
* | typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-081-1/+1
|/
* Finishing UX spec - storing CL options in different config values so we can ↵tyler-ball2014-09-291-10/+3
| | | | correctly validate, updating bootstrap to use shared module
* Remove requires path_helper from knife class, add to knife subclasses using ↵Claire McQuin2014-09-241-0/+2
| | | | PathHelper.
* Escape path for globbing.Claire McQuin2014-09-221-1/+1
|
* Merge pull request #2003 from opscode/mcquin/transfer_trusted_certsClaire McQuin2014-09-151-0/+20
|\ | | | | Mcquin/transfer trusted certs
| * Look for certs only if :trusted_certs_dir is not nilClaire McQuin2014-09-081-3/+5
| |
| * Fetch certs in bootstrap_context.rb, not in templates to avoid copypasta.Claire McQuin2014-09-081-9/+13
| |
| * Use :trusted_certs_dir from Chef::Config, only grab .crt and .pem filesClaire McQuin2014-09-081-2/+2
| |
| * add trusted_certs_dir to generated configClaire McQuin2014-09-081-0/+4
| |
| * Transfer trusted certs during bootstrapClaire McQuin2014-09-081-0/+10
| |
* | rebaseKirill Shirinkin2014-09-101-2/+4
|/
* Use existing Chef::Config values for verify_api_cert and ssl_verify_mode ↵Serdar Sutay2014-08-261-3/+25
| | | | during bootstrap.
* Add --ssl-verify-mode and --[no-]verify-api-cert options.Claire McQuin2014-08-261-0/+8
|
* Specs for bootstrap cleanup.Serdar Sutay2014-08-261-3/+7
|
* Fixes based on the PR comments.Serdar Sutay2014-08-261-7/+8
|
* Remove encrypted_data_bag_secret distribution via Chef::Config and enable ↵Serdar Sutay2014-08-261-2/+2
| | | | distributing it via knife[:secret] and knife[:secret_file].
* Remove the bootstrap templates that does chef install via gems.Serdar Sutay2014-08-261-17/+1
|
* Use the :bootstrap_version if set by the user.sersut2014-05-121-1/+14
|
* Change chef-full bootstrap template to install the current latest version of ↵sersut2014-05-121-1/+12
| | | | the workstation version to resolve errors while bootstrapping with a pre-release version.
* [CHEF-3610] Set log_level for chef-client when '-VV' is specified in the ↵Hui Hu2014-03-281-0/+1
| | | | knife command
* CHEF-3698: Do not set log_level by defaultBryan McLellan2014-03-191-1/+0
| | | | | | | The default log level for Chef 10 was "info" but on Chef 11 it is "auto" which does not work on Chef 10. This prevents you from bootstrapping a Chef 10 node from a Chef 11 workstation. We can leave out log_level and Chef will use the built in defaults.
* [CHEF-4509] read `secret` `secret_file` from knife hashSeth Chisamore2013-10-171-3/+3
| | | | | | | | | | The new config values for specifying a raw secret or path to a secret file were being incorrectly read from the top-level of the `knife.rb` config keys. This commit fixes things to correctly read from the knife hash as documented here: http://docs.opscode.com/config_rb_knife.html https://github.com/opscode/chef/blob/11.6.0/lib/chef/knife/bootstrap.rb#L262
* [CHEF-3609] Support no_proxy for first chef-client runSean Horn2013-10-101-0/+4
|
* Fix trailing whitespace. >_<Seth Chisamore2013-04-111-2/+2
|
* [CHEF-4011] `--secret` and `--secret-file` options for `knife bootstrap`Seth Chisamore2013-04-111-2/+8
| | | | | | | | | This commit adds new CLI options to `knife bootstrap` for specifying encrypted data bag secret key (actual string or file) at node bootstrap time. This approach is more explicit than the previous approach of reading the path to the secret key from the `encrypted_data_bag_secret` value in the knife.rb file. For backward compatibility we will still attempt to load a key from Chef::Config[:encrypted_data_bag_secret].
* Merge branch '10-stable' into integrate-chef-10-18-0danielsdeleo2013-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitattributes chef-expander/Rakefile chef-expander/lib/chef/expander/version.rb chef-server-api/Rakefile chef-server-api/chef-server-api.gemspec chef-server-api/lib/chef-server-api/version.rb chef-server-webui/Rakefile chef-server-webui/chef-server-webui.gemspec chef-server-webui/lib/chef-server-webui/version.rb chef-server/Rakefile chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef.gemspec chef/Rakefile chef/spec/support/platform_helpers.rb chef/spec/support/shared/functional/file_resource.rb chef/spec/unit/api_client_spec.rb chef/spec/unit/provider/directory_spec.rb ci/jenkins_run_tests.bat ci/jenkins_run_tests.sh distro/common/html/chef-client.8.html distro/common/html/chef-expander.8.html distro/common/html/chef-expanderctl.8.html distro/common/html/chef-server-webui.8.html distro/common/html/chef-server.8.html distro/common/html/chef-shell.1.html distro/common/html/chef-solo.8.html distro/common/html/chef-solr.8.html distro/common/html/knife-bootstrap.1.html distro/common/html/knife-client.1.html distro/common/html/knife-configure.1.html distro/common/html/knife-cookbook-site.1.html distro/common/html/knife-cookbook.1.html distro/common/html/knife-data-bag.1.html distro/common/html/knife-environment.1.html distro/common/html/knife-exec.1.html distro/common/html/knife-index.1.html distro/common/html/knife-node.1.html distro/common/html/knife-role.1.html distro/common/html/knife-search.1.html distro/common/html/knife-ssh.1.html distro/common/html/knife-status.1.html distro/common/html/knife-tag.1.html distro/common/html/knife.1.html distro/common/man/man1/chef-shell.1 distro/common/man/man1/knife-bootstrap.1 distro/common/man/man1/knife-client.1 distro/common/man/man1/knife-configure.1 distro/common/man/man1/knife-cookbook-site.1 distro/common/man/man1/knife-cookbook.1 distro/common/man/man1/knife-data-bag.1 distro/common/man/man1/knife-environment.1 distro/common/man/man1/knife-exec.1 distro/common/man/man1/knife-index.1 distro/common/man/man1/knife-node.1 distro/common/man/man1/knife-role.1 distro/common/man/man1/knife-search.1 distro/common/man/man1/knife-ssh.1 distro/common/man/man1/knife-status.1 distro/common/man/man1/knife-tag.1 distro/common/man/man1/knife.1 distro/common/man/man8/chef-client.8 distro/common/man/man8/chef-expander.8 distro/common/man/man8/chef-expanderctl.8 distro/common/man/man8/chef-server-webui.8 distro/common/man/man8/chef-server.8 distro/common/man/man8/chef-solo.8 distro/common/man/man8/chef-solr.8 lib/chef/api_client.rb lib/chef/rest.rb lib/chef/version.rb spec/functional/knife/ssh_spec.rb spec/functional/resource/cookbook_file_spec.rb spec/spec_helper.rb spec/stress/win32/security_spec.rb spec/support/shared/functional/securable_resource.rb spec/unit/config_spec.rb spec/unit/knife/ssh_spec.rb
* set default log level to :auto in bootstrapdanielsdeleo2012-11-211-1/+1
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+106
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!