[英]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.