Sha256: 9bc79e73e5f95df10cd2e006611a3fa096a512544383e7c93c7f0ca30cd10187

Contents?: true

Size: 1.04 KB

Versions: 32

Compression:

Stored size: 1.04 KB

Contents

@REM Loop ten times to make sure outbound networking is up
@FOR /L %%n IN (1,1,10) DO (
  @PING -n 1 www.opscode.com
  @IF %ERRORLEVEL% == 0 CALL :wget
  @TIMEOUT 10
)

:err
@ECHO "Couldn't reach Opscode even after 10 retries"
@GOTO :done

:wget
@REM Install Chef using chef-client MSI installer
@setlocal

@set REMOTE_SOURCE_MSI_URL=https://www.opscode.com/chef/install.msi
@set LOCAL_DESTINATION_MSI_PATH=%TEMP%\chef-client-latest.msi
@set QUERY_STRING=?DownloadContext=PowerShell

@set DOWNLOAD_COMMAND=$webClient=new-object System.Net.WebClient; $webClient.DownloadFile('%REMOTE_SOURCE_MSI_URL%%QUERY_STRING%', '%LOCAL_DESTINATION_MSI_PATH%')

@if EXIST "%LOCAL_DESTINATION_MSI_PATH%" del /f /q "%LOCAL_DESTINATION_MSI_PATH%"
powershell -noprofile -noninteractive -command "%DOWNLOAD_COMMAND%"
@IF NOT ERRORLEVEL 1 (
  @ECHO Download succeeded
    ) else (
  @ECHO Failed to download %REMOTE_SOURCE_MSI_URL%
  @ECHO Subsequent attempt to install the downloaded MSI is likely to fail
)

msiexec /qn /i "%LOCAL_DESTINATION_MSI_PATH%"

@endlocal
EXIT

:done
EXIT

Version data entries

32 entries across 16 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.5.0.alpha4 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.5.0.alpha3 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.5.0.alpha3 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.5.0.alpha2 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.5.0.alpha2 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.5.0.alpha1 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.5.0.alpha1 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.4.5.1 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.4.5.1 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.4.5 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.4.5 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.4.5.pre1 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.4.5.pre1 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.4.4 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.4.4 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.4.3 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.4.3 templates/windows-2012-serverstandard-amd64/install-chef.bat
veewee-0.4.2 templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat
veewee-0.4.2 templates/windows-2012-serverstandard-amd64/install-chef.bat