How can I make sure .NET 4.5 is installed on the Puppet agent?

I am trying to verify that .NET 4.5 is installed on an agent. I use a puppet chocolate supplier:

package { 'DotNet4.5':
    ensure          => installed,
    provider        => 'chocolatey',
}

However, every time I run it, the log shows 1 change:

Note: / Stage [main] // Node [mymachine1234] / Package [DotNet4.5] / ensure: created

Although .NET 4.5 is installed, it still reports that 1 change has occurred, as shown above.

I also tried the value 4.5instead installedin the definition above, but no matter what I apply, it reports a change of 1.

In contrast, when I use the same thing to install Node.js, it works fine and does not report changes every time.

I am open to any other way to ensure a .NET 4.5 installation.

+3
1

, , , , . , DotNet4, DotNet4.5. , (https://github.com/chocolatey/puppet-chocolatey/issues/19), . .:)

UPDATE: , .

+1

All Articles