summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/configs/modules/ntp_pools.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/configs/modules/ntp_pools.yaml')
-rw-r--r--tests/cloud_tests/configs/modules/ntp_pools.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/cloud_tests/configs/modules/ntp_pools.yaml b/tests/cloud_tests/configs/modules/ntp_pools.yaml
new file mode 100644
index 00000000..bd0ac292
--- /dev/null
+++ b/tests/cloud_tests/configs/modules/ntp_pools.yaml
@@ -0,0 +1,23 @@
+#
+# NTP config using specific pools
+#
+cloud_config: |
+ #cloud-config
+ ntp:
+ pools:
+ - 0.pool.ntp.org
+ - 1.pool.ntp.org
+ - 2.pool.ntp.org
+ - 3.pool.ntp.org
+collect_scripts:
+ ntp_installed_pools: |
+ #!/bin/bash
+ dpkg -l | grep ntp | wc -l
+ ntp_conf_dist_pools: |
+ #!/bin/bash
+ ls /etc/ntp.conf.dist | wc -l
+ ntp_conf_pools: |
+ #!/bin/bash
+ grep '^pool' /etc/ntp.conf
+
+# vi: ts=4 expandtab