summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/modules/set_hostname_fqdn.yaml
blob: a85ee79e5cb0bf13fd723fa9c38fa51a852fc749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Set the hostname and update /etc/hosts
#
required_features:
  - hostname
cloud_config: |
  #cloud-config
  manage_etc_hosts: true
  hostname: cloudinit1
  # this needs changing if CI_DOMAIN were updated.
  fqdn: cloudinit2.i9n.cloud-init.io
collect_scripts:
  hosts: |
    #!/bin/bash
    grep ^127 /etc/hosts
  hostname: |
    #!/bin/bash
    hostname
  fqdn: |
    #!/bin/bash
    hostname --fqdn

# vi: ts=4 expandtab