This commit is contained in:
@ -37,7 +37,8 @@
|
||||
"shutdown_timeout": "1h",
|
||||
|
||||
"export": {
|
||||
"images": false
|
||||
"images": false,
|
||||
"output_directory": "/scratch/adcs"
|
||||
}
|
||||
}
|
||||
],
|
||||
@ -65,26 +66,15 @@
|
||||
{
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"pwsh -file scripts/Update-OvfConfiguration.ps1 \\",
|
||||
" -OVFFile './output-adcs/adcs-{{user `vm_name`}}.ovf'",
|
||||
"pwsh -command \"& scripts/Update-OvfConfiguration.ps1 \\",
|
||||
" -OVFFile '/scratch/adcs/adcs-{{user `vm_name`}}.ovf' \\",
|
||||
" -Parameter @{'appliance.name'='ADCS';'appliance.version'='{{user `vm_name`}}'}\"",
|
||||
"pwsh -file scripts/Update-Manifest.ps1 \\",
|
||||
" -ManifestFileName './output-adcs/adcs-{{user `vm_name`}}.mf'",
|
||||
" -ManifestFileName '/scratch/adcs/adcs-{{user `vm_name`}}.mf'",
|
||||
"ovftool --acceptAllEulas --allowExtraConfig --overwrite \\",
|
||||
" './output-adcs/adcs-{{user `vm_name`}}.ovf' \\",
|
||||
" '/scratch/adcs/adcs-{{user `vm_name`}}.ovf' \\",
|
||||
" /output/ADCS-appliance.ova"
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"type": "shell-local",
|
||||
"inline": [
|
||||
"pwsh -file scripts/Remove-Resources.ps1 \\",
|
||||
" -VMName 'adcs-{{user `vm_name`}}' \\",
|
||||
" -VSphereFQDN '{{user `vcenter_server`}}' \\",
|
||||
" -VSphereUsername '{{user `vsphere_username`}}' \\",
|
||||
" -VSpherePassword '{{user `vsphere_password`}}'"
|
||||
]
|
||||
}
|
||||
]]
|
||||
}
|
||||
|
Reference in New Issue
Block a user