summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2017-04-10 14:52:34 -0700
committerScott Moser <smoser@brickies.net>2017-04-21 13:12:50 -0400
commit73a97b1deafb0569dba5e94f2c663fac0fe522d9 (patch)
tree07f8af24da8981084cff494c3dd836f7e5701621 /doc
parent068dec2f6694da263147a5a7fbc5e6d30f7d1e0d (diff)
downloadvyos-cloud-init-73a97b1deafb0569dba5e94f2c663fac0fe522d9.tar.gz
vyos-cloud-init-73a97b1deafb0569dba5e94f2c663fac0fe522d9.zip
Doc: add additional RTD examples
Includes missing examples for RTD, including examples for datasources, disk partitions and apt update. Also fix doc in cloud-config-update-apt.txt. LP: #1459604
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/cloud-config-update-apt.txt7
-rw-r--r--doc/rtd/topics/examples.rst28
2 files changed, 32 insertions, 3 deletions
diff --git a/doc/examples/cloud-config-update-apt.txt b/doc/examples/cloud-config-update-apt.txt
index a83ce3f7..647241ca 100644
--- a/doc/examples/cloud-config-update-apt.txt
+++ b/doc/examples/cloud-config-update-apt.txt
@@ -1,7 +1,8 @@
#cloud-config
-# Update apt database on first boot
-# (ie run apt-get update)
+# Update apt database on first boot (run 'apt-get update').
+# Note, if packages are given, or package_upgrade is true, then
+# update will be done independent of this setting.
#
-# Default: true
+# Default: false
# Aliases: apt_update
package_update: false
diff --git a/doc/rtd/topics/examples.rst b/doc/rtd/topics/examples.rst
index 1048791e..c30d2263 100644
--- a/doc/rtd/topics/examples.rst
+++ b/doc/rtd/topics/examples.rst
@@ -93,6 +93,13 @@ Install arbitrary packages
:language: yaml
:linenos:
+Update apt database on first boot
+=================================
+
+.. literalinclude:: ../../examples/cloud-config-update-apt.txt
+ :language: yaml
+ :linenos:
+
Run apt or yum upgrade
======================
@@ -149,6 +156,27 @@ Register RedHat Subscription
:language: yaml
:linenos:
+Configure data sources
+======================
+
+.. literalinclude:: ../../examples/cloud-config-datasources.txt
+ :language: yaml
+ :linenos:
+
+Create partitions and filesystems
+=================================
+
+.. literalinclude:: ../../examples/cloud-config-disk-setup.txt
+ :language: yaml
+ :linenos:
+
+Grow partitions
+===============
+
+.. literalinclude:: ../../examples/cloud-config-growpart.txt
+ :language: yaml
+ :linenos:
+
.. _chef: http://www.chef.io/chef/
.. _puppet: http://puppetlabs.com/
.. vi: textwidth=78