summaryrefslogtreecommitdiffstats
path: root/qa/tasks/userdata_teardown.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'qa/tasks/userdata_teardown.yaml')
-rw-r--r--qa/tasks/userdata_teardown.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/qa/tasks/userdata_teardown.yaml b/qa/tasks/userdata_teardown.yaml
new file mode 100644
index 00000000..731d769f
--- /dev/null
+++ b/qa/tasks/userdata_teardown.yaml
@@ -0,0 +1,11 @@
+- |
+ #!/usr/bin/env bash
+ cp /var/log/cloud-init-output.log /mnt/log
+
+- |
+ #!/usr/bin/env bash
+ umount /mnt/log
+
+- |
+ #!/usr/bin/env bash
+ shutdown -h -P now