diff options
author | tyler-ball <tball@chef.io> | 2018-12-19 16:17:14 -0700 |
---|---|---|
committer | Mark Anderson <mark@chef.io> | 2019-05-03 19:19:10 -0700 |
commit | b134493e65d73636d25aa569f9b77f9c0b4c3f88 (patch) | |
tree | b7969e6aea16fdedda9de9b3a344900438c00dd4 /tasks | |
parent | c83bdc4c6adefe29f15ae5bad9eb8f5a6ba30b7e (diff) | |
download | chef-b134493e65d73636d25aa569f9b77f9c0b4c3f88.tar.gz |
Adding in the license-acceptance flow
This adds a new feature to chef-client where users must accept the
EULA before using the product. Users can accept the license by
passing '--chef-license accept', setting ENV[CHEF_LICENSE]=accept or by
running 'chef-client' and following the interactive prompt.
Signed-off-by: tyler-ball <tball@chef.io>
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/bin/run_external_test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks/bin/run_external_test b/tasks/bin/run_external_test index 5f1ac8f210..04fe5343ba 100755 --- a/tasks/bin/run_external_test +++ b/tasks/bin/run_external_test @@ -13,7 +13,11 @@ git_thing = ARGV.shift build_dir = File.expand_path(ENV["TRAVIS_BUILD_DIR"] || Dir.pwd) -env = { "GEMFILE_MOD" => "gem 'chef', path: '#{build_dir}'; gem 'ohai', git: 'https://github.com/chef/ohai.git', branch: 'master'" } +env = { + "GEMFILE_MOD" => "gem 'chef', path: '#{build_dir}'; " \ + "gem 'ohai', git: 'https://github.com/chef/ohai.git'", + "CHEF_LICENSE" => "accept-no-persist", +} Dir.mktmpdir("chef-external-test") do |dir| git_url = "https://github.com/#{github_repo}" |