X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fnomad%2Ftemplates%2Fclient.hcl.j2;fp=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fnomad%2Ftemplates%2Fclient.hcl.j2;h=f245697a22b601192ef8e80dbe62e4fe2959012a;hp=f15616144f203cd65fc5f803f7f0ccf158b1d97c;hb=37337e09e81af58459d8029b00ca50d0f8d5897a;hpb=610e96a2afae5c8e58bee00d05c45d57d7bb6021 diff --git a/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 b/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 index f15616144f..f245697a22 100644 --- a/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 +++ b/resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 @@ -19,4 +19,13 @@ client { } {% endif %} + {% if nomad_volumes -%} + {% for volume in nomad_volumes -%} + host_volume "{{ volume.name }}" { + path = "{{ volume.path }}" + read_only = {{ volume.read_only | bool | lower }} + } + {% endfor -%} + {% endif %} + }