1
0
mirror of https://github.com/oVirt/ovirt-ansible-image-template.git synced 2026-02-05 15:45:29 +01:00

Add qcow_url_client_cert and qcow_url_client_key for retrieving QCOW from authenticated sites. (#58)

This commit is contained in:
Brian Ward
2020-01-23 05:28:50 -05:00
committed by Martin Nečas
parent 040658915b
commit 40762edfd7
2 changed files with 4 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ Role Variables
| Name | Default value | |
|--------------------|-----------------------|----------------------------|
| qcow_url | UNDEF (mandatory if glance is not used) | The URL of the QCOW2 image. |
| qcow_url_client_cert | UNDEF | Path to client certificate if needed for retrieving QCOW from authenticated site. |
| qcow_url_client_key | UNDEF | Path to client key if needed for retrieving QCOW from authenticated site. |
| image_path | /tmp/ | Path where the QCOW2 image will be downloaded to. If directory the base name of the URL on the remote server will be used. |
| image_checksum | UNDEF | If a checksum is defined, the digest of the destination file will be calculated after it is downloaded to ensure its integrity and verify that the transfer completed successfully. Format: <algorithm>:<checksum>, e.g. checksum="sha256:D98291AC[...]B6DC7B97". |
| image_cache_download | true | When set to false will delete image_path at the start and end of execution |

View File

@@ -16,6 +16,8 @@
force: "{{ not image_cache_download }}"
checksum: "{{ image_checksum | default(omit) }}"
timeout: "{{ image_download_timeout }}"
client_cert: "{{ qcow_url_client_cert | default(omit) }}"
client_key: "{{ qcow_curl_client_key | default(omit) }}"
register: downloaded_file
tags:
- ovirt-template-image