|
|
@ -85,7 +85,11 @@ export const runManifest: RequestHandler< |
|
|
|
let rawSysData: AnvilDataSysHash | undefined; |
|
|
|
let rawSysData: AnvilDataSysHash | undefined; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
({ manifests: rawManifestListData, sys: rawSysData } = getAnvilData<{ |
|
|
|
({ |
|
|
|
|
|
|
|
hosts: rawHostListData, |
|
|
|
|
|
|
|
manifests: rawManifestListData, |
|
|
|
|
|
|
|
sys: rawSysData, |
|
|
|
|
|
|
|
} = getAnvilData<{ |
|
|
|
hosts?: AnvilDataHostListHash; |
|
|
|
hosts?: AnvilDataHostListHash; |
|
|
|
manifests?: AnvilDataManifestListHash; |
|
|
|
manifests?: AnvilDataManifestListHash; |
|
|
|
sys?: AnvilDataSysHash; |
|
|
|
sys?: AnvilDataSysHash; |
|
|
@ -149,11 +153,10 @@ export const runManifest: RequestHandler< |
|
|
|
debug, |
|
|
|
debug, |
|
|
|
file: __filename, |
|
|
|
file: __filename, |
|
|
|
job_command: SERVER_PATHS.usr.sbin['anvil-join-anvil'].self, |
|
|
|
job_command: SERVER_PATHS.usr.sbin['anvil-join-anvil'].self, |
|
|
|
job_data: `as_machine=${hostId},manifest_uuid=${manifestUuid},anvil_uuid=`, |
|
|
|
job_data: `as_machine=${hostId},manifest_uuid=${manifestUuid}`, |
|
|
|
job_description: 'job_0073', |
|
|
|
job_description: 'job_0073', |
|
|
|
job_host_uuid: hostUuid, |
|
|
|
job_host_uuid: hostUuid, |
|
|
|
job_name: `join_anvil::${hostId}`, |
|
|
|
job_name: `join_anvil::${hostId}`, |
|
|
|
job_progress: 0, |
|
|
|
|
|
|
|
job_title: 'job_0072', |
|
|
|
job_title: 'job_0072', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -178,7 +181,7 @@ export const runManifest: RequestHandler< |
|
|
|
.stdout as [string]; |
|
|
|
.stdout as [string]; |
|
|
|
|
|
|
|
|
|
|
|
joinAnJobs.forEach((jobParams) => { |
|
|
|
joinAnJobs.forEach((jobParams) => { |
|
|
|
jobParams.job_data += newAnUuid; |
|
|
|
jobParams.job_data += `,anvil_uuid=${newAnUuid}`; |
|
|
|
job(jobParams); |
|
|
|
job(jobParams); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} catch (subError) { |
|
|
|
} catch (subError) { |
|
|
|