Azure rendering solution deployment framework

This commit is contained in:
Rick Shahid 2022-12-11 09:23:38 -08:00
Родитель 7c33d4e624
Коммит 44a9d1deb6
3 изменённых файлов: 11 добавлений и 25 удалений

Просмотреть файл

@ -121,7 +121,7 @@ if ($machineType -eq "Scheduler") {
switch ($renderManager) {
"RoyalRender" {
$schedulerVersion = "8.4.03"
$schedulerRootDirectory = "C:\RoyalRender"
$schedulerRootDirectory = "\RoyalRender"
$schedulerClientBinPath = "$schedulerRootDirectory\bin\win64"
}
"Deadline" {
@ -175,10 +175,14 @@ switch ($renderManager) {
Start-Process -FilePath $schedulerRootDirectory\$installFile -ArgumentList "-serviceServer" -Wait -RedirectStandardOutput "$logFileName-server.output.txt" -RedirectStandardError "$logFileName-server.error.txt"
Write-Host "Customize (End): Royal Render Server"
}
Write-Host "Customize (Start): Royal Render Client"
Start-Process -FilePath $schedulerRootDirectory\$installFile -ArgumentList "-service" -Wait -RedirectStandardOutput "$logFileName-client.output.txt" -RedirectStandardError "$logFileName-client.error.txt"
Write-Host "Customize (End): Royal Render Client"
Write-Host "Customize (Start): Royal Render Auto Start"
$installFile = "bin\rrAutostartservice"
Start-Process -FilePath $schedulerRootDirectory\$installFile -ArgumentList "-install" -Wait -RedirectStandardOutput "$logFileName-starter.output.txt" -RedirectStandardError "$logFileName-starter.error.txt"
Write-Host "Customize (End): Royal Render Auto Start"
}
"Deadline" {
Write-Host "Customize (Start): Deadline Download"

Просмотреть файл

@ -206,10 +206,14 @@ case $renderManager in
$schedulerRootDirectory/$installFile -serviceServer 1> "$logFileName-server.output.txt" 2> "$logFileName-server.error.txt"
echo "Customize (End): Royal Render Server"
fi
echo "Customize (Start): Royal Render Client"
$schedulerRootDirectory/$installFile -service 1> "$logFileName-client.output.txt" 2> "$logFileName-client.error.txt"
echo "Customize (End): Royal Render Client"
echo "Customize (Start): Royal Render Auto Start"
installFile="bin/rrAutostartservice"
$schedulerRootDirectory/$installFile -install 1> "$logFileName-starter.output.txt" 2> "$logFileName-starter.error.txt"
echo "Customize (End): Royal Render Auto Start"
;;
"Deadline")
echo "Customize (Start): Deadline Download"

Просмотреть файл

@ -5,28 +5,6 @@ cd $binDirectory
source /etc/profile.d/aaa.sh # https://github.com/Azure/WALinuxAgent/issues/1561
if [ ${renderManager} == "RoyalRender" ]; then
servicePath="/etc/systemd/system/scheduler.service"
echo "[Unit]" > $servicePath
echo "Description=Render Job Scheduler Service" >> $servicePath
echo "" >> $servicePath
echo "[Service]" >> $servicePath
echo "Environment=renderManager=${renderManager}" >> $servicePath
echo "ExecStart=/RoyalRender/bin/lx64/lx__rrServerconsole" >> $servicePath
echo "" >> $servicePath
timerPath="/etc/systemd/system/scheduler.timer"
echo "[Unit]" > $timerPath
echo "Description=Render Job Scheduler Timer" >> $timerPath
echo "" >> $timerPath
echo "[Timer]" >> $timerPath
echo "OnBootSec=10" >> $timerPath
echo "AccuracySec=1us" >> $timerPath
echo "" >> $timerPath
echo "[Install]" >> $timerPath
echo "WantedBy=timers.target" >> $timerPath
systemctl --now enable scheduler.timer
fi
customDataInputFile="/var/lib/waagent/ovf-env.xml"
customDataOutputFile="/var/lib/waagent/scale.auto.sh"
customData=$(xmllint --xpath "//*[local-name()='Environment']/*[local-name()='ProvisioningSection']/*[local-name()='LinuxProvisioningConfigurationSet']/*[local-name()='CustomData']/text()" $customDataInputFile)