From 3e2d6269c8614a5d167b12d65077bb81e1959e33 Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Tue, 15 Sep 2020 22:47:09 +0000
Subject: [PATCH] enabling ntpd and adding full pathes for linux nodes for
 slurm stuff

---
 .gitlab-ci.yml           | 6 +++---
 roles/ntp/tasks/main.yml | 8 +++++++-
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2d587184..e90cccef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -170,9 +170,9 @@ tests:
     - ansible -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "sudo ls" all
     - echo -e '[defaults]\r\nallow_world_readable_tmpfiles = True' > ansible.cfg
     - ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem ./tests/mockSlurmData.yml
-    - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "sinfo" ManagementNodes
-    - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "squeue" ManagementNodes
-    - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "scontrol ping" LoginNodes
+    - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "/opt/slurm-19.05.4/bin/scontrol/sinfo" ManagementNodes
+    - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "/opt/slurm-19.05.4/bin/scontrol/squeue" ManagementNodes
+    - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "/opt/slurm-19.05.4/bin/scontrol/scontrol ping" LoginNodes
     - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "systemctl is-active --quiet ntpd" all
     - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "systemctl is-active --quiet mariadb" SQLNodes
     - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "systemctl is-active --quiet slurmctld" ManagementNodes
diff --git a/roles/ntp/tasks/main.yml b/roles/ntp/tasks/main.yml
index a3d428ae..a023263d 100644
--- a/roles/ntp/tasks/main.yml
+++ b/roles/ntp/tasks/main.yml
@@ -24,8 +24,14 @@
   become_user: root
   notify: restart ntpd
 
-- name: "enable ntp"
+- name: "enable ntpd"
   service: name=ntpd enabled=yes state=started
   become: true
   become_user: root
   when: ansible_os_family == 'RedHat'
+
+- name: "enable ntp"
+  service: name=ntp enabled=yes state=started
+  become: true
+  become_user: root
+  when: ansible_os_family == 'Debian'
\ No newline at end of file
-- 
GitLab