Bootstrap issues

I receive the following error when trying to bootstrap:

WARNING: 'knife bootstrap windows' specified, but the knife-windows plugin is not installed. Please install 'knife-windows' if you are attempting to bootstrap a Windows node via WinRM.

When I install knife-windows:

C:\Users[USERNAME]_github\chef> chef gem install knife-windows

+---------------------------------------------+

        Chef License Acceptance

Before you can continue, 3 product licenses

must be accepted. View the license at

Licenses that need accepting:

  • Chef Workstation

  • Chef Infra Client

  • Chef InSpec

Do you accept the 3 product licenses (yes/no)?

yes

Persisting 3 product licenses...

:heavy_check_mark: 3 product licenses persisted.

+---------------------------------------------+

Fetching knife-windows-3.0.17.gem

WARNING: You don't have c:\users[USERNAME]\appdata\local\chefdk\gem\ruby\2.6.0\bin in your PATH,

      gem executables will not run.

Successfully installed knife-windows-3.0.17

Parsing documentation for knife-windows-3.0.17

Installing ri documentation for knife-windows-3.0.17

Done installing documentation for knife-windows after 3 seconds

1 gem installed

Notice that it says:

WARNING: You don't have c:\users[USERNAME]\appdata\local\chefdk\gem\ruby\2.6.0\bin in your PATH,

      gem executables will not run.

When I go to look for this location it does not exist:

@hunt

You shouldn't need to install knife-windows into modern versions of ChefDK or Workstation. You should probably try installing Chef Workstation first and bootstrapping from that since it includes everything you need out the box.

-Tim

Another question is do you have to use the PowerShell tool when you have Chef Workstation installed? Can you still use CMD?

  1. Its funny you say that cause thats what we have installed is CHEF workstation:

C:\Users[USERNAME]_github\chef>chef -v

Chef Workstation version: 0.13.35

Chef Infra Client version: 15.6.10

Chef InSpec version: 4.18.39

Chef CLI version: 2.0.0

Test Kitchen version: 2.3.4

Cookstyle version: 5.16.11

It looks like you might have some gremlins in that install. It's also an older release. Try uninstalling Workstation first, then remove the install directory entirely as well as c:\users[USERNAME]\appdata\local\chefdk. After that :crossed_fingers: you should be good to go.

-Tim

I will try this.

Has the syntax for bootstrapping changed for CHEF workstation?