summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/configs/modules/set_hostname.yaml
blob: 5aae15064df706f4cc568d391da0e0abae20f6d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Set the hostname and update /etc/hosts
#
cloud_config: |
  #cloud-config
  hostname: myhostname
collect_scripts:
  hosts: |
    #!/bin/bash
    grep ^127 /etc/hosts
  hostname: |
    #!/bin/bash
    hostname
  fqdn: |
    #!/bin/bash
    hostname --fqdn

# vi: ts=4 expandtab