Merge pull request #22445 from rallytime/fix-19044

Add docs explaing file_map upload functionality
This commit is contained in:
Seth House 2015-04-07 19:34:54 -06:00
commit d7b1f14133

View File

@ -277,3 +277,30 @@ It is highly recommended that this option is *not* set, unless the user has
verified that the provider supports this functionality, and that the image verified that the provider supports this functionality, and that the image
being used is capable of providing the necessary information. At this time, being used is capable of providing the necessary information. At this time,
only the EC2 driver supports this functionality. only the EC2 driver supports this functionality.
File Map Upload
===============
.. versionadded:: 2014.7.0
The ``file_map`` option allows an arbitrary group of files to be uploaded to the
target system before running the deploy script. This functionality requires a
provider uses salt.utils.cloud.bootstrap(), which is currently limited to the ec2,
gce, openstack and nova drivers.
The ``file_map`` can be configured globally in ``/etc/salt/cloud``, or in any cloud
provider or profile file. For example, to upload an extra package or a custom deploy
script, a cloud profile using ``file_map`` might look like:
.. code-block:: yaml
ubuntu14:
provider: ec2-config
image: ami-98aa1cf0
size: t1.micro
ssh_username: root
securitygroup: default
file_map:
/local/path/to/custom/script: /remote/path/to/use/custom/script
/local/path/to/package: /remote/path/to/store/package