From d4750a4f553bd9879018f3e7ca940fe354921380 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 12 Nov 2015 14:42:07 -0800 Subject: [PATCH] openqa: fix NFS mount so it works on boot --- roles/openqa_worker/tasks/nfs-client.yml | 5 ++++- roles/openqa_worker/templates/var-lib-openqa-share.mount.j2 | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/openqa_worker/tasks/nfs-client.yml b/roles/openqa_worker/tasks/nfs-client.yml index 0489e5fe64..700a9ce7d2 100644 --- a/roles/openqa_worker/tasks/nfs-client.yml +++ b/roles/openqa_worker/tasks/nfs-client.yml @@ -16,4 +16,7 @@ - config - name: Enable and start mount - service: name=var-lib-openqa-share.mount enabled=yes state=started + service: name={{ item }} enabled=yes state=started + with_items: + - var-lib-openqa-share.mount + - remote-fs.target diff --git a/roles/openqa_worker/templates/var-lib-openqa-share.mount.j2 b/roles/openqa_worker/templates/var-lib-openqa-share.mount.j2 index 11af4b3828..3ec823f460 100644 --- a/roles/openqa_worker/templates/var-lib-openqa-share.mount.j2 +++ b/roles/openqa_worker/templates/var-lib-openqa-share.mount.j2 @@ -6,3 +6,6 @@ ConditionPathExists=/var/lib/openqa/share What={{ openqa_hostname }}:/var/lib/openqa/share Where=/var/lib/openqa/share Type=nfs + +[Install] +WantedBy = remote-fs.target