summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-01-28 15:49:29 -0500
committerScott Moser <smoser@ubuntu.com>2010-01-28 15:49:29 -0500
commitf8eb4061196c8c2489ac7bf084e0fc0d3e6d27fc (patch)
treecf124cde80f291930a626874fb38b64661ee8315 /doc
parenteb74cd6f36a2f4d2ebdee04d6b388834b1bc72d4 (diff)
downloadvyos-cloud-init-f8eb4061196c8c2489ac7bf084e0fc0d3e6d27fc.tar.gz
vyos-cloud-init-f8eb4061196c8c2489ac7bf084e0fc0d3e6d27fc.zip
Add support for user defined mount points
Also, move swap to use this format for specifying mounts. That way the user can turn off swap if they want with: | mounts: | - [ swap ] Other change wrapped in here is to have DataSourceEc2 read plain text (evalable) text for its metadata rather than pickl. This is really for debuging anyway, so any speed difference is not important.
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/cloud-config.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt
index b808f99a..f4de88e8 100644
--- a/doc/examples/cloud-config.txt
+++ b/doc/examples/cloud-config.txt
@@ -81,6 +81,33 @@ packages:
- pwgen
- pastebinit
+# set up mount points
+# 'mounts' contains a list of lists
+# the inner list are entries for an /etc/fstab line
+# ie : [ fs_spec, fs_file, fs_vfstype, fs_mntops, fs-freq, fs_passno ]
+#
+# default:
+# mounts:
+# - [ ephemeral0, /mnt ]
+# - [ swap, none, swap, sw, 0, 0 ]
+#
+# in order to remove a previously listed mount (ie, one from defaults)
+# list only the fs_spec. For example, to override the default, of
+# mounting swap:
+# - [ swap ]
+# or
+# - [ swap, null ]
+#
+# - if a device does not exist at the time, an entry will still be
+# written to /etc/fstab.
+# - '/dev' can be ommitted for device names that begin with: xvd, sd, hd, vd
+# - if an entry does not have all 6 fields, they will be filled in
+# from the following: [ None, None, "auto", "defaults", "0", "0" ]
+#
+mounts:
+ - [ ephemeral0, /mnt, auto, "defaults,noexec" ]
+ - [ sdc, /opt/data ]
+ - [ dd, /dev/zero ]
# add each entry to ~/.ssh/authorized_keys for the configured user
ssh_authorized_keys: