summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-mount-points.txt
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-10-01 16:10:01 -0400
committerScott Moser <smoser@ubuntu.com>2014-10-01 16:10:01 -0400
commitdc626ee8750e79518c16769a778e143461d33dc4 (patch)
treefdb809873eb6b4cfc467ab3436cc345fc7865a87 /doc/examples/cloud-config-mount-points.txt
parenta429725ede3395a7e9c21b864a82e2c092657ae2 (diff)
parent5bb6a49f66c76d9accb912a5612c970a52f5b964 (diff)
downloadvyos-cloud-init-dc626ee8750e79518c16769a778e143461d33dc4.tar.gz
vyos-cloud-init-dc626ee8750e79518c16769a778e143461d33dc4.zip
cc_mounts: add ability to create swap file
User can now configure setting of a swap file. Only supports un-encrypted swap for now. swap: filename: /swap.img size: "auto" or size in bytes maxsize: size in bytes Also adds 2 util: read_meminfo: return how much memory on system. human2bytes: convert human numbers (8G) to bytes.
Diffstat (limited to 'doc/examples/cloud-config-mount-points.txt')
-rw-r--r--doc/examples/cloud-config-mount-points.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-mount-points.txt b/doc/examples/cloud-config-mount-points.txt
index 416006db..3b45b47f 100644
--- a/doc/examples/cloud-config-mount-points.txt
+++ b/doc/examples/cloud-config-mount-points.txt
@@ -37,3 +37,10 @@ mounts:
# complete. This must be an array, and must have 7 fields.
mount_default_fields: [ None, None, "auto", "defaults,nobootwait", "0", "2" ]
+
+# swap can also be set up by the 'mounts' module
+# default is to not create any swap files, because 'size' is set to 0
+swap:
+ filename: /swap.img
+ size: "auto" or size in bytes
+ maxsize: size in bytes