[chef] reg tar tool download and install in chefsolo-windows


Chronological Thread 
  • From: Indra k < >
  • To: " " < >
  • Subject: [chef] reg tar tool download and install in chefsolo-windows
  • Date: Wed, 11 Feb 2015 06:31:20 +0000 (UTC)

Hi all,

  i need to download and install tar tool for windows,am using chef solo configuration, so i have edited a script in path /plugin/knife-chefsolo0.1/lib/chef/solo-bootstrap/chef-solowindows.erb,

here i ve added :


:install_tartool
powershell -NoProfile -NonInteractive -Command "Import-Module ServerManager; Add-WindowsFeature NET-Framework-Features"
for %%F in (
  "C:\\Program Files\\TarTool_Beta\\ICSharpCode.SharpZipLib.dll"
  "C:\\Program Files\\TarTool_Beta\\TarTool.exe"
) do if exist %%F (set found=1)

@if not defined found (
@echo TarTool not found - Installing TarTool....
cscript //nologo <%= bootstrap_directory %>\wget.vbs /url:"!TARTOOL_URL!" /path:"%LOCAL_DESTINATION_TARTOOL_PATH%" /extract:"yes"

DEL %LOCAL_DESTINATION_TARTOOL_PATH%
goto change_recipe_extraction_path

) else (
@echo Machine contains TarTool - Skipping TarTool installation
goto change_recipe_extraction_path
)

:change_recipe_extraction_path
> <%=  bootstrap_directory %>\find_app_solo_path.rb (
<%= find_app_solo_path %>
)

I T DOESNOT GET DOWNLOAD AND EXTRACT ?Any idea guys?


Regards,
Indra



Archive powered by MHonArc 2.6.16.

§