Merge "Import user-data page from openstack-manuals" into stable/pike

This commit is contained in:
Zuul 2018-02-05 22:34:29 +00:00 committed by Gerrit Code Review
commit 839f07fbbb
2 changed files with 23 additions and 0 deletions

View File

@ -271,6 +271,7 @@ looking parts of our architecture. These are collected below.
user/quotas
user/support-matrix
user/upgrade
user/user-data
user/vendordata
user/wsgi

View File

@ -0,0 +1,22 @@
==============================
Provide user data to instances
==============================
*User data* is a blob of data that the user can specify when they launch an
instance. The instance can access this data through the metadata service or
config drive. Commonly used to pass a shell script that the instance runs on
boot.
For example, one application that uses user data is the
`cloud-init <https://help.ubuntu.com/community/CloudInit>`__ system,
which is an open-source package from Ubuntu that is available on various
Linux distributions and which handles early initialization of a cloud
instance.
You can place user data in a local file and pass it through the
``--user-data <user-data-file>`` parameter at instance creation.
.. code-block:: console
$ openstack server create --image ubuntu-cloudimage --flavor 1 \
--user-data mydata.file VM_INSTANCE