简体   繁体   English

如何让Puppet安装.NET Framework 4.5?

[英]How can I get Puppet to install .NET Framework 4.5?

So I am using Vagrant and Puppet on Mac OS X to instantiate and configure the Windows 2008 R2 Datacenter Full basebox found on http://www.vagrantbox.es/ (in VirtualBox) and I'm wondering if anyone has been able to successfully install .NET 4.5 to this image? 所以我在Mac OS X上使用Vagrant和Puppet来实例化和配置http://www.vagrantbox.es/上的Windows 2008 R2 Datacenter Full底盒(在VirtualBox中),我想知道是否有人能够成功安装.NET 4.5到这个图像?

I found this module and I placed it in my project's /puppet/modules folder : 我找到了这个模块,然后将它放在项目的/ puppet / modules文件夹中:

https://github.com/justinstoller/puppet-dotnet https://github.com/justinstoller/puppet-dotnet

All of my attempts to actually install .NET 4.0 or 4.5 result in permission errors. 我实际安装.NET 4.0或4.5的所有尝试都会导致权限错误。

I think this is because the Puppet Agent runs as "SYSTEM" and cannot make major changes to the operating system without elevated permissions. 我认为这是因为Puppet Agent运行为“SYSTEM”,并且在没有提升权限的情况下无法对操作系统进行重大更改。

Can anyone confirm this and provide a workaround? 任何人都可以确认这一点并提供解决方法吗? Preferably not involving building a custom basebox. 最好不要涉及构建自定义基盒。

You are mixing class and resource declarations. 您正在混合类和资源声明。 Either use class (preferred): 使用类(首选):

class { 'dotnet':
  version => '4.5',
}

Or resource: 或资源:

dotnet::installation { '4.5': }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何让ASP.NET(Framework 4.5)Web窗体项目识别SQLServer类? - How can I get an ASP.NET (Framework 4.5) Web Forms project to recognize the SQLServer class? 安装 .net Framework 4.5 定位公园 - install .net Framework 4.5 targeting park 如何在.NET Framework 4.5应用程序/站点中使用HttpClient? - How can I use HttpClient in my .NET Framework 4.5 app/site? 找不到请求的.Net Framework数据提供程序。 无法安装4.5,表示已安装 - Unable to find the requested .Net Framework Data Provider. Can't install 4.5, says it's already installed 我可以将Ajax与asp.net 4.5 .NET Framework FileUpload控件一起使用来上传多个文件吗? - Can I use Ajax with asp.net 4.5 .NET Framework FileUpload control for uploading multiple files? 我们可以在.net framework 4.5中创建ASMX WebService吗? - Can we Create ASMX WebService in .net framework 4.5? 在IIS上启用/安装.net 4.5? - Enable / Install .net 4.5 on IIS? 我如何在Windows 7上为默认具有.Net 3.5的最终用户运行.Net 4.5 Web应用程序? - How can I run .Net 4.5 Web application on Windows 7 for end user which has .Net 3.5 by Default? ASP.NET 4.5如何使用Ajax控件,但无法在“工具箱”中找到它们? - ASP.NET 4.5 How do I use an Ajax controls, I can't find them in the Toolbox? 如何在ASP.NET 4.5中访问web.config配置文件属性? - How can I access web.config Profile properties in ASP.NET 4.5?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM