Skip to content

Commit

Permalink
Debian10 (giovtorres#53)
Browse files Browse the repository at this point in the history
* Add os variant for opensuse15

* Add support for debian10 "Buster"
  • Loading branch information
meffie authored Apr 3, 2020
1 parent 856c1f8 commit 9bf3e00
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 13 additions & 4 deletions kvm-install-vm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -484,7 +493,7 @@ function set_sudo_group ()
centos?|fedora??|*-atomic|amazon?|opensuse* )
SUDOGROUP="wheel"
;;
ubuntu*|debian? )
ubuntu*|debian* )
SUDOGROUP="sudo"
;;
*)
Expand All @@ -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)
Expand All @@ -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
}
Expand Down
8 changes: 8 additions & 0 deletions tests/check_distributions.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9bf3e00

Please sign in to comment.