我已经创建了一些厨师烹饪书,所有工作都正常。 现在我想用厨房来测试我的食谱和食谱。 厨房在Linux centos 7上运行,我使用的是virtualbox。
如果我启动配方在win server 2008上安装ms_dotnet 4.5,则一切正常。
如果我在同一平台上使用厨房启动相同的配方厨师客户端挂起此消息 更新文件中的内容(文件大小超过10000000字节,差异输出被抑制)
如果我打开虚拟框并显示桌面,则会出现.dotnet 4.5的目录和可执行文件。 如果我尝试安装没有厨房的.dotnet 4.5,所有运行正常。
如何解决我的问题?
非常感谢你
答案 0 :(得分:0)
这是我的厨房配置
driver:
name: vagrant
boot_timeout: 1200
provisioner:
name: chef_solo
require_chef_omnibus: 12.5.1
platforms:
- name: softsolutions/redhat72
- name: softsolutions/centos67
- name: softsolutions/centos7
- name: softsolutions/opensuse113
- name: softsolutions/win-2008r2-standard-amd64-nocm
transport:
name: winrm
- name: softsolutions/win-7-professional-amd64-nocm
transport:
name: winrm
suites:
#Roles for physical machines
- name: do-base
run_list:
- role[do-base]
这是我的厨房日志(当试图安装dotnet 4.5时)
I, [2017-02-24T15:39:41.503828 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: (up to date)
I, [2017-02-24T15:39:41.504670 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: * execute[set_for_current_shell] action run
I, [2017-02-24T15:39:41.505538 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: - execute PATH=%PATH%;C:\BuildTools\apache-maven\bin\
I, [2017-02-24T15:39:41.506393 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: Recipe: ms_dotnet45::default
I, [2017-02-24T15:39:41.507264 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: * windows_package[Microsoft .NET Framework 4.5] action install
I, [2017-02-24T15:39:44.344388 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: * remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/ms_dotnet-4.5.exe] action create
I, [2017-02-24T15:39:46.292294 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: - create new file C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/ms_dotnet-4.5.exe
I, [2017-02-24T15:39:46.293742 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: - update content in file C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/ms_dotnet-4.5.exe from none to 6c2c58
I, [2017-02-24T15:39:46.295069 #31565] INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: (file sizes exceed 10000000 bytes, diff output suppressed)
答案 1 :(得分:0)
我解决了我的问题!
我修改了我的kitchen.yml并插入:
- name: softsolutions/win-2008r2-standard-amd64-nocm-sp1
transport:
name: winrm
elevated: true
elevated_username: System
elevated_password: null
现在msdotnet cookbook正常工作。
谢谢你