1
votes

I have a strange situation. On my windows machine, if I try to bootstrap a node using the following command:

'''knife bootstrap ipaddress -x username -P password --sudo -N nodename'''

I get the following error:

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

and the bootstrap fails. If I do the exact same command from my Mac it works as expected. All of the other knife commands work find on my windows workstation. I'm running Chef Infra Client 15.6.10 on Windows. Any idea what I've messed up?

1

1 Answers

2
votes

Starting from Chef Infra Client 15, you need to provide --chef-license key with one of the following values:

  • accept - Accepts the license and attempts to persist a marker file locally. Persisting these marker files means future invocations do not require accepting the license again.
  • accept-silent - Similar to accept except no messaging is sent to STDOUT
  • accept-no-persist - Similar to accept-silent except no marker file is persisted. Future invocation will require accepting the license again.

Try running your bootstrap like that:

knife bootstrap ipaddress -x username -P password --sudo -N nodename --chef-license accept

More info in the Chef Docs