summaryrefslogtreecommitdiff
path: root/doc/rtd/topics/examples.rst
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/rtd/topics/examples.rst
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/rtd/topics/examples.rst')
-rw-r--r--doc/rtd/topics/examples.rst28
1 files changed, 28 insertions, 0 deletions
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