summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/configs/modules/ntp.yaml
blob: 0d07ef5a0b403d6f6b60685f12d0af0256b13ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Emtpy NTP config to setup using defaults
#
# NOTE: this should not require apt feature, use 'which' rather than 'dpkg -l'
# NOTE: this should not require no_ntpdate feature, use 'which' to check for
#       installation rather than 'dpkg -l', as 'grep ntp' matches 'ntpdate'
# NOTE: the verifier should check for any ntp server not 'ubuntu.pool.ntp.org'
required_features:
  - apt
  - no_ntpdate
  - ubuntu_ntp
cloud_config: |
  #cloud-config
  ntp:
    pools: {}
    servers: {}
collect_scripts:
  ntp_installed_empty: |
    #!/bin/bash
    dpkg -l | grep ntp | wc -l
  ntp_conf_dist_empty: |
    #!/bin/bash
    ls /etc/ntp.conf.dist | wc -l
  ntp_conf_empty: |
    #!/bin/bash
    grep '^pool' /etc/ntp.conf
  ntp_installed_list: |
    #!/bin/bash
    dpkg -l | grep ntp

# vi: ts=4 expandtab