Bootstrapping a windows node with cinc-17.2.29-1-x64 results in incorrect path set on Windows
Knife Command
knife bootstrap -o winrm w2019-chef.bluemedora.localnet -r 'google_chef_agents' -U Username -P Password -V --msi-url http://downloads.cinc.sh/files/stable/cinc/17.2.29/windows/2012r2/cinc-17.2.29-1-x64.msi
Results in this incorrect path setting
>SET "PATH=;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\ruby\bin;C:\cincproject\cinc\bin;C:\cincproject\cinc\embedded\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps"
Expected Path Setting
>SET "PATH=;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\ruby\bin;C:\cinc-project\cinc\bin;C:\cinc-project\cinc\embedded\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps"
Difference
C:\cincproject
becomes C:\cinc-project
in all locations.
Affected Output
C:\Users\Username\Documents>(echo.{"run_list":["google_chef_agents"]}) 1>C:\cinc\first-boot.json
Starting cinc-client to bootstrap the node...
C:\Users\Username\Documents>SET "PATH=;C:\Windows;\Wbem;\WindowsPowerShell\v1.0\;C:\ruby\bin;C:\cincproject\cinc\bin;C:\cincproject\cinc\embedded\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps"
C:\Users\Username\Documents>cinc-client -c C:\cinc\client.rb -j C:\cinc\first-boot.json
cmd.exe : 'cinc-client' is not recognized as an internal or external command,
+ CategoryInfo : NotSpecified: ('cinc-client' i...ternal command,:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
operable program or batch file.
Attempting to run using 16.13.16 or 15.9.17 results in the same error. This makes the CINC software very difficult to use for my OSS group.
Client | Result |
---|---|
Cinc Client v17.2.29 | Fails |
Chef Client v17.2.29 | Success |
Cinc Client v16.13.16 | Fails |
Cinc Client 15.9.17 | Fails |
OS Running Knife | OS Targeted | Result |
---|---|---|
Mac OS Big Sur | Win 2016 | Fails |
Mac OS Big Sur | Win 2019 | Fails |