Manage cloud storage using libcloud
| codeauthor: | Anthony Shaw <[email protected]> |
|---|
Apache Libcloud Storage (object/blob) management for a full list of supported clouds, see http://libcloud.readthedocs.io/en/latest/storage/supported_providers.html
Clouds include Amazon S3, Google Storage, Aliyun, Azure Blobs, Ceph, OpenStack swift
New in version 2018.3.0.
| configuration: |
This module uses a configuration profile for one or multiple Storage providers libcloud_storage:
profile_test1:
driver: google_storage
key: GOOG0123456789ABCXYZ
secret: mysecret
profile_test2:
driver: s3
key: 12345
secret: mysecret
|
|---|
Examples
web_things:
libcloud_storage.container_present:
name: my_container_name
profile: profile1
libcloud_storage.object_present:
name: my_file.jpg
container: my_container_name
path: /path/to/local/file.jpg
profile: profile1 This example will download the file from the remote cloud and keep it locally
web_things:
libcloud_storage.file_present:
name: my_file.jpg
container: my_container_name
path: /path/to/local/file.jpg
profile: profile1 | depends: | apache-libcloud |
|---|
Ensures a container is absent.
| Parameters: |
|
|---|
Ensures a container is present.
| Parameters: |
|
|---|
Ensures a object is downloaded locally.
| Parameters: |
|
|---|
Ensures a object is absent.
| Parameters: |
|
|---|
Ensures a object is presnt.
| Parameters: |
|
|---|
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.libcloud_storage.html