Skip to content

Commit

Permalink
ci: override osds.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaser committed Sep 16, 2023
1 parent a56d48f commit ba3217e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
4 changes: 0 additions & 4 deletions molecule/shared/group_vars/all/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ ceph_conf_overrides:
- section: mon
option: auth allow insecure global id reclaim
value: false
ceph_osd_devices:
- "/dev/ceph-{{ inventory_hostname_short }}-osd0/data"
- "/dev/ceph-{{ inventory_hostname_short }}-osd1/data"
- "/dev/ceph-{{ inventory_hostname_short }}-osd2/data"

kubernetes_keepalived_interface: eth0

Expand Down
20 changes: 15 additions & 5 deletions molecule/shared/prepare/ceph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,19 @@
# under the License.

- ansible.builtin.import_playbook: vexxhost.ceph.create_fake_devices

- name: Prepare Ceph for CI
hosts: controllers
become: true
tasks:
- name: Overwrite existing osds.yml file
delegate_to: localhost
ansible.builtin.copy:
dest: "{{ lookup('env', 'MOLECULE_SCENARIO_DIRECTORY') }}/group_vars/cephs/osds.yml"
content: |
ceph_osd_devices:
- "/dev/ceph-{{ inventory_hostname_short }}-osd0/data"
- "/dev/ceph-{{ inventory_hostname_short }}-osd1/data"
- "/dev/ceph-{{ inventory_hostname_short }}-osd2/data"
- ansible.builtin.import_playbook: vexxhost.ceph.site
vars:
ceph_osd_devices:
- "/dev/ceph-{{ inventory_hostname_short }}-osd0/data"
- "/dev/ceph-{{ inventory_hostname_short }}-osd1/data"
- "/dev/ceph-{{ inventory_hostname_short }}-osd2/data"

0 comments on commit ba3217e

Please sign in to comment.