summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/configs/modules/set_hostname.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/configs/modules/set_hostname.yaml')
-rw-r--r--tests/cloud_tests/configs/modules/set_hostname.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/cloud_tests/configs/modules/set_hostname.yaml b/tests/cloud_tests/configs/modules/set_hostname.yaml
new file mode 100644
index 00000000..5aae1506
--- /dev/null
+++ b/tests/cloud_tests/configs/modules/set_hostname.yaml
@@ -0,0 +1,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