Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef-client 15 breaks all unattended installs #8547

Open
voroniys opened this issue May 15, 2019 · 4 comments

Comments

Projects
None yet
4 participants
@voroniys
Copy link

commented May 15, 2019

Description

chef-client 15 requires to accept the licenses what breaks all unattended installs.

Chef Version

15.0.293

Platform Version

Replication Case

Client Output

Chef Infra Client cannot execute without accepting the license
Chef Infra Client cannot execute without accepting the license

Stacktrace

@gryte

This comment has been minimized.

Copy link

commented May 15, 2019

Per the release notes

*...Chef EULA
Chef Infra Client now requires a EULA to be accepted by users before it can run. Users can accept the EULA in a variety of ways:

chef-client --chef-license accept
chef-client --chef-license accept-no-persist
CHEF_LICENSE="accept" chef-client
CHEF_LICENSE="accept-no-persist" chef-client...*

Per the client.rb documentation

...chef_license
Used to accept the Chef license. Performs a no-op on versions where the license is not required. Can be set to accept or accept-no-persist....

Per the chef-client cookbook readme

...node['chef_client']['license'] - Set to 'accept' or 'accept-no-persist' to accept the license before upgrading to Chef 15....

Does this help?

@rcorning

This comment has been minimized.

Copy link

commented May 16, 2019

Having the same problem. None of the above solutions work with chef-solo for my packer builds.

Any ideas?

@tas50

This comment has been minimized.

Copy link
Member

commented May 17, 2019

@rcorning We released 15.0.300 today which includes --chef-license cli flag support in chef-solo.

@rcorning

This comment has been minimized.

Copy link

commented May 17, 2019

@tas50 It works perfectly, thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.