diff --git a/newvm.sh b/newvm.sh index 89854ef..3724cb7 100755 --- a/newvm.sh +++ b/newvm.sh @@ -8,9 +8,10 @@ vcpus=2 disk_size=16 kickstart=https://git.pyrocufflink.net/infra/kickstart/raw/branch/master/fedora.ks fedora=$(rpm -E %fedora) -network=network=prod -dnsdomain=pyrocufflink.blue +network=network=kube +dnsdomain=host.pyrocufflink.black console=true +default_groups=true usage() { printf 'usage: %s [options] name\n' "${0##*/}" @@ -89,6 +90,9 @@ while [ $# -gt 0 ]; do --group=*) groups_xml="${groups_xml}" ;; + --no-default-groups) + default_groups=false; + ;; --no-console|--noconsole) console=false ;; @@ -129,6 +133,11 @@ if [ -z "${LIBVIRT_DEFAULT_URI}" ]; then exit 1 fi +if ${default_groups}; then + groups_xml="${groups_xml}" + groups_xml="${groups_xml}" +fi + printf 'Creating %s on %s\n' "${name}" "${LIBVIRT_DEFAULT_URI}" if [ -z "${location}" ]; then