-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client.prep: use new format for test-info.yml
Use the new test-info.yml file as required by sit-test-cases. Signed-off-by: Sachin Prabhu <[email protected]>
- Loading branch information
Showing
1 changed file
with
10 additions
and
11 deletions.
There are no files selected for viewing
21 changes: 10 additions & 11 deletions
21
playbooks/ansible/roles/client.prep/templates/test-info.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
public_interfaces: | ||
{{ public_interfaces | to_nice_yaml | indent(2) }} | ||
server: {{ public_interfaces[0] }} | ||
|
||
exported_sharenames: | ||
{{ exported_sharenames | to_nice_yaml | indent(2) }} | ||
|
||
test_users: | ||
users: | ||
{%- for name in config.accounts +%} | ||
{%- for user_name in config.accounts[name].users +%} | ||
{%- set user = config.accounts[name].users[user_name] +%} | ||
{%- if user.samba +%} | ||
- username: {{ user_name }} | ||
uid: {{ user.uid }} | ||
password: {{ user.password }} | ||
nodes: {{ config.nodes | dict2items | selectattr('value.accounts', 'contains', name) | map(attribute='key') | list }} | ||
{{ user_name }}: {{ user.password }} | ||
{%- endif +%} | ||
{%- endfor +%} | ||
{%- endfor +%} | ||
|
||
test_backend: {{ test_backend }} | ||
backend: {{ test_backend }} | ||
|
||
shares: | ||
{%- for share in exported_sharenames +%} | ||
{{ share }}: | ||
{%- endfor +%} | ||
|