diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-10-01 16:10:01 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-10-01 16:10:01 -0400 |
commit | dc626ee8750e79518c16769a778e143461d33dc4 (patch) | |
tree | fdb809873eb6b4cfc467ab3436cc345fc7865a87 /doc/examples/cloud-config-mount-points.txt | |
parent | a429725ede3395a7e9c21b864a82e2c092657ae2 (diff) | |
parent | 5bb6a49f66c76d9accb912a5612c970a52f5b964 (diff) | |
download | vyos-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.txt | 7 |
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 |