Skip to content

Commit f2a0b3b

Browse files
chucklevermcgrof
authored andcommitted
gen_hosts: Replace pynfs hosts template
Commit 40df5ef ("gen_hosts: use kdevops_workflow_name directly for template selection") appears to have removed the pynfs hosts template completely, replacing it with the "write your own" template. Fixes: 40df5ef ("gen_hosts: use kdevops_workflow_name directly for template selection") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
1 parent 8093471 commit f2a0b3b

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

  • playbooks/roles/gen_hosts/templates/workflows
Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,41 @@
11
{# Workflow template for pynfs #}
22
[all]
33
localhost ansible_connection=local
4-
write-your-own-template-for-pynfs-workflow
4+
{% for host in pynfs_enabled_hosts %}
5+
{{ kdevops_host_prefix }}-{{ host }}
6+
{% if kdevops_baseline_and_dev %}
7+
{{ kdevops_host_prefix }}-{{ host }}-dev
8+
{% endif %}
9+
{% endfor %}
510

611
[all:vars]
712
ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
13+
14+
[baseline]
15+
{% for host in pynfs_enabled_hosts %}
16+
{{ kdevops_host_prefix }}-{{ host }}
17+
{% endfor %}
18+
19+
[baseline:vars]
20+
ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
21+
22+
[dev]
23+
{% if kdevops_baseline_and_dev %}
24+
{% for host in pynfs_enabled_hosts %}
25+
{{ kdevops_host_prefix }}-{{ host }}-dev
26+
{% endfor %}
27+
{% endif %}
28+
29+
[dev:vars]
30+
ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
31+
32+
[pynfs]
33+
{% for host in pynfs_enabled_hosts %}
34+
{{ kdevops_host_prefix }}-{{ host }}
35+
{% if kdevops_baseline_and_dev %}
36+
{{ kdevops_host_prefix }}-{{ host }}-dev
37+
{% endif %}
38+
{% endfor %}
39+
40+
[pynfs:vars]
41+
ansible_python_interpreter = "{{ kdevops_python_interpreter }}"

0 commit comments

Comments
 (0)