Files
tripleo-validations/roles/oslo_config_validator/resources/playbooks/prepare.yml
David Vallee Delisle d91ed58a60 oslo-config-validator: Removing merged patches
While developing this, we discovered a lot of inconsistencies across the
openstack projects. These inconsistencies are now fixed, at least on the
master branch so we can now remove them from the exceptions.

This change I70ab87c9bed093cad883b6301b8a09753fc470d9 was merged so the
yaml bug we found in the generator is now fixed across all the branches.
It's now safe to remove the builtin patch.

Also, os_vif now supports list_opts
(I7fc132f917949d147dd6371d54e01a6cfd995aae) so we can use it to template
the vif_plug_(ovs|linux_bridge) sections. As opposed to cinder, there's
no reference section so we need to statically define them.

Change-Id: I6f86ce6b135be9841b5fcae1f940c829327a2db2
(cherry picked from commit 63f881be6e)
2021-10-11 09:41:28 -04:00

44 lines
1.1 KiB
YAML

---
- hosts: all
tasks:
- name: Copy fake podman to path
become: true
copy:
src: "{{ playbook_dir }}/../library/podman"
dest: /bin/podman
backup: true
mode: '0777'
- name: Save test config from environment variable
set_fact:
test_config: "{{ lookup('env', 'MOLECULE_OCV') }}"
- name: Print the test configuration
debug:
var: test_config
- name: Set config file fact
set_fact:
config_file: "{{ test_config.config_folder }}/{{ test_config.config_file }}"
- name: Saving test_config to file
copy:
content: "{{ test_config }}"
dest: "/test.config.yml"
- name: Saving test_config to file
copy:
src: "{{ playbook_dir }}/../library/generator.yml"
dest: "/generator.yml"
- name: Creating mocked config folder
file:
path: "{{ config_file | dirname }}"
state: directory
recurse: true
- name: Creating mocked config file
file:
path: "{{ config_file }}"
state: touch