mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #22445 from rallytime/fix-19044
Add docs explaing file_map upload functionality
This commit is contained in:
commit
d7b1f14133
@ -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
|
||||
being used is capable of providing the necessary information. At this time,
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user