Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Bug 1358561 additional datacenter support (#67)
Browse files Browse the repository at this point in the history
nodeploy
  • Loading branch information
markcor authored and grenade committed May 8, 2017
1 parent ab8371e commit e32af96
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
@@ -0,0 +1,15 @@
@echo off

if exist C:\generic-worker\disable-desktop-interrupt.reg reg import C:\generic-worker\disable-desktop-interrupt.reg

:CheckForStateFlag
if exist C:\dsc\task-claim-state.valid goto RunWorker
timeout /t 1 >nul
goto CheckForStateFlag

:RunWorker
del /Q /F C:\dsc\task-claim-state.valid
pushd %~dp0
C:\generic-worker\generic-worker.exe run --config C:\generic-worker\gen_worker.config > C:\generic-worker\generic-worker.log 2>&1

shutdown /r /t 0 /f /c "Rebooting as generic worker ran successfully"
2 changes: 1 addition & 1 deletion userdata/Manifest/gecko-t-win10-64-hw.json
Expand Up @@ -749,7 +749,7 @@
"ComponentName": "DisableDesktopInterrupt"
}
],
"Source": "https://raw.githubusercontent.com/mozilla-releng/OpenCloudConfig/master/userdata/Configuration/GenericWorker/run-generic-worker.bat",
"Source": "https://raw.githubusercontent.com/mozilla-releng/OpenCloudConfig/master/userdata/Configuration/GenericWorker/run-hw-generic-worker-and-reboot.bat",
"Target": "C:\\generic-worker\\run-generic-worker.bat"
},
{
Expand Down
9 changes: 1 addition & 8 deletions userdata/Manifest/gecko-t-win7-32-hw.json
Expand Up @@ -416,13 +416,6 @@
}
]
},
{
"ComponentName": "SystemPowerShellProfile",
"ComponentType": "FileDownload",
"Comment": "Maintenance Toolchain - not essential for building firefox",
"Source": "https://raw.githubusercontent.com/mozilla-releng/OpenCloudConfig/master/userdata/Configuration/Microsoft.PowerShell_profile.ps1",
"Target": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Microsoft.PowerShell_profile.ps1"
},
{
"ComponentName": "FsutilDisable8Dot3",
"ComponentType": "CommandRun",
Expand Down Expand Up @@ -830,7 +823,7 @@
"ComponentName": "DisableDesktopInterrupt"
}
],
"Source": "https://raw.githubusercontent.com/mozilla-releng/OpenCloudConfig/master/userdata/Configuration/GenericWorker/run-generic-worker-format-and-reboot.bat",
"Source": "https://raw.githubusercontent.com/mozilla-releng/OpenCloudConfig/master/userdata/Configuration/GenericWorker/run-hw-generic-worker-and-reboot.bat",
"Target": "C:\\generic-worker\\run-generic-worker.bat"
},
{
Expand Down
4 changes: 4 additions & 0 deletions userdata/rundsc.ps1
Expand Up @@ -559,6 +559,10 @@ If ($locationType -eq "AWS") {
& schtasks @('/create', '/tn', 'HaltOnIdle', '/sc', 'minute', '/mo', '2', '/ru', 'SYSTEM', '/rl', 'HIGHEST', '/tr', 'powershell.exe -File C:\dsc\HaltOnIdle.ps1', '/f')
Write-Log -message 'scheduled task: HaltOnIdle, created.' -severity 'INFO'
}
If ($locationType -eq "datacenter") {
$isWorker = $true
$runDscOnWorker = $true
}

if (($runDscOnWorker) -or (-not ($isWorker))) {

Expand Down

0 comments on commit e32af96

Please sign in to comment.