
fi
# Loop through the satellite_channels.list file and construct list of channels for satellite-sync
SAT_CHANNELS=""
for channel in $(cat satellite_channels.list)
do
SAT_CHANNELS="${SAT_CHANNELS} --channel=${channel}"
done
# Handle options passed to script
while getopts ":er" opt; do
case $opt in
e ) echo About to run: satellite-sync ${SAT_CHANNELS} ;;
r ) satellite-sync ${SAT_CHANNELS} ;;
\?) help_func
exit 1 ;;
* ) echo 'Use -e or -r'
exit 1
esac
done
shift $(($OPTIND - 1 ))
add-vms.ps1
add-vms
# tempName - source template (can not be Blank)
# baseName - base name of created guest (default: guest)
# num - number to create (default: 1)
# run -start VMs (default: no)
Param($baseName = 'guest', $tempName, $num = 1, [switch]$run)
if ($tempName -eq $null) {
write-host "Must specify a template!"
exit
}
<#
write-host "baseName = $baseName"
write-host "tempName = $tempName"
write-host " num = $num"
write-host " run = $run"
#>
$my_clusId = -1;
129
www.redhat.com
Comentarios a estos manuales