Browse Source

Debian10 (#53)

* Add os variant for opensuse15

* Add support for debian10 "Buster"
pull/55/head v0.10.5
Michael Meffie 6 years ago committed by GitHub
parent
commit
9bf3e0075b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      README.md
  2. 17
      kvm-install-vm
  3. 8
      tests/check_distributions.bats

1
README.md

@ -95,6 +95,7 @@ DISTRIBUTIONS
centos6 CentOS 6 centos
centos8 CentOS 8 centos
debian9 Debian 9 (Stretch) debian
debian10 Debian 10 (Buster) debian
fedora27 Fedora 27 fedora
fedora27-atomic Fedora 27 Atomic Host fedora
fedora28 Fedora 28 fedora

17
kvm-install-vm

@ -76,6 +76,7 @@ function usage_subcommand ()
printf " centos7-atomic CentOS 7 Atomic Host centos\n"
printf " centos6 CentOS 6 centos\n"
printf " debian9 Debian 9 (Stretch) debian\n"
printf " debian10 Debian 10 (Buster) debian\n"
printf " fedora29 Fedora 29 fedora\n"
printf " fedora29-atomic Fedora 29 Atomic Host fedora\n"
printf " fedora30 Fedora 30 fedora\n"
@ -345,6 +346,14 @@ function fetch_images ()
DISK_FORMAT=qcow2
LOGIN_USER=debian
;;
debian10)
QCOW=debian-10-openstack-amd64.qcow2
OS_TYPE="linux"
OS_VARIANT="debian10"
IMAGE_URL=https://cdimage.debian.org/cdimage/openstack/current-10
DISK_FORMAT=qcow2
LOGIN_USER=debian
;;
fedora29)
QCOW=Fedora-Cloud-Base-29-1.2.x86_64.qcow2
OS_TYPE="linux"
@ -396,7 +405,7 @@ function fetch_images ()
opensuse15)
QCOW=openSUSE-Leap-15.2-OpenStack.x86_64.qcow2
OS_TYPE="linux"
OS_VARIANT="auto"
OS_VARIANT="opensuse15.0"
IMAGE_URL=https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.2/images
DISK_FORMAT=qcow2
LOGIN_USER=opensuse
@ -484,7 +493,7 @@ function set_sudo_group ()
centos?|fedora??|*-atomic|amazon?|opensuse* )
SUDOGROUP="wheel"
;;
ubuntu*|debian? )
ubuntu*|debian* )
SUDOGROUP="sudo"
;;
*)
@ -499,7 +508,7 @@ function set_cloud_init_remove ()
centos6 )
CLOUDINITDISABLE="chkconfig cloud-init off"
;;
centos8|centos7|amazon?|fedora??|ubuntu*|debian?|opensuse* )
centos8|centos7|amazon?|fedora??|ubuntu*|debian*|opensuse* )
CLOUDINITDISABLE="systemctl disable cloud-init.service"
;;
*-atomic)
@ -512,7 +521,7 @@ function set_network_restart_cmd ()
{
case "${DISTRO}" in
centos6 ) NETRESTART="service network stop && service network start" ;;
ubuntu*|debian?) NETRESTART="systemctl stop networking && systemctl start networking" ;;
ubuntu*|debian*) NETRESTART="systemctl stop networking && systemctl start networking" ;;
*) NETRESTART="systemctl stop network && systemctl start network" ;;
esac
}

8
tests/check_distributions.bats

@ -96,6 +96,14 @@ function remove_test_vm ()
remove_test_vm debian9
}
@test "Install VM (Debian 10) - $VMNAME-debian10" {
create_test_vm debian10
}
@test "Delete VM (Debian 10) - $VMNAME-debian10" {
remove_test_vm debian10
}
@test "Install VM (openSUSE Leap 15) - $VMNAME-opensuse15" {
create_test_vm opensuse15
}

Loading…
Cancel
Save