Update fedora35 vagrant box url (#9699)
* Update fedora35 vagrant box url * Update Terraform to 1.3.7 * Update Vagrant to 2.3.4pull/9708/head
parent
64dbf2e429
commit
1f36df666d
|
@ -34,7 +34,7 @@ variables:
|
||||||
ANSIBLE_LOG_LEVEL: "-vv"
|
ANSIBLE_LOG_LEVEL: "-vv"
|
||||||
RECOVER_CONTROL_PLANE_TEST: "false"
|
RECOVER_CONTROL_PLANE_TEST: "false"
|
||||||
RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:],kube_control_plane[1:]"
|
RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:],kube_control_plane[1:]"
|
||||||
TERRAFORM_VERSION: 1.0.8
|
TERRAFORM_VERSION: 1.3.7
|
||||||
ANSIBLE_MAJOR_VERSION: "2.11"
|
ANSIBLE_MAJOR_VERSION: "2.11"
|
||||||
PIPELINE_IMAGE: "$CI_REGISTRY_IMAGE/pipeline:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}"
|
PIPELINE_IMAGE: "$CI_REGISTRY_IMAGE/pipeline:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}"
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ vagrant-validate:
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
tags: [light]
|
tags: [light]
|
||||||
variables:
|
variables:
|
||||||
VAGRANT_VERSION: 2.2.19
|
VAGRANT_VERSION: 2.3.4
|
||||||
script:
|
script:
|
||||||
- ./tests/scripts/vagrant-validate.sh
|
- ./tests/scripts/vagrant-validate.sh
|
||||||
except: ['triggers', 'master']
|
except: ['triggers', 'master']
|
||||||
|
|
|
@ -10,6 +10,7 @@ Vagrant.require_version ">= 2.0.0"
|
||||||
CONFIG = File.join(File.dirname(__FILE__), ENV['KUBESPRAY_VAGRANT_CONFIG'] || 'vagrant/config.rb')
|
CONFIG = File.join(File.dirname(__FILE__), ENV['KUBESPRAY_VAGRANT_CONFIG'] || 'vagrant/config.rb')
|
||||||
|
|
||||||
FLATCAR_URL_TEMPLATE = "https://%s.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.json"
|
FLATCAR_URL_TEMPLATE = "https://%s.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.json"
|
||||||
|
FEDORA35_MIRROR = "https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-35-1.2.x86_64.vagrant-libvirt.box"
|
||||||
|
|
||||||
# Uniq disk UUID for libvirt
|
# Uniq disk UUID for libvirt
|
||||||
DISK_UUID = Time.now.utc.to_i
|
DISK_UUID = Time.now.utc.to_i
|
||||||
|
@ -29,7 +30,7 @@ SUPPORTED_OS = {
|
||||||
"almalinux8" => {box: "almalinux/8", user: "vagrant"},
|
"almalinux8" => {box: "almalinux/8", user: "vagrant"},
|
||||||
"almalinux8-bento" => {box: "bento/almalinux-8", user: "vagrant"},
|
"almalinux8-bento" => {box: "bento/almalinux-8", user: "vagrant"},
|
||||||
"rockylinux8" => {box: "generic/rocky8", user: "vagrant"},
|
"rockylinux8" => {box: "generic/rocky8", user: "vagrant"},
|
||||||
"fedora35" => {box: "fedora/35-cloud-base", user: "vagrant"},
|
"fedora35" => {box: "fedora/35-cloud-base", user: "vagrant", box_url: FEDORA35_MIRROR},
|
||||||
"fedora36" => {box: "fedora/36-cloud-base", user: "vagrant"},
|
"fedora36" => {box: "fedora/36-cloud-base", user: "vagrant"},
|
||||||
"opensuse" => {box: "opensuse/Leap-15.4.x86_64", user: "vagrant"},
|
"opensuse" => {box: "opensuse/Leap-15.4.x86_64", user: "vagrant"},
|
||||||
"opensuse-tumbleweed" => {box: "opensuse/Tumbleweed.x86_64", user: "vagrant"},
|
"opensuse-tumbleweed" => {box: "opensuse/Tumbleweed.x86_64", user: "vagrant"},
|
||||||
|
|
|
@ -4,6 +4,5 @@ terraform {
|
||||||
source = "terraform-provider-openstack/openstack"
|
source = "terraform-provider-openstack/openstack"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
experiments = [module_variable_optional_attrs]
|
required_version = ">= 1.3.0"
|
||||||
required_version = ">= 0.14.0"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,5 @@ terraform {
|
||||||
version = "~> 1.17"
|
version = "~> 1.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
experiments = [module_variable_optional_attrs]
|
required_version = ">= 1.3.0"
|
||||||
required_version = ">= 0.14.0"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ ARG ARCH=amd64
|
||||||
ARG TZ=Etc/UTC
|
ARG TZ=Etc/UTC
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
ENV VAGRANT_VERSION=2.2.19
|
ENV VAGRANT_VERSION=2.3.4
|
||||||
ENV VAGRANT_DEFAULT_PROVIDER=libvirt
|
ENV VAGRANT_DEFAULT_PROVIDER=libvirt
|
||||||
ENV VAGRANT_ANSIBLE_TAGS=facts
|
ENV VAGRANT_ANSIBLE_TAGS=facts
|
||||||
|
|
||||||
|
@ -41,9 +41,9 @@ RUN KUBE_VERSION=$(sed -n 's/^kube_version: //p' roles/kubespray-defaults/defaul
|
||||||
&& mv kubectl /usr/local/bin/kubectl
|
&& mv kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
# Install Vagrant
|
# Install Vagrant
|
||||||
RUN wget https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb && \
|
RUN wget https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
||||||
dpkg -i vagrant_${VAGRANT_VERSION}_x86_64.deb && \
|
dpkg -i vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
||||||
rm vagrant_${VAGRANT_VERSION}_x86_64.deb && \
|
rm vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
||||||
vagrant plugin install vagrant-libvirt
|
vagrant plugin install vagrant-libvirt
|
||||||
|
|
||||||
# Install Kubernetes collections
|
# Install Kubernetes collections
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
ARG KUBESPRAY_VERSION
|
ARG KUBESPRAY_VERSION
|
||||||
FROM quay.io/kubespray/kubespray:${KUBESPRAY_VERSION}
|
FROM quay.io/kubespray/kubespray:${KUBESPRAY_VERSION}
|
||||||
|
|
||||||
ENV VAGRANT_VERSION=2.2.19
|
ENV VAGRANT_VERSION=2.3.4
|
||||||
ENV VAGRANT_DEFAULT_PROVIDER=libvirt
|
ENV VAGRANT_DEFAULT_PROVIDER=libvirt
|
||||||
ENV VAGRANT_ANSIBLE_TAGS=facts
|
ENV VAGRANT_ANSIBLE_TAGS=facts
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y wget libvirt-dev openssh-client rsync git
|
RUN apt-get update && apt-get install -y wget libvirt-dev openssh-client rsync git
|
||||||
|
|
||||||
# Install Vagrant
|
# Install Vagrant
|
||||||
RUN wget https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb && \
|
RUN wget https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
||||||
dpkg -i vagrant_${VAGRANT_VERSION}_x86_64.deb && \
|
dpkg -i vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
||||||
rm vagrant_${VAGRANT_VERSION}_x86_64.deb && \
|
rm vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
||||||
vagrant plugin install vagrant-libvirt
|
vagrant plugin install vagrant-libvirt
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
curl -sL "https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb" -o "/tmp/vagrant_${VAGRANT_VERSION}_x86_64.deb"
|
curl -sL "https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}-1_amd64.deb" -o "/tmp/vagrant_${VAGRANT_VERSION}-1_amd64.deb"
|
||||||
dpkg -i "/tmp/vagrant_${VAGRANT_VERSION}_x86_64.deb"
|
dpkg -i "/tmp/vagrant_${VAGRANT_VERSION}-1_amd64.deb"
|
||||||
vagrant validate --ignore-provider
|
vagrant validate --ignore-provider
|
||||||
|
|
Loading…
Reference in New Issue