Switch from CentOS Linux to CentOS Stream on Vagrantfile

Change-Id: I085df382a8d2544dd01e51e38b2ef612fad23bd4
This commit is contained in:
Federico Ressi 2021-05-20 13:16:30 +02:00
parent 3a5d5a3bb7
commit b3a5b6a816
2 changed files with 17 additions and 2 deletions

4
Vagrantfile vendored
View File

@ -12,8 +12,8 @@ MEMORY = ENV.fetch("VM_SIZE", "8192").to_i
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
# BOX = ENV.fetch("VM_BOX", "generic/centos8")
BOX = ENV.fetch("VM_BOX", "generic/ubuntu2004")
BOX = ENV.fetch("VM_BOX", "generic/centos8")
# BOX = ENV.fetch("VM_BOX", "generic/ubuntu2004")
# Machine host name
HOSTNAME = "tobiko"

View File

@ -24,6 +24,21 @@
when:
- ansible_os_family == 'Debian'
- become: true
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "8"
block:
- name: Switch from CentOS Linux repos to Centos Stream repos
command: dnf -y swap centos-linux-repos centos-stream-repos
args:
warn: false
- name: Switch packages from CentOS Linux to to Centos Stream
command: dnf -y distro-sync
args:
warn: false
roles:
- devstack-tobiko-deploy
- devstack-tobiko-run-tests