Switch from CentOS Linux to CentOS Stream on Vagrantfile
Change-Id: I085df382a8d2544dd01e51e38b2ef612fad23bd4
This commit is contained in:
parent
3a5d5a3bb7
commit
b3a5b6a816
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user