Skip to content

Commit ffd36b8

Browse files
Merge pull request #1018 from slagle/bootc-merge
Merge bootc branch into main
2 parents 4026405 + 9da7365 commit ffd36b8

File tree

85 files changed

+930
-58
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+930
-58
lines changed

molecule/common/test_deps/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ test_deps_setup_edpm: true
2020
test_deps_mirrors_file_path: /etc/ci/mirror_info.sh
2121
test_deps_setup_stream: true
2222
test_deps_setup_ceph: false
23+
# Value to use for the bootc fact
24+
test_deps_bootc_fact: false

molecule/common/test_deps/tasks/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,25 @@
153153
releasever: "{{ ansible_facts['distribution_major_version'] }}"
154154
when:
155155
- (test_deps_extra_packages | length) > 0
156+
157+
- name: Bootc block
158+
become: true
159+
block:
160+
- name: Check for /etc/ansible/facts.d/bootc.fact
161+
stat:
162+
path: /etc/ansible/facts.d/bootc.fact
163+
register: bootc_fact_stat
164+
165+
- name: Create /etc/ansible/facts.d
166+
file:
167+
state: directory
168+
path: /etc/ansible/facts.d
169+
mode: 0755
170+
171+
- name: Create /etc/ansible/facts.d/bootc.fact
172+
copy:
173+
dest: /etc/ansible/facts.d/bootc.fact
174+
content: |
175+
#!/bin/bash
176+
echo "{{ test_deps_bootc_fact | lower }}"
177+
mode: 0755

playbooks/bootstrap.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
1616
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
1717
tasks:
18+
- name: Gather ansible_local facts
19+
ansible.builtin.setup:
20+
gather_subset:
21+
- "!all"
22+
- "!min"
23+
- "local"
1824
- name: Grow volumes
1925
ansible.builtin.import_role:
2026
name: osp.edpm.edpm_growvols

playbooks/configure_network.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
88
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
99
tasks:
10+
- name: Gather ansible_local facts
11+
ansible.builtin.setup:
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
16+
1017
- name: Import edpm_ovs to install ovs packages
1118
ansible.builtin.import_role:
1219
name: osp.edpm.edpm_ovs

playbooks/configure_os.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
88
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
99
tasks:
10+
- name: Gather ansible_local facts
11+
ansible.builtin.setup:
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
16+
1017
- name: Configure edpm_podman
1118
ansible.builtin.import_role:
1219
name: osp.edpm.edpm_podman

playbooks/configure_ovs_dpdk.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,19 @@
55
strategy: linear
66
gather_facts: "{{ gather_facts | default(false) }}"
77
tasks:
8+
- name: Gather ansible_local facts
9+
ansible.builtin.setup:
10+
gather_subset:
11+
- "!all"
12+
- "!min"
13+
- "local"
14+
815
- name: Install openvswitch package
916
become: true
1017
ansible.builtin.dnf:
1118
name: openvswitch
1219
state: present
20+
when: not ansible_local.bootc
1321

1422
- name: Configure OvS DPDK configs
1523
ansible.builtin.import_role:

playbooks/download_cache.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
88
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
99
tasks:
10+
- name: Gather ansible_local facts
11+
ansible.builtin.setup:
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
16+
1017
- name: Import edpm_download_cache
1118
ansible.builtin.import_role:
1219
name: osp.edpm.edpm_download_cache

playbooks/install_certs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
88
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
99
tasks:
10+
- name: Gather ansible_local facts
11+
ansible.builtin.setup:
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
16+
1017
- name: Install EDPM Certs
1118
ansible.builtin.import_role:
1219
name: osp.edpm.edpm_install_certs

playbooks/install_os.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
88
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
99
tasks:
10+
- name: Gather ansible_local facts
11+
ansible.builtin.setup:
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
16+
1017
- name: Install edpm_podman
1118
ansible.builtin.import_role:
1219
name: osp.edpm.edpm_podman

playbooks/libvirt.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
88
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
99
tasks:
10+
- name: Gather ansible_local facts
11+
ansible.builtin.setup:
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
16+
1017
- name: Deploy EDPM libvirt
1118
ansible.builtin.import_role:
1219
name: osp.edpm.edpm_libvirt

0 commit comments

Comments
 (0)