Install the Microsoft .NET Framework.
This cookbook supports Chef 11.10.0+
- Windows XP
- Windows Vista
- Windows Server 2003 R2
- Windows 7
- Windows Server 2008 (R1, R2)
- Windows 8 and 8.1
- Windows Server 2012 (R1, R2)
The following cookbook is required as noted:
-
windows (> 1.36.1)
ms_dotnet::default
include the recipe 'windows::default'ms_dotnet::ms_dotnet2
andms_dotnet::ms_dotnet4
leverage the windows_package LWRPms_dotnet::ms_dotnet2
,ms_dotnet::ms_dotnet3
andms_dotnet::ms_dotnet4
leverage the windows_feature LWRP
node['ms_dotnet']['v2']['name']
- used to configure the Windows Package namenode['ms_dotnet']['v2']['url']
- used to configure the source of the Windows Packagenode['ms_dotnet']['v2']['checksum']
- used to configure the checksum of the Windows Package
node['ms_dotnet']['v4']['version']
- used to configure the desired version of .NET4 ('4.0', '4.5', '4.5.1', '4.5.2')node['ms_dotnet']['versions'][desired_version][feature]['name']
- used to configure the Feature name to use instead of a Windows Package for the specifieddesired_version
node['ms_dotnet']['versions'][desired_version][package]['name']
- used to configure the Windows Package name for the specifieddesired_version
node['ms_dotnet']['versions'][desired_version][package]['url']
- used to configure the source of the Windows Package for the specifieddesired_version
node['ms_dotnet']['versions'][desired_version][package]['checksum']
- used to configure the checksum of the Windows Package for the specifieddesired_version
node['ms_dotnet']['versions'][desired_version][patch]['name']
- used to configure the Windows Package name of the patch to apply for the specifieddesired_version
node['ms_dotnet']['versions'][desired_version][patch]['url']
- used to configure the source of the Windows Package of the patch to apply for the specifieddesired_version
node['ms_dotnet']['versions'][desired_version][patch]['checksum']
- used to configure the checksum of the Windows Package of the patch to apply for the specifieddesired_version
To install Microsoft .NET Framework 2.0 on your node, just include the recipe ms_dotnet::ms_dotnet2
in its run_list
.
You can use a custom windows package by specifing the 3 attributes specified in the above section.
To install Microsoft .NET Framework 3.0 on your node, just include the recipe ms_dotnet::ms_dotnet3
in its run_list
.
To install Microsoft .NET Framework 4 on your node, just include the recipe ms_dotnet::ms_dotnet4
in its run_list
.
Modify the version to install by changing the attribute node['ms_dotnet']['v4']['version']
.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Baptiste Courtois (b.courtois@criteo.com), Jeremy Mauro (j.mauro@criteo.com)
Copyright 2014-2015, Criteo.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.