From ee702f0303af977e6bfca853c76b668b15ce2caa Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Fri, 29 Jul 2016 04:23:07 +0000
Subject: [PATCH] allow provision_slurm to take a path to the lockfile so its
 on a directory shared between managment nodes

Former-commit-id: 93ea99b16fe213d158486af8a4116abda57de64d
---
 roles/provision_slurm/tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/provision_slurm/tasks/main.yml b/roles/provision_slurm/tasks/main.yml
index 6d4e6aa9..5e90b6cf 100644
--- a/roles/provision_slurm/tasks/main.yml
+++ b/roles/provision_slurm/tasks/main.yml
@@ -21,5 +21,5 @@
 
 # the lockfile for makeing home directories should be located on the shared directory where the home directories will be created. Otherwise it will be racey
 - name: provision_slurm cron job 
-  cron: name=provision_slurm job="/usr/bin/flock -x -n /home/provision.lck -c {{ provision_slurm }}" user=root minute=*/30 state=present
+  cron: name=provision_slurm job="/usr/bin/flock -x -n {{ lockpath }}/slurm_provision.lck -c {{ provision_slurm }}" user=root minute=*/30 state=present
   sudo: true
-- 
GitLab