We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c95d38 commit c1222adCopy full SHA for c1222ad
fabfile.py
@@ -14,6 +14,7 @@
14
import licensify
15
import mongo
16
import nginx
17
+import ntp
18
import puppet
19
import rkhunter
20
import search
ntp.py
@@ -0,0 +1,12 @@
1
+from fabric.api import *
2
+
3
+@task
4
+def resync():
5
+ """Forcibly resynchronise the VM's NTP clock.
6
7
+ If a VM's clock manages to get sufficiently out of sync, ntp will give up,
8
+ forcing a manual intervention.
9
+ """
10
+ sudo("service ntp stop")
11
+ sudo("ntpdate ntp.ubuntu.com")
12
+ sudo("service ntp start")
0 commit comments