Skip to content

Commit

Permalink
client-prep: add path to backend to test-info.yml
Browse files Browse the repository at this point in the history
Access to the backend filesystem is already provided through sshfs. Make
sure that this is listed in test-info.yml allowing the testing
infrastructure to prepare the backend for a test.

Signed-off-by: Sachin Prabhu <[email protected]>
  • Loading branch information
spuiuk committed May 5, 2024
1 parent dc171d1 commit 6b67d05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions playbooks/ansible/roles/client.prep/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,5 @@
dest: /root/test-info.yml
vars:
public_interfaces: "{{ ctdb_network_public_interfaces }}"
exported_sharenames: >-
{{ samba_shares | map(attribute='name') |
map('regex_replace', '$', '-' + config.be.name + '-' + config.be.variant) | list }}
sharenames: "{{ samba_shares | map(attribute='name') | list }}"
test_backend: "{{ config.be.name }}"
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ users:
backend: {{ test_backend }}

shares:
{%- for share in exported_sharenames +%}
{{ share }}:
{%- for share in sharenames +%}
{{ share }}-{{ config.be.name }}-{{ config.be.variant }}:
backend:
path: {{ config.paths.mount }}/backends/{{ share }}
{%- endfor +%}

0 comments on commit 6b67d05

Please sign in to comment.