mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
23 lines
313 B
Plaintext
23 lines
313 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
if test -z "$1"
|
||
|
then
|
||
|
echo "syntax: $0 PATH-TO-LCITOOL"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
LCITOOL=$1
|
||
|
|
||
|
if ! test -x "$LCITOOL"
|
||
|
then
|
||
|
echo "$LCITOOL is not executable"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
HOSTS=$($LCITOOL hosts | grep -E 'freebsd-12|macos')
|
||
|
|
||
|
for host in $HOSTS
|
||
|
do
|
||
|
$LCITOOL variables "$host" libvirt >"$host.vars"
|
||
|
done
|