Change in osmo-ci[master]: ansible: jenkins-slave: enable ntpd

osmith gerrit-no-reply at lists.osmocom.org
Wed Mar 10 16:25:52 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/23315 )

Change subject: ansible: jenkins-slave: enable ntpd
......................................................................

ansible: jenkins-slave: enable ntpd

Enable ntpd to prevent clock difference issues reported by jenkins. I
just saw them appearing with one of the new raspberry pis.

Related: https://jenkins.osmocom.org/jenkins/computer/ (shows clock diff)
Change-Id: I2685e60221b0f3baa3f9e6076c01acf37cd38444
---
A ansible/roles/ntpd/README.md
A ansible/roles/ntpd/tasks/main.yml
M ansible/setup-jenkins-slave.yml
3 files changed, 13 insertions(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve
  osmith: Looks good to me, approved; Verified



diff --git a/ansible/roles/ntpd/README.md b/ansible/roles/ntpd/README.md
new file mode 100644
index 0000000..92338c9
--- /dev/null
+++ b/ansible/roles/ntpd/README.md
@@ -0,0 +1 @@
+# Install ntpd for debian
diff --git a/ansible/roles/ntpd/tasks/main.yml b/ansible/roles/ntpd/tasks/main.yml
new file mode 100644
index 0000000..b4ca48f
--- /dev/null
+++ b/ansible/roles/ntpd/tasks/main.yml
@@ -0,0 +1,10 @@
+---
+- name: install ntp from debian
+  apt:
+    name: ntp
+
+- name: start and enable ntp daemon
+  systemd:
+    name: ntp
+    state: started
+    enabled: yes
diff --git a/ansible/setup-jenkins-slave.yml b/ansible/setup-jenkins-slave.yml
index 8565530..07414aa 100644
--- a/ansible/setup-jenkins-slave.yml
+++ b/ansible/setup-jenkins-slave.yml
@@ -42,6 +42,8 @@
       tags:
         - jenkins-slave
 
+    - name: ntpd
+
 - name: setup coverity slaves
   hosts: coverity-slaves
   user: root

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/23315
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I2685e60221b0f3baa3f9e6076c01acf37cd38444
Gerrit-Change-Number: 23315
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210310/12977322/attachment.htm>


More information about the gerrit-log mailing list