From b5f825741a96e3c98da7a24b64927282827a4502 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 17 Aug 2017 14:15:03 -0700 Subject: [PATCH] openqa/server: allow rw access to nfs share for ppc workers We need to create the ppc hard disk images from the ppc workers, so they need rw access to the share. --- inventory/inventory | 4 ++++ roles/openqa/server/tasks/main.yml | 2 +- roles/openqa/server/templates/exports.j2 | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 roles/openqa/server/templates/exports.j2 diff --git a/inventory/inventory b/inventory/inventory index e6ce754de7..0966c13cb5 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -580,6 +580,10 @@ openqa-ppc64le-01.qa.fedoraproject.org qa14.qa.fedoraproject.org qa09.qa.fedoraproject.org +# the workers that need rw access to the factory share to run createhdds +[openqa-hdds-workers] +openqa-ppc64le-01.qa.fedoraproject.org + [packages] packages03.phx2.fedoraproject.org packages04.phx2.fedoraproject.org diff --git a/roles/openqa/server/tasks/main.yml b/roles/openqa/server/tasks/main.yml index c9b2ff91aa..250b6e9b74 100644 --- a/roles/openqa/server/tasks/main.yml +++ b/roles/openqa/server/tasks/main.yml @@ -164,7 +164,7 @@ ignore_errors: yes - name: Create exports file - copy: src=exports dest=/etc/exports.d/openqa.exports owner=root group=root mode=0644 + template: src=exports.j2 dest=/etc/exports.d/openqa.exports owner=root group=root mode=0644 tags: - config diff --git a/roles/openqa/server/templates/exports.j2 b/roles/openqa/server/templates/exports.j2 new file mode 100644 index 0000000000..3e117ad85c --- /dev/null +++ b/roles/openqa/server/templates/exports.j2 @@ -0,0 +1 @@ +/var/lib/openqa/share *(ro,insecure,all_squash) {% for host in groups['openqa-hdds-workers'] %} {{ host }}(rw,insecure) {% endfor %}