1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
.. _yaml_examples:
All cloud config examples
*************************
.. note::
This page is a summary containing all the cloud config YAML examples
together. If you would like to explore examples by operation or process
instead, refer to the :ref:`examples library <examples_library>`.
Including users and groups
==========================
.. literalinclude:: ../../examples/cloud-config-user-groups.txt
:language: yaml
:linenos:
Writing out arbitrary files
===========================
.. literalinclude:: ../../examples/cloud-config-write-files.txt
:language: yaml
:linenos:
Adding a yum repository
=======================
.. literalinclude:: ../../examples/cloud-config-yum-repo.txt
:language: yaml
:linenos:
Configure an instance's trusted CA certificates
===============================================
.. literalinclude:: ../../examples/cloud-config-ca-certs.txt
:language: yaml
:linenos:
Install and run `chef`_ recipes
===============================
.. literalinclude:: ../../examples/cloud-config-chef.txt
:language: yaml
:linenos:
Install and run `ansible-pull`
===============================
.. literalinclude:: ../../examples/cloud-config-ansible-pull.txt
:language: yaml
:linenos:
Configure instance to be managed by Ansible
===========================================
.. literalinclude:: ../../examples/cloud-config-ansible-managed.txt
:language: yaml
:linenos:
Configure instance to be an Ansible controller
==============================================
.. literalinclude:: ../../examples/cloud-config-ansible-controller.txt
:language: yaml
:linenos:
Add primary apt repositories
============================
.. literalinclude:: ../../examples/cloud-config-add-apt-repos.txt
:language: yaml
:linenos:
Run commands on first boot
==========================
.. literalinclude:: ../../examples/cloud-config-boot-cmds.txt
:language: yaml
:linenos:
.. literalinclude:: ../../examples/cloud-config-run-cmds.txt
:language: yaml
:linenos:
Run commands on very early at every boot
========================================
.. literalinclude:: ../../examples/boothook.txt
:language: bash
:linenos:
Install arbitrary packages
==========================
.. literalinclude:: ../../examples/cloud-config-install-packages.txt
:language: yaml
:linenos:
Update apt database on first boot
=================================
.. literalinclude:: ../../examples/cloud-config-update-apt.txt
:language: yaml
:linenos:
Run apt or yum upgrade
======================
.. literalinclude:: ../../examples/cloud-config-update-packages.txt
:language: yaml
:linenos:
Adjust mount points mounted
===========================
.. literalinclude:: ../../examples/cloud-config-mount-points.txt
:language: yaml
:linenos:
Configure instance's SSH keys
=============================
.. literalinclude:: ../../examples/cloud-config-ssh-keys.txt
:language: yaml
:linenos:
Additional apt configuration and repositories
=============================================
.. literalinclude:: ../../examples/cloud-config-apt.txt
:language: yaml
:linenos:
Disk setup
==========
.. literalinclude:: ../../examples/cloud-config-disk-setup.txt
: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:
.. _chef: http://www.chef.io/chef/
.. _puppet: http://puppetlabs.com/
.. _ansible: https://docs.ansible.com/ansible/latest/
|