diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 563b30f..05af008 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.0.1 hooks: - id: check-added-large-files - id: check-byte-order-marker @@ -19,7 +19,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/adrienverge/yamllint.git - rev: v1.26.0 + rev: v1.26.1 hooks: - id: yamllint files: \.(yaml|yml)$ diff --git a/playbooks/devstack/pre.yaml b/playbooks/devstack/pre.yaml index 4b2bcb5..6fc913b 100644 --- a/playbooks/devstack/pre.yaml +++ b/playbooks/devstack/pre.yaml @@ -8,5 +8,6 @@ - hosts: all roles: + - {role: devstack-tobiko-centos, when: ansible_distribution == 'CentOS'} - role: multi-node-setup - role: orchestrate-devstack diff --git a/roles/devstack-tobiko-centos/tasks/main.yaml b/roles/devstack-tobiko-centos/tasks/main.yaml new file mode 100644 index 0000000..1ba7710 --- /dev/null +++ b/roles/devstack-tobiko-centos/tasks/main.yaml @@ -0,0 +1,14 @@ +--- +- name: Downgrade edk2-ovmf package to workaround BZ 1961558 + become: true + dnf: + name: 'edk2-ovmf-20200602gitca407c7246bf-4.el8' + state: present + allow_downgrade: true + +- name: Pin edk2-ovmf version + become: true + shell: | + set -e + dnf install -y 'dnf-command(versionlock)' + dnf versionlock add edk2-ovmf