summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/configs/modules/ntp_servers.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/configs/modules/ntp_servers.yaml')
-rw-r--r--tests/cloud_tests/configs/modules/ntp_servers.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/cloud_tests/configs/modules/ntp_servers.yaml b/tests/cloud_tests/configs/modules/ntp_servers.yaml
new file mode 100644
index 00000000..934b9c5d
--- /dev/null
+++ b/tests/cloud_tests/configs/modules/ntp_servers.yaml
@@ -0,0 +1,20 @@
+#
+# NTP config using specific servers
+#
+cloud_config: |
+ #cloud-config
+ ntp:
+ servers:
+ - pool.ntp.org
+collect_scripts:
+ ntp_installed_servers: |
+ #!/bin/bash
+ dpkg -l | grep ntp | wc -l
+ ntp_conf_dist_servers: |
+ #!/bin/bash
+ ls /etc/ntp.conf.dist | wc -l
+ ntp_conf_servers: |
+ #!/bin/bash
+ grep '^server' /etc/ntp.conf
+
+# vi: ts=4 expandtab