当客户端为RemoteAnywhere时Chef-server 使用knife-windows bootstrap的一个问题

笔者在使用knife-windows bootstrap 一个安装了RemoteAnywhere的节点遇到一个坑:

knife bootstrap 192.168.1.245 -r 'role[my_rol_for_windows]' -p 22 -x 'root' -N '192.168.1.245'  -E _default -d rhel

...execute information ...
192.168.1.247 "Rendering "C:UsersADMINI˜1AppDataLocalTempootstrap-26344-1423642056.bat" chunk 1"
192.168.1.247 "Rendering "C:UsersADMINI˜1AppDataLocalTempootstrap-26344-1423642056.bat" chunk 2"
192.168.1.247 "Rendering "C:UsersADMINI˜1AppDataLocalTempootstrap-26344-1423642056.bat" chunk 3"
192.168.1.247 "Rendering "C:UsersADMINI˜1AppDataLocalTempootstrap-26344-1423642056.bat" chunk 4"
192.168.1.247 "Rendering "C:UsersADMINI˜1AppDataLocalTempootstrap-26344-1423642056.bat" chunk 5"

 程序在将RHEL模板生成的bat文件复制到远程NODE时,文件复制一半就失败。导致此文件不能被自动执行 bootstrap 失败。

看起来貌似是字符转义的问题,只要在RA中将字符转义设置None即可:

注意,即不是^-Windows,也是-Unix,而是最后一项None.

原文地址:https://www.cnblogs.com/biangbiang/p/4323610.html