cookbook 'vs-2008', '= 1.0.3'
vs-2008 (10) Versions 1.0.3 Follow1
Installs/Configures Visual Studio 2008
cookbook 'vs-2008', '= 1.0.3', :supermarket
knife supermarket install vs-2008
knife supermarket download vs-2008
Description
Installs and configures Visual Studio 2008 + SP1.
This includes all features of Visual Studio 2008 including the 64-bit C++ compiler. By default the 64-bit C++ compiler is not enabled for installation. No Documentation installed.
For some reason, the custom INI file for the silent install fails to launch due to dependencies. However, it launches fine if we don't use an INI file and therefore we did the /full install. :(
I also added a registry key to disable the Windows compatibility popup for SQL 2005 install since it is not supported on Windows 8.1 2012 R2.
Our purpose was to run server configuration automation inside a corporate firewall with no internet connection for security reason. :(
Please see usage below for more details.
This takes about 35 minutes to run on my machine since it downloads the ISO, unzips it to a local path and then runs the install. I tried running mount-diskimage for the ISO (available in Windows 8.1/2012 R2 or newer) to save time by skipping the unzip but it kept crashing on dismount-diskimage of the ISO in order for me to delete it. :(
Requirements
Platform
- Windows
Tested on:
- Windows 2012 R2
- Windows 8.1
- with Chef client 11.14.2
Cookbooks
- Windows
- 7-zip
- ms_dotnet35 (.net 3.5 must be enabled on Windows 8.1/2012 R2)
Resources and Providers
<Any Resources Or Providers Here>
Attributes
- node['vs-2008']['base-network-location'] = 'http://my-iis-redirect-server/visual-studio'
Usage
- Download Visual Studio 2008 Professional (x86) - ISO: from the source "https://msdn.microsoft.com/subscriptions/json/GetDownloadRequest?brand=MSDN&locale=en-US&fileId=14233&activexDisabled=true&akamaiDL=false")
- Download Visual Studio 2008 SP1 - ISO: https://msdn.microsoft.com/subscriptions/json/GetDownloadRequest?brand=MSDN&locale=en-us&fileId=37031&activexDisabled=true&akamaiDL=false
- Place the ISOs you downloaded on a network share
- created and ran a Chef recipe (publish soon) on a seperate to configure a Microsoft IIS that created an internal HTTP website to point the file share.
- Override the default attributes to match your network environment, ideally using a hostname instead of an IP (see attributes section, above)
The allowed us to serve the ISO, EXE, ZIP, MSI, etc... from an internal HTTP site. The HTTP is better than using Windows NTFS network file share since we don'tt have specify any user/password credentials.
Please view sample role file "sample.role.vs2008-professional-x14-26326.rb" for better understanding.
License and Author
Author:: Yeung Siu (yeung.siu@citrix.com)
Copyright:: 2015 Citrix Systems, Inc.
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.
Dependent cookbooks
ms_dotnet35 >= 1.0.1 |
windows >= 1.34.6 |
seven_zip >= 1.0.3 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
1.0.3 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/libraries/prerequisites.rb:12
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:63
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:64
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:98
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:99
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:111
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:118
1.0.3 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:63
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:64
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:98
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:99
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:111
FC002: Avoid string interpolation where not required: /tmp/cook/981367fcf2485e92a5eb4712/vs-2008/recipes/default.rb:118