How can I get Puppet to install the .NET Framework 4.5?

So, I use Vagrant and Puppet on Mac OS X to create and configure the Windows 2008 R2 Datacenter Full base box found at http://www.vagrantbox.es/ (in VirtualBox), and I wonder if anyone was able to successfully to install .NET 4.5 on this image?

I found this module and I placed it in the project / puppet / modules folder:

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

All my attempts to install .NET 4.0 or 4.5 lead to permission errors.

I think this is because the Puppet Agent works as "SYSTEM" and cannot make major changes to the operating system without elevated permissions.

Can someone confirm this and provide a workaround? It is preferable not to include the creation of a custom base unit.

+5
source share
1 answer

You mix class and resource declarations. Or use the class (preferred):

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

Or resource:

dotnet::installation { '4.5': }
0
source

All Articles