~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to doc/examples/cloud-config-mount-points.txt

  • Committer: Scott Moser
  • Date: 2016-08-10 15:06:15 UTC
  • Revision ID: smoser@ubuntu.com-20160810150615-ma2fv107w3suy1ma
README: Mention move of revision control to git.

cloud-init development has moved its revision control to git.
It is available at 
  https://code.launchpad.net/cloud-init

Clone with 
  git clone https://git.launchpad.net/cloud-init
or
  git clone git+ssh://git.launchpad.net/cloud-init

For more information see
  https://git.launchpad.net/cloud-init/tree/HACKING.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#cloud-config
2
 
 
3
 
# set up mount points
4
 
# 'mounts' contains a list of lists
5
 
#  the inner list are entries for an /etc/fstab line
6
 
#  ie : [ fs_spec, fs_file, fs_vfstype, fs_mntops, fs-freq, fs_passno ]
7
 
#
8
 
# default:
9
 
# mounts:
10
 
#  - [ ephemeral0, /mnt ]
11
 
#  - [ swap, none, swap, sw, 0, 0 ]
12
 
#
13
 
# in order to remove a previously listed mount (ie, one from defaults)
14
 
# list only the fs_spec.  For example, to override the default, of
15
 
# mounting swap:
16
 
# - [ swap ]
17
 
# or
18
 
# - [ swap, null ]
19
 
#
20
 
# - if a device does not exist at the time, an entry will still be
21
 
#   written to /etc/fstab.
22
 
# - '/dev' can be ommitted for device names that begin with: xvd, sd, hd, vd
23
 
# - if an entry does not have all 6 fields, they will be filled in
24
 
#   with values from 'mount_default_fields' below.
25
 
#
26
 
# Note, that you should set 'nobootwait' (see man fstab) for volumes that may
27
 
# not be attached at instance boot (or reboot)
28
 
#
29
 
mounts:
30
 
 - [ ephemeral0, /mnt, auto, "defaults,noexec" ]
31
 
 - [ sdc, /opt/data ]
32
 
 - [ xvdh, /opt/data, "auto", "defaults,nobootwait", "0", "0" ]
33
 
 - [ dd, /dev/zero ]
34
 
 
35
 
# mount_default_fields
36
 
# These values are used to fill in any entries in 'mounts' that are not
37
 
# complete.  This must be an array, and must have 7 fields.
38
 
mount_default_fields: [ None, None, "auto", "defaults,nobootwait", "0", "2" ]
39
 
 
40
 
 
41
 
# swap can also be set up by the 'mounts' module
42
 
# default is to not create any swap files, because 'size' is set to 0
43
 
swap:
44
 
   filename: /swap.img
45
 
   size: "auto" # or size in bytes
46
 
   maxsize: size in bytes